Palbase Auth API · API
/admin/users/{uid}/exportExport a user's data
Returns everything auth holds about the user, as a downloadable JSON file: the profile with email and phone decrypted, identities, sessions, consents, MFA factors, passkeys, devices and the user's audit trail. It contains no secrets (no password hash, factor secrets, key material or tokens). The export itself is recorded in the audit trail.
Called by your server, with the project's secret key.
Path
uidstring · requiredThe user's ID.curl -X GET "https://<your-ref>.palbase.studio/admin/users/<uid>/export" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
200The user's data
400Validation failed or required field missing
401Missing, invalid, or expired credentials
403Authenticated but not permitted (banned, hook denial, role mismatch)
404Resource does not exist or is not visible to the caller
503Downstream dependency unavailable (typically HIBP / breach service)
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation AdminExportUser of auth's contract.