Palbase Auth API · API
/admin/auditList audit events
Lists the project's audit trail a page at a time, newest first, optionally only one event type, and only the events about one user (user_id). A backend checks a user changed their password with user_id and event_type=auth.password.change: each event's target_id is the user, result success or failure, created_at when. Personal data in each event (the actor, the metadata) is decrypted; it is absent for a user whose data was erased. 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 100; a value outside that range is refused.cursorstring · optionalThe next_cursor of the previous page. Opaque; omit it for the first page.event_typestring · optionalOnly events of this type, e.g. auth.login.success.user_idstring · optionalOnly events about this user: those whose target_id is the user — their sign-ins, their password changes (auth.password.change), and what was done to their account. With event_type, one kind of them: user_id=usr_… and event_type=auth.password.change answer that user's password changes, newest first.curl -X GET "https://<your-ref>.palbase.studio/admin/audit" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
200A page of audit events
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 AdminListAuditEvents of auth's contract.