If you attempt to send an SMS to an international code which corresponds with a country listed above the API will return an invalid_phone_number_country_code error. Please reach out to firstname.lastname@example.org if you have any questions.
Our flexible one-time passcodes (OTP) can be sent via SMS, WhatsApp, or email, and allows you to use this method as the primary factor or as a two-factor authentication to strengthen security.
Types of passcodes
Build an authentication flow that texts a one-time, numeric code to your users' mobile devices, which they can then enter to log in.
For reliable deliverability and an international user audience, leverage our WhatsApp OTPs.
Enable seamless cross device logins across desktop and mobile with our Email OTPs.
Example apps using passcodes
Explore the different ways you can layer passcodes in your authentication with our example apps.
Starting with a template
Examples using the Stytch frontend SDKs, for web and mobile. Includes email magic links and all of our OAuth providers, including Google One Tap!