Get a specific dashboard API key
GET /api/keys/{id}
Returns one API-key resource owned by the authenticated account. Requires keys.read and api-keys.read; plaintext is not returned. A missing or other-account ID returns 404.
Authenticate with a portal session token.
Parameters
idinteger path required
Responses
200 API key resource owned by the authenticated account, without plaintext token.
application/json object
api_keyApiKeyResourceC6b required
Generated sample
{
"api_key": {
"allowed_ips": [
"string"
],
"created_at": "2026-01-01T00:00:00Z",
"expires_at": "2026-01-01T00:00:00Z",
"id": 0,
"is_active": true,
"is_default": true,
"last_used_at": "2026-01-01T00:00:00Z",
"mirrors_account_settings": true,
"name": "string",
"permissions": [
"string"
],
"prefix": "string",
"privacy_tier_override": "balanced",
"rate_limit_rpm": 0
}
}401 Missing or invalid bearer token.
application/json object
Any keys are accepted.
403 Authenticated caller lacks the required permission, ability, or role.
application/json object
Any keys are accepted.
404 Key was not found for this account.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
429 The request was rate limited. API-generated responses are JSON;
Response headers
Retry-Afterstring headerSeconds to wait before retrying, when provided.
X-RateLimit-Scopestring headerIdentifies the scope of the request limit, when provided.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string