Loading...
WhatsApp OTP API: cost in India, setup and SMS compared

WhatsApp OTP API: cost in India, setup and SMS compared

A WhatsApp OTP API sends one-time passwords as WhatsApp authentication template messages.

Quick answer

Most apps in India still send login codes by SMS. It works, until the code arrives 40 seconds late, or never, and the user is stuck on your sign-up screen. A WhatsApp OTP API is the other route: the code lands in the chat the person already has open all day.

This guide covers what the API actually is, what Meta fixes in the template, the cost in rupees, how it compares with SMS, and the security basics your developer must not skip.

What a WhatsApp OTP API is

There is no separate OTP product. You send a message template in the authentication category through the WhatsApp Business Platform (the Cloud API). Your server makes the call; Meta delivers the message.

Meta’s rule is firm: if your app offers WhatsApp delivery of verification codes, you must use an authentication template (Meta’s authentication template docs). You can’t dress a code up as a utility message to dodge it.

The template body is fixed. It reads, in Meta’s words, “<VERIFICATION_CODE> is your verification code.” You can add a security line (“For your security, do not share this code”) and a footer saying how many minutes the code lasts, from 1 to 90.

That is why authentication templates get approved fast. There is almost nothing for Meta to object to.

Three button styles

Each authentication template carries one button option.

Meta’s docs add that iOS 26 and later offers keyboard suggestions from the push notification, while older iOS versions have no autofill, so copy code is the one that works there. Most Indian web sign-ups will use copy code and nothing else.

What it costs, with the sum

Since 1 July 2025 Meta bills per delivered message. From 1 January 2026 the India rate for an authentication message is ₹0.115 before 18% GST. Prices follow the recipient’s country code, so an OTP to a +91 number is priced in India terms wherever your server sits.

  • 10,000 OTPs a month: 10,000 x ₹0.115 = ₹1,150. GST at 18% is ₹207. Total ₹1,357.
  • 50,000 OTPs: ₹5,750 plus ₹1,035 GST = ₹6,785.
  • One OTP with GST: ₹0.1357, a little over 13.5 paise.

Failed sends are the part to watch. Meta charges for delivered messages, so a code sent to a number that isn’t on WhatsApp should not bill, but check your own WhatsApp Manager statement for how your account behaves.

In WaMark’s setup Meta bills the business directly at its rate. WaMark adds no markup on top of Meta’s per-message charge; you pay WaMark only for the plan, from ₹999 a month before 18% GST. The WhatsApp Business API pricing guide has the other categories.

WhatsApp OTP API vs SMS OTP

I’m not going to quote an SMS price here. It varies by provider and volume, and I’d rather you get two live quotes and put them next to the 13.5 paise above.

What I can compare is the setup.

On the SMS side, India’s DLT system (registering your business, sender ID and message templates with the operators) covers OTPs as well as promotional messages, according to provider guides from Exotel and Plivo. Those are vendor pages, not TRAI itself, so confirm the current rules on your operator’s DLT portal before you plan around them.

My stance: use WhatsApp first for users who live on it, which in India is a lot of people, and keep SMS as the fallback. If the WhatsApp send fails or the number isn’t on WhatsApp, fall back after a short wait. Offering both costs you little and saves the sign-up.

Send OTPs on WhatsApp without the template fuss

WaMark builds authentication templates in a few clicks and has a REST developer API and webhooks for your code.

Start with WaMarkSee pricing

When SMS is still the better pick

I’d keep SMS as the main route in three cases. Your users are mostly on feature phones. Your audience is rural enough that data access is patchy. Or you’re a bank-style product where a regulator or an auditor expects a particular channel.

For a shop app, a coaching portal, a clinic booking page or a delivery service, WhatsApp is usually the faster path to a working login. The user opens a chat they already read ten times a day.

One more cost point. If you already pay for DLT registration and an SMS plan, switching isn’t free of effort: you’ll still run both for a while. Treat the first month as a test. Send half your codes on WhatsApp, half on SMS, and compare how many users finish the login within 2 minutes.

Whatsapp otp api tracked in the WaMark lead pipeline board
A login code delivered on WhatsApp

WhatsApp OTP API security basics your developer shouldn’t skip

WhatsApp delivers the code. Everything else is on you.

  • Generate it properly. A 6-digit code from a cryptographically secure random source, never a counter or the time.
  • Short expiry. Set 5 to 10 minutes. Match the footer minutes in the template to the real expiry on your server.
  • One use only. Delete the code the moment it verifies.
  • Limit attempts. Lock after 5 wrong tries, and rate-limit requests per number and per IP.
  • Cool-down on resend. 30 seconds between sends stops a bored script from running up your bill at 13.5 paise a time.
  • Store hashed. Keep a hash of the code, and keep codes out of your logs.

Meta adds its own advice: confirm the user’s WhatsApp number before sending, and tell them the code is going to WhatsApp, especially if you offer other delivery methods. Both cut support tickets.

Codes go only to the user’s primary WhatsApp device. On linked devices the message is masked. Meta says this is on by default, can’t be configured, and works only on the Cloud API.

A sample, end to end

Ravi opens your app and types 9XXXXXXXXX. Your server creates a code, say 482913, stores its hash with a 10-minute expiry, and calls the API with your approved template.

482913 is your verification code. For your security, do not share this code. This code expires in 10 minutes.

Ravi taps copy code, returns to your app, pastes, and submits. Your server compares the hash, deletes the code and logs him in. If he does nothing for 30 seconds, the resend button wakes up, and after a second failure you offer SMS.

Log the outcome of every send, not the code. You want to know how many requests were sent, delivered, read and verified, because the gap between delivered and verified tells you whether the problem is the channel or your own screen.

If delivered is high and verified is low, look at the form. Is the code field tiny? Does the keyboard cover it? Does the page time out while the user is in WhatsApp? These are boring bugs and they lose real sign-ups.

Roll out a WhatsApp OTP API in a week

Day 1: create the authentication template and submit it. Day 2: while you wait, write the server side, with generation, hashing, expiry and the attempt counter. Day 3: test with 3 internal numbers on copy code. Day 4 to 5: add the SMS fallback and the resend cool-down. Day 6: ship to 10% of sign-ups. Day 7: read your delivery statuses and decide.

Keep the template name simple and in lowercase with underscores, like login_code. You’ll be typing it in code for years.

Common WhatsApp OTP API mistakes

  • Using a marketing template for codes. Wrong category, extra cost, and a rejection risk.
  • No fallback. Some of your users won’t have WhatsApp, and you won’t know which until they fail.
  • Sending OTP and a promo in one message. Authentication templates have no room for promotional wording, and vague or promotional text is a known cause of rejection.
  • Forgetting the volume spike. A sale or login rush can send thousands of codes in minutes. Test your throughput before the campaign.

A WhatsApp OTP API through WaMark

WaMark runs on the official WhatsApp Business API. You create an authentication template in a few clicks, get it approved, and call WaMark’s REST developer API from your backend. Delivery and read status come back through webhooks.

The same workspace holds your API account, your inbox and your campaigns, so support can see a failed code in the same place they handle chats. Details on the features page.

Frequently asked questions

How much does a WhatsApp OTP cost in India?

Meta charges ₹0.115 per delivered authentication message in India from 1 January 2026, before 18% GST. That is about ₹0.1357 with GST, so 10,000 OTPs come to ₹1,357. Your provider may add a plan fee, so check whether it marks up Meta’s rate.

Is a WhatsApp OTP API better than SMS?

It depends on your users. A WhatsApp OTP API reaches only people with WhatsApp and data, but skips the SMS operator route and the DLT template setup. Many teams send on WhatsApp first and fall back to SMS. Compare two live SMS quotes against ₹0.1357 per OTP.

Do I need a template to send an OTP on WhatsApp?

Yes. Meta requires an authentication template for verification codes. The body is fixed: the code followed by “is your verification code”, with an optional security line and an expiry footer of 1 to 90 minutes. Approval is usually quick, within minutes to a day or two.

Can I send OTPs on WhatsApp without an app?

Yes. A website can use the copy code button, which works without app changes: the user taps, returns to the page and pastes. One-tap autofill and zero-tap need an Android app with extra setup. Your server still generates, stores and checks the code.

Is WhatsApp OTP secure?

The code is sent to the primary WhatsApp device and masked on linked devices, per Meta. Security still depends on your side: use a random 6-digit code, expire it in 5 to 10 minutes, allow one use, limit attempts and rate-limit resends.

Ready to try it on your own chats?

Plans start at ₹999 a month before 18% GST.

Start with WaMarkSee pricing
Blog tag:Guides
Previous
Next

Have a question about this post?

Your email address will not be published. Required fields are marked *

WaMark

WaMark

WhatsApp marketing and CRM

Practical guides on WhatsApp marketing, the Business API and running your business on WhatsApp.

Get started

Categories