API reference / Accounts

post/v1/token/revoke

Revoke a session

Operation
revokeToken
Authentication
None — public

Always answers 204. Whether the token was real is not the caller's business.

Request

Body

refresh_tokenstringrequired

Responses

204The session is revoked, or never existed.
400The request body or query failed validation.
errorobjectrequired
429Rate limit exceeded. Retry after `retry-after` seconds.
errorobjectrequired

Example

curl
curl -X POST https://api.haavisa.com/v1/token/revoke \
  -H "Content-Type: application/json" \
  -d '{
    "refresh_token": "<refresh_token>"
  }'

More in Accounts

Something unclear? The eligibility guide explains the model behind the answers; the errors guide covers the envelope.