Operator Api
API keys
Manage operator API keys through the operator API.
API keys
Manage operator API keys used by backend services.
Paths
GET /api/operator/api-keysPOST /api/operator/api-keysPOST /api/operator/api-keys/{id}/revoke
Required scopes
api_keys:readapi_keys:write
Create request
{
"name": "backend-prod",
"scopes": ["launch:write", "users:read", "markets:read"]
}
Create response
token is returned once.
{
"item": {
"id": 1,
"name": "backend-prod",
"key_id": "oak_...",
"key_prefix": "op_live",
"scopes": ["launch:write", "users:read", "markets:read"],
"last4": "abcd",
"revoked_at": null,
"created_at": "2026-06-18T00:00:00.000Z",
"updated_at": "2026-06-18T00:00:00.000Z"
},
"token": "op_live_..."
}
List response fields
idnamekey_idkey_prefixscopeslast4last_used_atlast_used_iplast_used_user_agentrevoked_atcreated_atupdated_at
Rules
["*"]grants full scope.- Invalid scopes ->
400 INVALID_SCOPES - Empty name ->
400 INVALID_NAME - Unknown revoke target ->
404 NOT_FOUND - Raw token must never be persisted outside secret storage.
