DELETE
/
api
/
v4
/
sessions
Revoke access token
curl --request DELETE \
  --url https://apix.us.amity.co/api/v4/sessions \
  --header 'Authorization: Bearer <token>'
{
  "success": true
}

Authorizations

Authorization
string
header
required

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

Query Parameters

userId
string

User id for revocation

Required string length: 1 - 50
isPublic
boolean
default:true

A flag indicating whether the userId is a public id or not

Response

200
application/json

Revoke access token success

The response is of type object.