Palbase Auth API · API
/auth/step-upRaise session ACR via step-up
Raise the session ACR (authentication context reference) by
re-verifying with an authenticator app's code (TOTP, aal2), a code texted
to the user's SMS factor (aal2), or a passkey (WebAuthn: aal2, a device-bound key
as well — the flag is the authenticator's own word). The new access token's amr names the method (otp,
sms, swk, hwk) and its auth_time is now; tokens refreshed from the session
keep both. Required before sensitive operations. Subject to rate limiting
(5 per 5 min per account). A text's code is refused to a session below aal2
whose only factor is the phone (400 same_factor): a second text adds nothing.
Called by a signed-in user of your app, with their token and the publishable key.
curl -X POST "https://<your-ref>.palbase.studio/auth/step-up" \
-H "apikey: $PALBASE_PUBLISHABLE_KEY" \
-H "authorization: Bearer $USER_ACCESS_TOKEN" \
-H "content-type: application/json" \
-d '{"code":"string","method":"totp"}'Responses
200Step-up succeeded — new ACR reflected in token/session
400Validation failed or required field missing
401Missing, invalid, or expired credentials
429Rate limit exceeded
503Downstream dependency unavailable (typically HIBP / breach service)
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation StepUp of auth's contract.