Get API Key
API Keys
Get API Key
Retrieve a single API key by ID
GET
Get API Key
Overview
Returns the metadata for a single API key. The raw key value is never included in the response — it is only shown once when the key is created or rotated. Requires theapi-keys:manage scope.
Path Parameters
API key ID (
key_...).Response
API key ID.
Always
api_key.Human-readable name.
Key prefix (first few characters of the raw key, for identification).
Scopes granted to this key.
Rate limit tier.
Key-value metadata.
ISO 8601 timestamp of the last successful use.
ISO 8601 expiry timestamp, when set.
ID of the API key that created this key.
ISO 8601 creation timestamp.
ISO 8601 timestamp of the last update.
ISO 8601 revocation timestamp, if revoked.
Code Examples
Errors
| Status | Type | Description |
|---|---|---|
| 400 | validation_error | Invalid API key ID |
| 401 | unauthorized | Missing or invalid API key |
| 403 | forbidden | API key lacks api-keys:manage |
| 404 | not_found | API key does not exist or belongs to another org |