Docs
Docs
/v1/api-keys · API Keys
API Keys API
Manage the same
xb_live_ keys used by the REST API and the XBeast MCP server. A key's access mode decides whether it can only read or can also write and generate.Only a full-access key can manage keys
This prevents a read-only key from creating a full-access key. The plaintext secret is returned once, on creation, and never again.
API key object
{
"id": "key_123",
"name": "Claude Code",
"key_prefix": "xb_live_ab12",
"access_mode": "full",
"last_used_at": "2026-11-28T09:00:00.000Z",
"created_at": "2026-11-20T14:00:00.000Z",
"revoked_at": null
}List active keys
GET
/api/v1/api-keysReturns
{ data: [ ...ApiKey ] } with active keys only. The secret and its hash are never included.Create a key
POST
/api/v1/api-keysBody
curl -X POST "https://xbeast.io/api/v1/api-keys" \
-H "Authorization: Bearer xb_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Claude Code", "access_mode": "read_only" }'Response:
{ data: { api_key, key, warning } }. data.key is the only time the secret is shown. Maximum 5 active keys per user.Revoke a key
DELETE
/api/v1/api-keys/:idRevocation is immediate: integrations using the key start receiving
401.