Revoke API Key
API Keys
Revoke API Key: Permanently Disable a Bearer Token
Permanently revoke an AgentDrop API key by its prefix; immediately invalidates further requests using that token. Other keys on the account stay active.
DELETE
Revoke API Key
Permanently revoke an API key. The key stops working immediately. This action cannot be undone.
Request
Headers
Bearer token. Must be a different key than the one being revoked.
Path Parameters
The ID of the key to revoke. Example:
key_xyz789Response
Examples
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 |
