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.

The body is of type object.

Response

200
application/json
Successful Response

The response is of type object.