Skip to main content
POST
/
api-auth
/
keys
/
revoke
Revoke API key
curl --request POST \
  --url https://api.wacht.dev/api-auth/keys/revoke \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "key_id": "1234567890123456789",
  "reason": "No longer needed"
}
'
{
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

API key authentication (format: Bearer {api_key})

Body

application/json
key_id
string
required

Key ID to revoke

Example:

"1234567890123456789"

reason
string

Reason for revocation

Example:

"No longer needed"

Response

API key revoked