OTP and 2FA authentication
Your OTP. Your settings. SMS or WhatsApp.
Build your verification configuration from the dashboard. Choose a 4-, 6- or 8-digit OTP, set its expiry time and select SMS or WhatsApp to fit your customer journey.

A clear starting point
How do SMS and WhatsApp OTP work together?
Configure the code length, expiry time and delivery channel in your dashboard. Deliver the one-time code through SMS or an eligible WhatsApp authentication template. Your verification system checks the submitted code and expiry before granting access. For 2FA, use the code as an additional factor alongside the primary sign-in method.
Verify the action, not just the phone number.
A good verification flow explains why the code was sent and what to do next. Treat signup, sign-in and account recovery as separate purposes. Keep the verification attempt tied to the action in progress, and provide a safe way to request a new code without sending repeated messages.
Try your verification setup
Pick the code. Choose the channel. Preview the message.
Explore the dashboard controls with a sample SMS or WhatsApp authentication message.
YOUR VERIFICATION, YOUR CHOICE
Build your OTP experience.
Choose the code format and how customers receive it.
Sample settings only. No OTP is sent or configuration saved.Enter the code in the application where you requested it.
Change a setting to preview your message.
What the experience should do
OTP and 2FA authentication: the details that matter.
Choose the code length
Select 4, 6 or 8 digits for your verification configuration. Keep the entry screen consistent with your chosen format.
Set a useful expiry
Choose how long a code remains valid and explain that window in the customer message.
Select the delivery channel
Use SMS or WhatsApp for the verification journey, with each channel set up for authentication traffic.
From idea to a working process
How to plan sms and whatsapp otp authentication.
Work through the customer experience before sending to a wider audience.
Create a dashboard configuration
Give the verification purpose a clear name, such as sign-in or account recovery.
Choose code length and expiry
Select 4, 6 or 8 digits and the validity period your customer journey needs.
Select SMS or WhatsApp
Choose the channel and prepare its approved sender or authentication template.
Preview and test the journey
Check the chosen code format, expiry, incorrect-code handling and resend behavior before launch.
Understand the working details
Configure in the dashboard. Verify in the customer journey.
Choose SMS or WhatsApp, a 4-, 6- or 8-digit code and the expiry window. Keep your customer entry screen aligned with that configuration, then validate the code, expiry and attempt before completing sign-in or the second authentication factor.
What happens when a customer asks for another code?
Agree whether a resend repeats the current valid code or creates a new one, then make the behavior consistent across channels. Do not leave multiple unrelated attempts active without a clear rule. A customer who requested SMS after waiting for WhatsApp should understand which code to enter and whether an older message is still useful. Keep the sign-in screen aligned with the delivery process.
How should the backup channel behave?
Treat fallback as part of the same verification request, not a second sign-in. Decide what failure or waiting condition justifies sending a backup, and stop unnecessary further attempts once the customer succeeds. Check the fallback destination and traffic setup before launch. The goal is a recoverable experience for the customer, with a clear explanation when neither route is available.

Follow a realistic example
Worked example: a customer cannot receive WhatsApp
An online store needs customers to verify a sign-in, but a customer’s phone cannot receive the first message. The customer should not need to create another account or restart checkout.
What the process needs to do
The application keeps the same verification attempt, makes the configured backup available and tells the customer what to expect. Staff can distinguish a message that was not delivered from an incorrect or expired code.
What the team should review
Review successful attempts, backup use and repeated requests together. A lower message cost is not a useful improvement if more customers abandon the verification step.
Make the right choice
Choose the verification behavior for the situation.
| Situation | Recommended approach | What to watch for |
|---|---|---|
| WhatsApp is unavailable | Use the configured backup for the same attempt | Do not create an unrelated account action |
| The customer requests a resend | Apply one consistent code and expiry rule | Explain which code remains valid |
| A code has expired | Start the defined recovery or new-attempt path | Do not treat late delivery as success |
Make the message concrete
OTP and 2FA authentication: example messages.
Illustrative copy to guide a conversation. Review your content, purpose and channel requirements before using it.
SMS · 4-digit code
WhatsApp · 6-digit code
SMS · 8-digit code
Before you launch
Know the setup, the costs and the boundaries.
What you need
- An eligible WhatsApp Business setup and authentication template.
- A verification service that generates, expires and validates codes.
- An approved SMS setup if you choose SMS as the backup.
What affects the cost?
Budget for authentication messages, platform charges and any backup SMS. Compare costs for your destinations and expected resend volume using current rates; a single rate cannot describe every verification attempt.
Discuss scope and pricing ↗Limits worth planning for
- A received OTP does not by itself provide identity proofing or a KYC check.
- Do not promise that WhatsApp reaches every number or that every delivery is immediate.
- Autofill and other authentication actions depend on eligibility and device support.
What to measure
- Completed verifications per attempt
- Time from request to successful verification
- Resends and fallback use
Use your own baseline. These are measurement ideas, not promised results.
Platform reference: WhatsApp authentication messages ↗. Check the current requirements for your business and destination.
Practical questions
OTP and 2FA authentication questions, answered.
Is WhatsApp OTP the same as KYC?
No. It can help establish access to a messaging account during a particular action. Identity proofing and regulated KYC require separate checks.
Can I choose SMS or WhatsApp and customize the OTP?
Yes. Configure the delivery channel, choose 4, 6 or 8 digits and select the code expiry in the dashboard. WhatsApp requires an eligible authentication template and SMS requires the appropriate sender setup.
Who checks whether the code is correct?
Your verification system checks the code, expiry, attempt limits and the action it belongs to. The messaging channel delivers the message.
How much does a WhatsApp OTP cost?
The total depends on destination, current authentication pricing, platform charges and retries or SMS fallback. Ask for a quote based on your traffic mix.
Fix the gaps before launch
Common sms and whatsapp otp authentication mistakes.
Confusing delivery with verification
Record these outcomes separately so a transport receipt never grants account access.
Unlimited resend prompts
Make resend behavior deliberate and review repeated requests.
Promotional content in a code message
Keep the authentication purpose distinct from a marketing campaign.
Your next useful step
Bring this use case into your customer experience.
Start with one customer moment, a clear owner and a process your team can maintain.
Choose a practical starting point
Create an account to explore the platform, or talk to the team about your setup.
Already registered? Log in