Skip to navigation

List API keys

Lists the valid (not revoked, not expired) API keys of the caller’s organization that belong to the caller’s environment: a production session lists production keys (including untagged legacy keys), a session in Sandbox mode lists sandbox keys. There is one host for both; environment on each key is the caller’s environment.

Returns the first page of keys from the identity provider only (no pagination parameters are accepted); totalCount is the number of keys in data, not a grand total.

Requires scope api_keys:manage. That scope is held by the org:admin role and cannot be granted to a new API key, so in practice this is a dashboard (session) endpoint; only legacy wildcard (*) keys can call it with an API key.

Authentication

AuthorizationBearer

Session JWT or API key (ak_...)

Response

API keys visible in this environment
datalist of objectsOptional
totalCountintegerOptional

Number of keys in data.

Errors

401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error
500
Internal Server Error