/api-keysReturn your tenant's API keys. Response is a bare JSON array (not paginated).
List API Keys
Returns the tenant's active and revoked API keys, newest first (the developer portal's own internal key is never listed). On a workspace the Aethex platform manages, a key without api_keys:write gets a one-element array instead: that key itself, with its scopes, rate limits, expiry and usage. The response is a bare JSON array — there is no envelope and no pagination — so plan for the whole list on every call.The key field is always null on this endpoint; the raw secret is only ever returned on creation or rotation. key_prefix (the first 12 characters of the original key, e.g. ae_live_ebc5) is what lets you correlate a row here with a key stored in your secret manager.credit_limit is the most credits the key may spend, and credits_spent what it has spent since a limit was first set; both are null on a key that has never had one. Once a key has spent its limit, new requests made with it get 402 with code billing.key_credit_limit, while the workspace's other keys carry on. The limit is soft: it is checked when work starts, and work counts against it only as it is charged (a call when it ends). Everything started while the key was under its limit runs to the end, so long or simultaneous calls and sessions, or the calls of a batch already dialling, can take a key past its limit by what they cost. A rotated key's successor shares its limit and spend.
Errors
1Missing or invalid API key.
Send X-API-Key: '<'api_key'>' or Authorization: Bearer '<'api_key'>'.
