Skip to main content
The API Keys endpoints let you issue, inspect, and revoke programmatic sov_live_ keys that you assign to your production agents. These endpoints operate at the account level — they manage the keys themselves, not the agent data those keys protect. Because the server never stores raw key material, the full secret for any new key is returned exactly once at creation time; you are responsible for storing it securely.
Session JWT required. All API key management endpoints require your WorkOS AuthKit session JWT. Sending a sov_live_ or sov_proj_ token returns 401 session_jwt_required. Use the WorkOS session your dashboard login provides.

POST /api-keys

Generate a new sov_live_ API key. The key is stored server-side as a SHA-256 hash only — the plaintext raw_secret is returned once and never accessible again.
string
required
A human-readable label for this key (e.g. "my-trading-agent"). Between 1 and 128 characters. Used for identification in the dashboard and in list responses.

Response — 201 Created

string
UUID of the new API key record. Use this as the :id path parameter to revoke the key later.
string
The label you supplied in the request body.
string
Always "sov_live_".
string
Partially masked version of the key for display in UIs and logs.
string
The full sov_live_ key secret. This is the only time you will receive it. Store it immediately in a secret manager or environment variable.
string
ISO-8601 timestamp of when the key was created.

curl Example


GET /api-keys

Retrieve a list of all API keys — active and revoked — associated with the authenticated account. Keys are returned in masked form; the raw secret is never re-exposed.

Response — 200 OK

Returns a JSON array of key records:
string
UUID of the API key record.
string
Human-readable label for the key.
string
Always "sov_live_".
string
ISO-8601 timestamp of when the key was issued.
string | null
ISO-8601 timestamp of when the key was revoked, or null if still active.
string | null
ISO-8601 timestamp of the most recent authenticated request using this key.
string
Current state of the key. Either "active" or "revoked".

curl Example


DELETE /api-keys/:id

Revoke an API key immediately. Revocation is permanent and cannot be undone. Any agent still using the key will receive 401 api_key_revoked on all subsequent requests.
Path Parameters:

Response — 200 OK

string
UUID of the revoked key.
string
ISO-8601 timestamp of when the revocation was processed.
string
Confirmation string. Always "api_key_revoked" on success.

curl Example