Palbase Auth API · API
POST
/auth/mfa/challengeComplete MFA challenge during login
Complete an MFA challenge by submitting the code for the declared
factor type (totp, email, or sms). Successful verification
consumes the mfa_token and returns the session tokens.
Called by your app, with the publishable key.
Request body
codestring · requiredmfa_tokenstring · requiredShort-lived token issued by `/auth/login` when the account requires MFA.type"totp" | "email" | "sms" · requiredcurl
curl -X POST "https://<your-ref>.palbase.studio/auth/mfa/challenge" \
-H "apikey: $PALBASE_PUBLISHABLE_KEY" \
-H "content-type: application/json" \
-d '{"code":"string","mfa_token":"string","type":"totp"}'Responses
200MFA verified, session issued
400Validation failed or required field missing
401Missing, invalid, or expired credentials
429Rate limit exceeded
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation MfaChallenge of auth's contract.