Delete an API Key
DELETE/api/partner-gateway/authentication/:id
Revokes and deletes an API key, permanently. This cannot be undone.
- Immediate on this API (
/api/partner-gateway): the next request that sends the deleted key answers401. - Up to 24 hours elsewhere: the messaging API (
/api/message-server) and media downloads (/api/files) keep a cached copy of the keys they have checked, so they can keep accepting the deleted key, and sending messages with it, until that copy expires. - Which keys you can delete: a key can delete itself and any key whose operations are all among its own. When the key to delete holds an operation that the calling key does not hold, the answer is
403. - Before deleting: make sure no integration or scheduled job still depends on the key. A key deleted by mistake cannot be restored: create a new one with
POST /authenticationand update every client that used the old one.
If the key was compromised, delete it and also contact support.
Request
Responses
- 204
- 401
- 403
- 404
- 500
API key deleted. No response body.
The API key is missing, invalid, or lacks the AUTHENTICATION operation.
The key to delete holds an operation that the calling key does not hold.
No key with this ID in your account.
Unexpected server error.