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
header
required

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

Body

application/json
Name of the token from which access needs to be revoked.
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
Successful Response
success
boolean
default:true
required

Success status of the revoke request made by the user.