palbaseDocs

Palbase Auth API · API

GET/auth/sessions

List active sessions

List active sessions for the authenticated user. The current session is flagged.

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

curl
curl -X GET "https://<your-ref>.palbase.studio/auth/sessions" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY" \
  -H "authorization: Bearer $USER_ACCESS_TOKEN"

Responses

200Sessions listed

401Missing, invalid, or expired credentials

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

Operation ListSessions of auth's contract.