DELETE
/embed/users/{id}/sessions

JavaScript SDK: swarmhit.embed.users.revokeSessions(userId)

Ends every session of one of your users at once: secrets not used yet stop working and their open components are signed out. Call it when a user leaves your platform or loses access. revoked is false when that user never had a session.

Authorization

bearerAuth
AuthorizationBearer <token>

An API key created on the Access tokens page.

In: header

Path Parameters

id*string

Your id for the user, as given in user.id when you created their session.

Response Body

application/json

application/json

application/json

curl -X DELETE "https://example.com/embed/users/string/sessions"
{  "data": {    "user": {      "id": "string"    },    "revoked": true  }}