Skip to main content
DELETE
/
v1
/
accounts
/
{id}
/
api-keys
/
{keyId}
Revoke API Key
curl --request DELETE \
  --url https://agentdrop-production.up.railway.app/v1/accounts/{id}/api-keys/{keyId} \
  --header 'Authorization: <authorization>'

Revoke API Key

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

id
string
required
Your account ID. Example: acc_abc123
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://agentdrop-production.up.railway.app/v1/accounts/acc_abc123/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