palbaseDocs

Palbase Auth API · API

GET/admin/stats

Read the user and sign-in stats

The project's users and sign-ins, counted, for a dashboard: its users (with a verified address, with a second factor, banned), its live sessions, how many users each sign-in provider holds, and, for each of the last days UTC days (today included; a day with nothing in it is listed with zeros), the signups, sign-ins and failed sign-ins, with the window's sign-ins by method. Test users are not counted, nor are their sessions or sign-ins. Sign-ins are read from the audit trail: a password, magic-link, phone-code, passkey or social sign-in to an account; a token refresh is not one, a new account is a signup, and a sign-in completed with a second factor counts once, by its first factor's method.

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

Query

daysinteger · optionalHow many UTC days the series covers, today included: 1 to 90; a value outside that range is refused.
curl
curl -X GET "https://<your-ref>.palbase.studio/admin/stats" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200The counts

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 AdminGetStats of auth's contract.