Get an API key
Retrieve an API key by ID for the authenticated organization. API keys are masked.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
API key ID
Query Parameters
When true, return the API key even if it has been deleted (soft-deleted), for audit purposes. Defaults to false, which returns 404 for a deleted key.
Response
API key details
Unique API key identifier
"ckv9w8q2f000001l5r3j7k9m4"
API key name
"production"
When the API key was created
When the API key expires
When the API key was deleted (soft-deleted). Null for keys that have not been deleted.
Project identifier for project-scoped API keys. Null means org-wide.
"proj_abc123"
Project name for project-scoped API keys. Null means the key is org-wide or the project name is unavailable.
"Production"
Masked version of the API key
"sk_1234...abcd"