Auth
Challenge an MFA factor
POST
/auth/factors/{factor_id}/challengeCreates a challenge for an enrolled TOTP, phone, or WebAuthn factor.
Parameters
MFAChallengeParamsfactorIdstring- The enrolled factor ID.
channel?'sms' | 'whatsapp'- Required by the phone-factor overload.
webauthn.rpId?string- Required by the WebAuthn overload.
webauthn.rpOrigins?string[]- Allowed origins for a WebAuthn challenge.
Returns
idstringtype"totp" | "phone" | "webauthn"expires_atnumberwebauthn?WebAuthnChallengeData