curl --request DELETE \
--url https://apix.us.amity.co/api/v4/sessions \
--header 'Authorization: Bearer <token>'
{
"success": true
}
Revoke an access token. If the userId is provided, this will revoke all access tokens of that user. Only admin can revoke all access tokens of a user.
curl --request DELETE \
--url https://apix.us.amity.co/api/v4/sessions \
--header 'Authorization: Bearer <token>'
{
"success": true
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
User id for revocation
1 - 50
A flag indicating whether the userId is a public id or not
Revoke access token success
The response is of type object
.