Skip to main content
Retrieve a paginated list of API keys for dashboard and administrative interfaces. Use this to build key management dashboards, filter keys by user with externalId, or retrieve key details for administrative purposes. Each key includes status, metadata, permissions, and usage limits. Important: Set decrypt: true only in secure contexts to retrieve plaintext key values from recoverable keys. Required permissions:
  • api.*.read_key or api.<api_id>.read_key (to read keys)
  • api.*.read_api or api.<api_id>.read_api (to read the API)
  • api.*.decrypt_key or api.<api_id>.decrypt_key (additionally required when using --decrypt)
See the API reference for the full HTTP endpoint documentation.

Usage

Flags

string
required
The API namespace whose keys you want to list. Returns all keys in this API, subject to pagination and filters.
integer
default:100
Maximum number of keys to return per request. Balance between response size and number of pagination calls needed. Must be between 1 and 100.
string
Pagination cursor from a previous response to fetch the next page. Use when hasMore: true in the previous response.
string
Filter keys by external ID to find keys for a specific user or entity. Must exactly match the externalId set during key creation.
boolean
default:false
When true, includes the plaintext key value in the response. Only works for keys created with recoverable: true. Requires the decrypt_key permission on the calling root key. Never enable this in user-facing applications.
boolean
default:false
Experimental. Skip the cache and fetch keys directly from the database. Use this when you have just created a key and need to see it immediately, or when debugging cache consistency issues. This comes with a performance cost and should be used sparingly.

Global Flags

Examples

Output

Default output shows the request ID, followed by the list of keys:
With --output=json, the full response envelope including pagination is returned:
Last modified on July 23, 2026