Read one API key's value
GET
/account/api-keys/{key_id}
bearer_auth
Returns the key's value for an owned ACTIVE key. `{key_id}` is the key's `id` — its unique, stable identifier from create/list. The value is NOT stored in the relay's database — it is fetched on demand from the key store and is read-only on every call. The row-status gate stays authoritative (the key store serves values for disabled keys too): a foreign key reads as `404` (key ids are not enumerable across accounts) and a revoked key as `410`; the list remains the audit surface. Requires `status: ready`.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Authorization |
header | string | yes | `Bearer <token>` obtained from `POST /login`. |
Responses
| Status | Description |
|---|---|
200 |
The key's current value and metadata. |
401 |
Missing or invalid credentials. |
404 |
Unknown key id or key owned by another account (`not found`), or no such key exists in the key store (`api key unavailable`). |
410 |
Revoked key (the key store would still serve its value, so the row gate answers first). |
409 |
Account is not ready yet. |
502 |
Internal error. |
200 example
{
"id": "ak_2",
"name": "key-2",
"api_key_value": "sk_live_xxx",
"created_at": "2026-09-16T12:00:00Z"
}
404 example
{
"error": "not found"
}
410 example
{
"error": "api key revoked; use GET /account/api-keys"
}