ApiKeys

Revoke an API key

Deactivates an API key so it can no longer authenticate requests.

POST
/v1/api-keys/{id}/revoke

Deactivates an API key so it can no longer authenticate requests. Revocation is final: a revoked key never authenticates again. Its record stays listable, so the messages it sent stay attributed to it.

x-api-key<token>

In: header

Path Parameters

id*string
Match^key_[0-9a-hjkmnp-tv-z]{16,24}$

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/api-keys/string/revoke"
{  "success": true}

Related documentation