palbaseDocs

Palbase Auth API · API

GET/admin/sessions

List live sessions

Lists the project's sessions that are not revoked, a page at a time, newest first — with user_id, one user's. Pass the page's next_cursor as cursor to read the next page; next_cursor is absent on the last page.

Called by your server, with the project's secret key.

Query

limitinteger · optionalHow many items to return, 1 to 200; a value outside that range is refused.
cursorstring · optionalThe next_cursor of the previous page. Opaque; omit it for the first page.
user_idstring · optionalOnly this user's sessions; an id the project does not have answers an empty page. The next page is asked with the same user_id.
curl
curl -X GET "https://<your-ref>.palbase.studio/admin/sessions" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200A page of sessions

400Validation failed or required field missing

401Missing, invalid, or expired credentials

403Authenticated but not permitted (banned, hook denial, role mismatch)

503Downstream dependency unavailable (typically HIBP / breach service)

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

Operation AdminListSessions of auth's contract.