List API Keys
Returns a list of all API keys belonging to the authenticated user’s workspace.
Key Features:
- View all API keys with their aliases and creation dates
- See how each key is permissioned via
mode,presetandpermissions - Optionally expand to include creator information
- Paginated results for workspaces with many keys
Key Modes:
preset: created from a named permission preset, reported inpresetcustom: created with an explicit list of permissionslegacy: predates granular permissions and carries a coarse scope
Expansion Options:
expand=creator_info: Include creator_nickname and creator_email for each key
Common Use Cases:
- Audit existing API keys
- Find keys by alias
- Monitor key creation activity
- Build key management interfaces
Required permissions: auth:keys:read. Key presets that include them: BILLING, FULL. See key permissions.
Authorizations
Key on the BILLING preset, or any key whose permissions include the ones this API lists. Prefix it with "Key ", e.g. Authorization: Key YOUR_API_KEY
Query Parameters
Maximum number of items to return. Actual maximum depends on query type and expansion parameters.
x >= 150
Pagination cursor from previous response. Encodes the page number.
"Mg=="
Fields to expand in the response. Available: creator_info (includes creator_nickname and creator_email)
Response
Successfully retrieved API keys
Response containing a list of API keys with pagination support