Platform API reference

Platform API · Session

delete/v1/session/{id}Auth

Revoke one of the caller's own sessions. Takes effect immediately — the refresh token stops working straight away, not at the end of its window.

Path parameters

id*string · uuid

Id of the session.

Response · 200 `revoked` is false when the session was already revoked, so repeating the call is safe.

revoked*boolean

True when this call revoked the session; false when it was already revoked.

Example: true

Example

Request

DELETE https://api.platform-auth.productcraft.co/v1/session/{id}
Authorization: Bearer YOUR_TOKEN

Response

{
  "revoked": true
}