Skip to main content
POST
/
oauth
/
revoke
cURL
curl --request POST \
  --url https://api.useanima.sh/v1/oauth/revoke \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "token": "<string>"
}
'
{
  "revoked": true
}

Authorizations

Authorization
string
header
required

JWT Bearer token obtained from authentication. Pass as: Authorization: Bearer

Body

application/json

Revoke an access or refresh token

token
string
required

Either an access token or a refresh token

tokenTypeHint
enum<string>

Hint to skip one of the two lookups (RFC 7009 §2.1)

Available options:
access_token,
refresh_token

Response

200 - application/json

OK

Revocation acknowledgment

revoked
boolean
required