DELETE
/
api
/
v4
/
sessions
/
users
/
{userId}
Revoke all user's access tokens by admin
curl --request DELETE \
  --url https://apix.us.amity.co/api/v4/sessions/users/{userId} \
  --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.

Path Parameters

userId
string
required

User id for revocation

Required string length: 1 - 50

Query Parameters

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.