Skip to main content
POST
/
revoke
Revoke OAuth token
curl --request POST \
  --url https://app.usechar.ai/api/revoke \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'token=<string>' \
  --data token_type_hint=access_token
{
  "revoked": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/x-www-form-urlencoded
token
string
required

The token to revoke

token_type_hint
enum<string>

Hint about the type of token being revoked

Available options:
access_token,
refresh_token

Response

Token revoked successfully

revoked
boolean
required

Whether the token was successfully revoked