DELETE
/
users
/
revoke_access_token_v2
curl --request DELETE \
  --url https://api.gan.ai/users/revoke_access_token_v2 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "token_name": "<string>"
}'
{
  "success": true
}

Authorizations

Authorization
string
headerrequired

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

Body

application/json
token_name
string
required

The name of the token from which the access needs to be revoked. This is a compulsory field in the request body.

Response

200 - application/json
success
boolean
default: truerequired

Success status of the revoke request made by the user.