Skip to main content
POST
/
scoped-tokens
/
revoke
cURL
curl --request POST \
  --url https://api.useanima.sh/v1/scoped-tokens/revoke \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "jti": "<string>",
  "reason": "<string>"
}
'
{
  "success": "<unknown>",
  "jti": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Revoke a scoped token by jti

jti
string
required

Token jti to revoke

Required string length: 32
reason
string
Maximum string length: 200

Response

200 - application/json

OK

Revocation confirmation

success
any
required
jti
string
required
Required string length: 32