Skip to Content
SendlySendly
API ReferenceApi keys

Revoke an API key

DELETE
/api/projects/{id}/api-keys/{keyId}

Revoke an API key. Answers { success: true } with no data key. 404 if the key does not exist under this project.

Requires the api-keys:write scope — Create, rotate, and revoke API keys — these keep working even after you disconnect this app.

cookiebetter-auth.session_token<token>

BetterAuth session cookie. Used by the dashboard / browser clients. When present, the active project is taken from the x-project-id header.

id*string

Project id.

keyId*string

API key id.

Response Body

API key revoked

application/json
  1. response

Bare success envelope with no payload.

success*true
Value intrue
Example Request
curl -X DELETE 'https://api.sendly.now/api/projects/string/api-keys/string'
Example Response
{  "success": true}