Logout an identity

Logout of an identity and revoke any active tokens.

POST https://api.jsonpad.io/identities/logout

Example

cURL
123456789curl https://api.jsonpad.io/identities/logout \ -X POST \ -H "Content-Type: application/json" \ -H "x-api-token: <YOUR TOKEN>" \ -H "x-identity-token: <IDENTITY TOKEN>" \ -H "x-identity-group: <IDENTITY GROUP>" \ -d '{ "all": true }'

Parameters

No parameters

Request headers

  • required
    x-api-tokenstringYour API token.
  • required
    x-identity-tokenstringAn identity token.
  • required
    x-identity-groupstringAn identity group.

Request body

{
all: true
}
  • optional
    allbooleanBy default, only the session for this identity token ends. Set this to true to log the identity out on every device.

Response body

204 No Content

No response body

Response headers

No response headers

2026-09-17