palbaseDocs

Palbase Auth API · API

POST/auth/signup

Create account

Register a new user with email + password. Returns access + refresh tokens immediately (none while the project requires a confirmed address). The address is verified by the code or link sent to it by e-mail, redeemed via POST /auth/verify-email; neither is in the response.

Subject to PoW + stuffing detection (when bot detection is on) and IP-based rate limiting. Pepper + Argon2id is applied server-side; the plaintext password never reaches storage.

403 signups_closed while the project takes no new users (its signups_enabled is off, or its user ceiling is reached).

Called by your app, with the publishable key.

Headers

X-PoW-Challenge-IDstring · optionalThe challenge a previous `pow_required` answer carried.
X-PoW-Noncestring · optionalThe nonce that solves it.

Request body

auth_request_idstring · optionalThe pending /oauth/authorize request the new account signs in for. A request that is not waiting, or that needs a second factor (aal2 and up: a new account has none yet), is refused with 400 `auth_request_invalid` before the account is opened. A sign-up that signs the person in at once completes it (`urn:nist:800-63:aal1`, amr `pwd`) and the answer names the callback (`oidc_callback_url`); one with the address to confirm first answers no session, and the password sign-in after the confirmation completes it.
emailstring (email) · required
fingerprint_visitor_idstring · optionalThe visitor id the Fingerprint agent produced on this device; scored by the risk engine when the project has connected Fingerprint.
localestring · optionalBCP 47 language tag for the user's e-mails (e.g. `tr`, `en-US`).
passwordstring (password) · requiredNIST 800-63B-4 — 15+ chars single-factor, 8+ with MFA, 64 char max
redirect_tostring (uri) · optionalWhere the verification link lands: an address the auth settings' redirect_urls allow, or one of the project's web apps' redirects (apps:env:set --redirect); any other is refused (invalid_redirect).
curl
curl -X POST "https://<your-ref>.palbase.studio/auth/signup" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY" \
  -H "content-type: application/json" \
  -d '{"email":"user@example.com","password":"string"}'

Responses

201Account created — token pair returned

400Validation failed or required field missing

403A proof of work is required (`pow_required`, with the challenge), or the sign-in is refused.

503Downstream dependency unavailable (typically HIBP / breach service)

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

Operation Signup of auth's contract.