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 secret is never returned; only theprefix (the first 12 characters of the key) is included, for identification. The full secret is shown once, when the key is created or rotated.
Revoked and expired keys are still retrievable here so audit history stays intact; check the status field.
Requires the api-keys:manage scope.
Path Parameters
string
required
API key ID (
key_...).Response
string
API key ID.
string
Always
api_key.string
Human-readable name.
string
First 12 characters of the raw key, for identification. The full secret is never returned.
string[]
Scopes granted to this key.
string
Rate limit tier label for the key.
string
Lifecycle state:
active, expired, or revoked.string | null
Expiry timestamp, or
null for a non-expiring key.string | null
Timestamp of the last API call with this key, or
null if never used.object
Key-value metadata.
string | null
Revocation timestamp, or
null.string
ID of the API key that created this key.
string
Creation timestamp.
string
Last update timestamp.
string
Unique request identifier for support and debugging.