Send Verification Codes Through WhatsApp
Send and verify WhatsApp OTPs through one API, with cost-based routing and automatic fallback to another eligible channel when delivery isn't confirmed.
Trusted by global companies
Add WhatsApp to Your OTP Delivery Options
Give your application another way to reach users and reduce delivery costs where WhatsApp offers a lower-priced route.
Cost-Based Routing
Let SecondFactor select WhatsApp when it is the lowest-cost eligible channel for your request.
Automatic Fallback
Try the next eligible channel if WhatsApp delivery isn't confirmed within eight seconds.
Managed OTP Verification
Use SecondFactor to generate and verify codes without building OTP storage and validation into your backend.
Delivery Visibility
Review the channel, delivery status, and cost of each OTP request from your dashboard.
Connect Your Account and Start Sending WhatsApp OTPs
Link your WhatsApp Business Account, get an authentication template approved, then call the same send-and-verify API.
Connect WhatsApp
Link your WhatsApp Business Account through the SecondFactor dashboard and complete the applicable business and sender setup.
Set Up an Authentication Template
Submit a WhatsApp authentication template and track its approval before using it to send codes.
Integrate the OTP API
Use /otp/send to request a code and /otp/verify to check the code entered by your user.
Manage Your WhatsApp Authentication Templates
Create and submit authentication templates from SecondFactor, with wording and options that follow WhatsApp's authentication format.
Standard Verification Message
Use WhatsApp's prescribed authentication message to deliver your verification code.
Security and Expiry Information
Include the supported security disclaimer and expiry warning when configuring your template.
Approval Tracking
Check template status from your dashboard so you know when it is ready to use.
Use WhatsApp OTPs in Your Signup and Login Flows
Verify Phone Numbers at Signup
Ask new users to enter a code delivered through WhatsApp to verify their phone number during registration.
Explore Phone Verification →Add a Second Authentication Step
Use a WhatsApp OTP alongside another authentication factor, such as a password, before granting account access.
Explore Two-Factor Authentication →Check WhatsApp OTP Pricing for Your Destination Markets
Review pricing for the countries where your users are located, or talk to our team about your expected volume and channel setup.
SecondFactor's routing engine evaluates WhatsApp alongside your other eligible channels to select the lowest-cost available route.
Frequently Asked Questions
Write to support@secondfactor.ai for anything not covered here.
Do I Need a WhatsApp Business Account?+
Yes, you need to connect a WhatsApp Business Account and complete the applicable sender setup and template approvals before sending WhatsApp OTPs through SecondFactor.
Does the Recipient Need WhatsApp?+
Yes, the recipient's number must be registered with WhatsApp and able to receive the message. If delivery isn't confirmed, SecondFactor can try another eligible channel enabled for your account.
Can I Customize the Verification Message?+
WhatsApp authentication templates use prescribed wording rather than a fully custom message. Supported options include a security disclaimer and an expiry warning, which you can configure when setting up the template.
Is WhatsApp Always Cheaper Than SMS?+
The lower-cost option depends on the destination and applicable rates. SecondFactor evaluates eligible channels for each request rather than assuming WhatsApp will always cost less.
Will Every OTP Be Sent Through WhatsApp Once I Connect It?+
Connecting WhatsApp makes it available to the routing engine. SecondFactor selects the lowest-cost eligible channel for each request, so another channel may be used when it offers a lower-priced route.
What Happens if the WhatsApp OTP Is Not Delivered?+
If delivery isn't confirmed within eight seconds, SecondFactor attempts the next eligible channel. Available fallback options depend on your connected channels and the recipient's capabilities.
Do I Need a Separate API Integration for SMS Fallback?+
The same SecondFactor API handles delivery across supported channels. You need to enable SMS and complete any applicable setup, but your application does not need a separate SMS integration.
Add WhatsApp to Your OTP Integration
Create your SecondFactor account to connect WhatsApp, or talk to our team about setup and pricing for your application.