DocsAPI ReferenceRevoke an API key
DELETE
/api/v1/api-keys/{key_id}Permanently revokes an API key. Revocation is immediate — any in-flight requests using the revoked key will start returning `401`. This action cannot be undone.
Path Parameters
key_idintegerrequirede.g. 42Key integer ID.
Headers
X-API-KeystringrequiredYour workspace API key (must have admin permissions).
Responses
204Key revoked. No content.
404Key not found in this workspace.
Try it live
API Configurationglobal · all endpoints
DELETE
https://api.serveka.com/api/v1/api-keys/42Path Parameters
curl -X DELETE 'https://api.serveka.com/api/v1/api-keys/42' \