Use this file to discover all available pages before exploring further.
Multi-factor authentication (MFA) adds an additional security layer by requiring members to verify their identity with a second factor after their primary authentication. Stytch supports SMS OTP and TOTP authenticator apps.
MFA can be enforced at the organization level using the mfa_policy setting:
REQUIRED_FOR_ALL - All members must complete MFA after primary authentication
OPTIONAL - Members can optionally enroll in MFA for their account
When MFA is required, authentication endpoints return member_authenticated: false and an intermediate_session_token. The member must complete an MFA challenge before receiving a full session.Organizations can also restrict which MFA methods are allowed using mfa_methods and allowed_mfa_methods settings. See the Update Organization endpoint for configuration details.
Returns a full session upon successful verification.
After a successful primary authentication (email magic link, SSO, etc.), an SMS OTP is automatically sent if the member has a phone number enrolled. This endpoint is primarily for resending OTPs.
Authenticate using a time-based one-time passcode from an authenticator app like Google Authenticator or Authy.Create TOTP registration with the Create TOTP endpoint: