Skip to main content
DELETE
/
v1
/
api-keys
/
{keyId}
Revoke API Key
curl --request DELETE \
  --url https://api.agent-drop.com/v1/api-keys/{keyId} \
  --header 'Authorization: <authorization>'

Documentation Index

Fetch the complete documentation index at: https://docs.agent-drop.com/llms.txt

Use this file to discover all available pages before exploring further.

Permanently revoke an API key. The key stops working immediately. This action cannot be undone.

Request

Headers

Authorization
string
required
Bearer token. Must be a different key than the one being revoked.

Path Parameters

keyId
string
required
The ID of the key to revoke. Example: key_xyz789

Response

{
  "id": "key_xyz789",
  "revoked": true,
  "revoked_at": "2026-03-22T14:30:00Z"
}

Examples

curl -X DELETE https://api.agent-drop.com/v1/api-keys/key_xyz789 \
  -H "Authorization: Bearer agd_live_xxxxxxxxxxxxxxxxxxxx"
You cannot revoke the key you’re currently authenticating with. Use a different key to revoke the target key.

Errors

StatusCodeDescription
401UNAUTHORIZEDInvalid or missing API key
404NOT_FOUNDKey ID does not exist
409SELF_REVOKECannot revoke the key being used for authentication