Skip to main content
POST
/
oauth
/
revoke
Revoke Token
curl --request POST \
  --url https://api.casexchange.com/api/v1/oauth/revoke \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'token=<string>' \
  --data token_type_hint=access_token \
  --data 'client_id=<string>' \
  --data 'client_secret=<string>'
Revoke an access token or refresh token to immediately invalidate it. Use this endpoint when tokens are compromised, when users log out, or when implementing token rotation policies.

Authorizations

Authorization
string
header
required

Client ID and secret for OAuth token endpoints

Body

token
string
required
token_type_hint
enum<string>
Available options:
access_token,
refresh_token
client_id
string
client_secret
string

Response

200

Token revoked