Skip to main content
DELETE
/
api
/
keys
/
{key_id}
Revoke API key
curl --request DELETE \
  --url http://localhost:8000/api/keys/{key_id} \
  --header 'Authorization: Bearer <token>'
{
  "error": "unauthorized",
  "message": "Invalid or missing API key. Include your key in the Authorization header as 'Bearer mk_live_...' or via the X-API-Key header."
}

Authorizations

Authorization
string
header
required

Use your API key as a Bearer token. Example: Authorization: Bearer mk_live_...

Path Parameters

key_id
string
required

The unique ID of the API key to revoke.

Example:

"key_abc123"

Response

The key was successfully revoked. No content returned.