Admin APIAPI Key Management

API Key Management

Create a key

POST /admin/v1/api-keys
Authorization: Bearer <ADMIN_ACCESS_TOKEN>
Content-Type: application/json
 
{
  "name": "production-server",
  "scopes": ["chat", "images"],
  "expiresAt": "2026-12-31T00:00:00Z"
}

The raw key value is returned only once at creation time.

List keys

GET /admin/v1/api-keys?cursor=...&limit=50

Revoke a key

DELETE /admin/v1/api-keys/{keyId}

Field-level documentation in progress.