TEASEDocs
API ReferenceAPI Keys & Account

Revoke an API key

Soft-revokes the API key with the given id. After revocation any request presenting this key is rejected. Requires a write-scoped key.

Authorization

bearerAuth
AuthorizationBearer <token>

Your al_live_<prefix>_<secret> API key. Mint and manage keys in the dashboard.

In: header

Path Parameters

key_id*integer

Numeric id of the key to revoke (from the list endpoint).

Response Body

application/json

application/json

DELETE
/api/admin/api-keys/{key_id}
curl -X DELETE "https://example.com/api/admin/api-keys/0"
Empty
{  "detail": "auth required"}
{  "detail": {    "code": "api_key_not_found",    "message": "API key not found"  }}