Revoke an API key
DELETE/v1/api-keys/{id}
The key stops working immediately. You cannot revoke a key that is more powerful than yours.
Required scope: api_keys:manage
Parameters
| Name | In | Description |
|---|---|---|
idrequired | path | The API key id. |
Example
curl -X DELETE 'https://api.sendsend.email/v1/api-keys/ID' \
-H "Authorization: Bearer $SENDSEND_API_KEY"Returns 200.
Errors
| Status | Code | When |
|---|---|---|
| 404 | not_found | No such resource in this project. |
| 401 | unauthorized | The API key is missing, invalid or revoked. |
| 403 | forbidden | The key does not have the scope this endpoint needs. |
Every error has the same shape. See Errors.