List API keys
Return the organization's API keys with their current usage. The management key's organization is implied by the key itself.
Authentication
AuthorizationBearer
A management key (prefixed mgmt_), created in the dashboard under Settings, API keys, Management keys. Distinct from a regular gateway API key, and never used to call models.
Query parameters
offset
Number of keys to skip.
limit
Maximum number of keys to return (max 100).
Response
The organization's keys.
hash
Stable identifier for the key. A one-way hash, not the secret, so it is safe to store and log. Use it in get, update, and delete calls.
label
Display label (the key’s public prefix, e.g. mg_8Kx2pQ). Not the secret.
disabled
Whether the key is disabled. A disabled key cannot call the gateway but is not deleted.
usage
Spend in USD in the current reset window.
name
User-set name for the key.
limit
Spend cap in USD over the reset window. Null means no cap.
limit_reset
Window the spend cap resets on. Resets at midnight UTC.
limit_remaining
Remaining spend in USD before the cap. Null when no limit is set.
created_at
When the key was created.
Errors
401
Unauthorized Error