Platform API reference

Platform API · Session

post/v1/session/revoke-othersAuth

Sign out every other session of the caller, keeping the one this request was made with. Takes effect immediately for the revoked sessions. Idempotent: a repeat call revokes 0.

Response · 200

revoked*number

How many of the caller's other active sessions this call signed out. 0 when there were none, so repeating the call is safe.

Example: 3

Example

Request

POST https://api.platform-auth.productcraft.co/v1/session/revoke-others
Authorization: Bearer YOUR_TOKEN

Response

{
  "revoked": 3
}