Revoke API Key
Permanently revoke an API key. The key stops working immediately. This action cannot be undone.
Request
Bearer token. Must be a different key than the one being revoked.
Path Parameters
Your account ID. Example: acc_abc123
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
| Status | Code | Description |
|---|
401 | UNAUTHORIZED | Invalid or missing API key |
404 | NOT_FOUND | Key ID does not exist |
409 | SELF_REVOKE | Cannot revoke the key being used for authentication |