Use this endpoint to permanently revoke an API key. Revocation takes effect immediately — any request using the deleted key will receive a 401 Unauthorized response. Use GET /v1/api-keys to find the id of the key you want to revoke.
Revoking an API key is irreversible. The key cannot be restored after deletion. Make sure no active services are using the key before revoking it, and have a replacement key ready if needed.
Request
DELETE https://api.relayos.com.br/v1/api-keys/{id}
The unique identifier of the API key to revoke. Retrieve the id from GET /v1/api-keys.
curl -X DELETE https://api.relayos.com.br/v1/api-keys/key_01hwxyz222bbb \
-H "Authorization: Bearer YOUR_API_KEY"
Response
A successful revocation returns 204 No Content with an empty response body.