Revoke an API key
Revokes an API key immediately. The key must belong to the caller’s
organization and to this deployment’s environment — a sandbox
dashboard cannot revoke production keys and vice versa (404).
Revoking a key that is already revoked or expired also returns 404.
No request body.
Requires scope api_keys:manage (dashboard org:admin sessions; not
grantable to API keys).
Authentication
AuthorizationBearer
Session JWT or API key (ak_...)
Path parameters
apiKeyId
The API key ID (ak_…). Not a UUID.
Response
The revoked key
data
Errors
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error
