WhatsApp OTP API

WhatsApp OTP API for India

Send one-time passwords to your users on WhatsApp with one API request. Verify sign-ups, logins, and payments on the messaging app most Indian smartphone users open every day.

  • One GET request per OTP
  • Sandbox testing
  • Delivery status webhooks

Jump to: API request · Setup steps · WhatsApp vs SMS · FAQ · WhatsApp vs SMS cost · WhatsApp OTP rates · Chat with us

Last updated:

Why WhatsApp OTP

Why use WhatsApp for OTP verification in India

WhatsApp OTP sends the same one-time password you would send by SMS, but delivers it inside WhatsApp as an authentication message.

Reaches users where they already are

The code arrives in WhatsApp, the app your users already have open. They do not need to search through their SMS inbox for it.

Meta-approved authentication messages

WhatsApp authentication messages use templates approved by Meta, not TRAI DLT SMS templates. This is a separate approval path from domestic SMS.

Sent, delivered and read status

Set a webhook in PingToChat and get Sent, Delivered and Read status updates for your WhatsApp messages at your callback URL.

WhatsApp OTP API for India flow: your server calls the EazyOTP API, which sends the OTP on WhatsApp to the user
Developer API

Send a WhatsApp OTP with one request

Call the WhatsApp Eazy OTP endpoint with the user’s number in international format. EazyOTP generates the OTP, sends it on WhatsApp, and returns a track_id and the OTP to your server.

Your API key is part of the request URL, so always call the API from your backend, never from the browser or app JavaScript.

WhatsApp Eazy OTP API reference →

Request (from your server)

GET https://app.pingtochat.com/api/v1.0/{YOUR_API_KEY}/whatsappeazyotp?number=91XXXXXXXXXX

Success response (example)

{
  "status": "success",
  "message": "WhatsApp OTP Sent Successfully",
  "track_id": "76B9FBQR3",
  "recipients": [
    { "mobile_number": "91XXXXXXXXXX", "status": "sent" }
  ],
  "otp": "392605"
}
How it works

Go live with WhatsApp OTP in five steps

Most of the setup happens in your PingToChat account. You only write the code for the API call and the code check.

Create your account
  1. Create your PingToChat account

    Sign up at app.pingtochat.com. EazyOTP runs on the PingToChat messaging platform.

  2. Activate WhatsApp Eazy OTP

    Activate the WhatsApp Eazy OTP service in your account. Contact us if you need help.

  3. Test in the sandbox

    Send sandbox OTP messages to one test number from the dashboard and check that they arrive.

  4. Call the API from your backend

    Request whatsappeazyotp with the user’s number. Then save the returned OTP on your server with an expiry, for example, five minutes.

  5. Verify and monitor

    Compare the code the user types with the stored code. Use webhooks to track whether each message was sent, delivered, and read.

WhatsApp vs SMS

WhatsApp OTP or SMS OTP for Indian users?

Many teams send OTPs on WhatsApp first and keep SMS for users who are not on WhatsApp.

WhatsApp OTP compared with SMS OTP in India
  WhatsApp OTP SMS OTP
Needs mobile data Yes No
Works on feature phones No Yes
Template approval Meta authentication template TRAI DLT for the domestic route; none on your side for the Global SMS route
Delivery status Sent, delivered, and read via webhook Send status in the API response
EazyOTP endpoint whatsappeazyotp smseazyotp (DLT) or globalsmseazyotp

Need both? See multi-channel OTP fallback for falling back from WhatsApp to SMS. For SMS without DLT paperwork on your side, see instant SMS OTP for India.

Ready to try it on your own phone?

Create an account and send a WhatsApp OTP from the sandbox in a few minutes. Questions about templates or pricing? We reply on WhatsApp.

Use cases

Where businesses use WhatsApp OTP

Sign-up and login

Confirm that a phone number belongs to the user during registration and passwordless login.

Payments and account changes

Ask for a code before payouts, password resets, or changes to bank or contact details.

Order and COD confirmation

Confirm cash-on-delivery orders and deliveries with a code, which helps reduce fake orders.

FAQ

WhatsApp OTP API questions

Can’t find your answer? Contact our team or read the EazyOTP API documentation.

What is a WhatsApp OTP API?

A WhatsApp OTP API lets your backend send a one-time password to a user’s WhatsApp number with a single API request. EazyOTP generates the code, delivers it through a WhatsApp authentication message, and returns the result to your server.

Do my users need WhatsApp to receive the OTP?

Yes. The number must be registered on WhatsApp. For users who do not use WhatsApp, send the code by SMS instead. See multi-channel OTP fallback for how to combine both channels.

Do WhatsApp OTPs need DLT registration in India?

TRAI DLT registration applies to SMS. WhatsApp authentication messages use message templates approved by Meta, not DLT SMS templates. If you also send SMS OTPs on the domestic route, those still need DLT registration.

Can I test the WhatsApp OTP API before going live?

Yes. After the service is activated on your PingToChat account, you can send sandbox OTP messages to one test number from the dashboard before you switch on live traffic.

How do I verify the code the user enters?

The success response includes the OTP that was sent. Store it on your server (preferably hashed) with a short expiry, compare it with what the user types, and never send it to the browser.

How much does WhatsApp OTP cost in India?

You pay per OTP message, and the rate depends on the destination country and channel. See OTP pricing or contact our team for volume pricing.

Start sending WhatsApp OTPs today

Create your PingToChat account, test in the sandbox, and connect the WhatsApp OTP API to your app.

Already have an account? Log in to PingToChat