WhatsApp OTP API
One API for SMS, WhatsApp, Telegram and Email. Send verification codes over WhatsApp with the same POST /otp/send call you use for SMS. By default the code arrives as a WhatsApp authentication message with a Copy code button, so your sign-up flow does not change.
Three ways to verify on WhatsApp
Template
DefaultYour backend calls the API and the user receives a WhatsApp authentication message from OTP.com with the code and a Copy code button.
- 01 Authentication message arrives
- 02 The code is in the chat
- 03 User taps Copy code
- 04 Code is filled in your app
Code back
Your app opens WhatsApp with a pre-filled message. The user sends it and the code is returned in the same chat.
- 01 User taps Continue with WhatsApp
- 02 The message is pre-filled
- 03 User sends it
- 04 The code comes back in the chat
- 05 Code is filled in your app
Inbound approve
Your app opens WhatsApp with a pre-filled message. Sending it verifies the number, with no code to type.
- 01 User taps Continue with WhatsApp
- 02 The message is pre-filled
- 03 User sends it
- 04 Number is verified
Why Choose Our WhatsApp OTP Service?
One API, four channels
WhatsApp uses the same send, resend and verify calls as SMS, Telegram and Email. Under Template, the default mode, a code that does not get through moves to the next channel in your order with one resend.
Published per-country rates
Pay per verification sent, with no setup fee, no monthly minimum and no overage rate. Checking a code is free, and the messages in a link mode count as one verification.
Start without a sales call
New accounts get $3 in free credits with no credit card. Test keys run the full flow in the sandbox, so you can build the integration before spending anything.
How it works
Send
Call the endpoint you already use for SMS. Routing picks WhatsApp from the recipient and your channel order; nothing in the request names it.
POST /otp/send
{
"recipient": "+905551234567"
} Deliver
Under Template the code is pushed to the user. In the link modes the response includes an action_url that your app opens.
Verify
Read completion to know whether to ask for a code or wait for the inbound message.
WhatsApp OTP Pricing
WhatsApp OTP is priced per country, like SMS. You pay once per code sent at the published rate for that country. Verifying is free, however many attempts it takes.
Estimates only. Rates are the lowest available on a route we can deliver on; the final cost depends on the operator and your fallback chain.
Testing WhatsApp in the sandbox
With a test key nothing is delivered and nothing is charged.
Testing in sandbox →- Template
- a sandbox send has no
action_url, and the fixed code123456verifies directly, as on SMS. - Link modes
- the send returns a sample
action_urlso you can see the shape, but the link is not live and the OTP stays pending. To finish the flow, move it to SMS with resend{"channel":"sms"}and verify with123456. - Inbound approve
- Inbound approve can only be tested with a live key, because in the sandbox completion is always
"code".
Switching modes
Email info@otp.com with the mode you want and we switch your account. Nothing changes on your side beyond reading action_url and completion.
The other channels
The same API calls cover all four channels, so you can put more than one in your order and let routing pick.
Frequently asked questions
How does WhatsApp OTP pricing work?
WhatsApp OTP is priced per country, like SMS. You pay once per code sent at the published rate for that country, starting from $0.0010 in Colombia; the United States is $0.0041. In the link modes, the inbound and outbound messages that carry one code still count as a single verification.
Do I pay for failed verifications?
Verifying is always free, however many attempts your user needs, and sends from a sandbox test key are free too. What you pay for is the send, so a code that does not arrive is still charged. A resend counts as a fresh verification at the rate of the channel it lands on.
Is there a free trial?
Yes. Every new account starts with $3 in free credits, with no credit card and no sales call. Test keys also run the full send and verify flow in the sandbox without delivering or charging anything.
Ready to start for free?
Global OTP via SMS, WhatsApp, Telegram & Email. One API. Transparent pricing.