palbaseDocs

Palbase Auth API · API

POST/auth/mfa/email/verify

Verify email OTP during MFA challenge

Verify the email OTP delivered to the user. Successful verification consumes the mfa_token and returns session tokens.

Called by your app, with the publishable key.

Request body

codestring · required
mfa_tokenstring · required
curl
curl -X POST "https://<your-ref>.palbase.studio/auth/mfa/email/verify" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY" \
  -H "content-type: application/json" \
  -d '{"code":"string","mfa_token":"string"}'

Responses

200Email OTP 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 MfaEmailVerify of auth's contract.