Palbase Auth API · API
/auth/mfa/sms/challengeSMS OTP challenge during login
Single endpoint for SMS MFA during login. Omit code to send
the SMS; resubmit with code to verify. Successful verification
consumes the mfa_token and returns session tokens. When a code
is omitted the response shape collapses to {status: "sent"}.
Called by your app, with the publishable key.
Request body
codestring · optionalWhen omitted, the server sends an SMS and returns `{status:"sent"}`. When supplied, the SMS code is verified.mfa_tokenstring · requiredcurl -X POST "https://<your-ref>.palbase.studio/auth/mfa/sms/challenge" \
-H "apikey: $PALBASE_PUBLISHABLE_KEY" \
-H "content-type: application/json" \
-d '{"mfa_token":"string"}'Responses
200status=sent (no code submitted) or session tokens (verified)
400Validation failed or required field missing
401Missing, invalid, or expired credentials
403Authenticated but not permitted (banned, hook denial, role mismatch)
429Rate limit exceeded
503Downstream dependency unavailable (typically HIBP / breach service)
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation MfaSMSChallenge of auth's contract.