OpenRCS API reference · v1 ← Back to console Swagger UI
Accounts

Retrieve the signup key's value

GET /account/api-key bearer_auth

Serves the signup key (`key-1`) `{ api_key, api_key_id }`. 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: once the signup key has been revoked this reads `410` pointing at /account/api-keys — the multi-key surface is the general contract. Requires `status: ready`.

Parameters

NameInTypeRequiredDescription
Authorization header string yes `Bearer <token>` obtained from `POST /login`.

Responses

StatusDescription
200 API-key value (retrievable on every call; fetched on demand).
401 Missing or invalid credentials.
404 Account not found, or no API key is available for the account (no signup key, or no such key exists in the key store).
410 The signup key has been revoked — use GET /account/api-keys/{key_id} on the multi-key surface instead.
409 Account is not ready yet.
502 Internal error while fetching the key; a generic error is returned and no internals are leaked.

200 example

{
  "api_key": "sk_live_xxx",
  "api_key_id": "ak_1"
}