palbaseDocs

Palbase Auth API · API

DELETE/auth/sessions/{id}

Revoke a specific session

Revoke a specific session owned by the authenticated user.

Called by a signed-in user of your app, with their token and the publishable key.

Path

idstring · requiredSession ID (`sess_…`)
curl
curl -X DELETE "https://<your-ref>.palbase.studio/auth/sessions/<id>" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY" \
  -H "authorization: Bearer $USER_ACCESS_TOKEN"

Responses

200Session revoked

400Validation failed or required field missing

401Missing, invalid, or expired credentials

404Resource does not exist or is not visible to the caller

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation RevokeSession of auth's contract.