SMS Verification API for OTP Integration

Send OTP SMS from your app or website with one HTTPS request. Your code creates and checks the OTP; the MetaReach API delivers it on DLT-registered routes and reports delivery status by message ID. HTTP API for most apps, SMPP for high volumes, and SDKs for PHP, Python, Node.js and Java.

What the SMS Verification API Handles

Quick answer: The MetaReach SMS verification API delivers the OTP message your system creates to Indian mobile numbers over DLT-registered routes, returns a message ID, and lets you check delivery status for each number. Code generation and code checking stay in your application. OTP SMS is billed from ₹0.40 down to ₹0.12 per SMS by volume, plus GST, with no setup fee.

The API handles

  • Sending your OTP SMS to Indian mobile numbers (single or comma-separated)
  • Matching the message to your DLT-registered sender ID and template
  • Returning a message ID for every request
  • Per-number delivery status through the delivery report (DLR) API
  • Credit balance checks through the balance API

Your application handles

  • Generating a random OTP (for example 6 digits)
  • Storing it with an expiry time, ideally hashed
  • Checking the code the user enters and limiting wrong attempts
  • Resend rules, such as a 30–60 second cooldown
  • Keeping your API key on the server, never in app or browser code

Meta Reach Marketing built its OTP API for developers who need reliable, low-latency SMS OTP delivery without managing carrier relationships, DLT filing, or delivery infrastructure themselves. You send one HTTP request with the user's mobile number and an approved template - we handle routing and delivery reporting.

The same OTP API India platform powers login verification, payment confirmations, and account recovery flows for banks, fintech apps, e-commerce platforms, and SaaS products across the country. It sits on the same infrastructure as our OTP SMS Services, so pricing, delivery routes, and DLT compliance are identical - the API is simply the programmatic way to trigger it.

Onboarding, DLT setup and pricing are covered on our SMS verification service page. You can also claim 99 free test SMS, request API access or call +91-7669999219 for a guided integration walkthrough.

OTP API Service India - Meta Reach Marketing developer platform

Integration Flow: From API Key to Production

  • 1. Get your credentials Your API key is issued from your MetaReach dashboard once your account is active, usually within 2 hours. Store it as a server-side secret. New accounts can claim 99 free SMS for testing.
  • 2. Set up your sender ID and OTP template Register your 6-letter sender ID and the exact OTP message wording (with a variable for the code) on DLT. MetaReach helps you file the entity, sender ID and template registration free of charge. Approval is given by the operator's DLT platform and usually takes a few working days.
  • 3. Send a test request Call apikey.php with cURL or one of our PHP, Python, Node.js or Java SDKs, sending to your own number. A 011 response with a message ID means the request was accepted; then check the delivery report.
  • 4. Hand over to production With the template approved and mapped to your account, switch real sign-up and login traffic to the API, log every message ID, and watch delivery reports and credit balance. Most teams finish the code part in under 30 minutes.
How the MetaReach OTP API integration works - step by step
Developer example: request, response and failure case
// Example only. Every value in CAPITALS is a placeholder.
1. Send OTP (HTTPS GET)
https://sms.metareach.in/vb/apikey.php
  ?apikey=YOUR_API_KEY
  &senderid=YOUR_SENDER_ID
  &templateid=YOUR_DLT_TEMPLATE_ID
  &number=91XXXXXXXXXX
  &message=Your%20OTP%20is%20123456.%20Valid%20for%205%20minutes.%20-%20BRAND

2. Success response (JSON)
{ "status": "Success", "code": "011", "description": "Message submitted successfully",
  "data": { "messageid": "MESSAGE_ID", "totnumber": "1", "totalcredit": "1" } }

3. Failure response (JSON)  // example: account out of credit
{ "status": "false", "code": "008", "description": "Insufficient credit" }

4. Check delivery (HTTPS GET)
https://sms.metareach.in/vb/http-dlr.php?apikey=YOUR_API_KEY&msgid=MESSAGE_ID

5. Delivery report response (JSON)
{ "status": "Success", "code": "004", "totRecord": "1",
  "data": [ { "id": "MESSAGE_ID", "mobile": "XXXXXXXXXX", "status": "delivered", "delvd_time": "DD-MM-YYYY HH:MM:SS" } ] }
FieldWhat to put there
apikeyYour API key from the dashboard. Keep it on your server.
senderidYour DLT-registered 6-letter sender ID.
templateidYour DLT template ID. If omitted, the sender ID and message are matched against your registered templates.
numberMobile number with country code (91 + 10 digits). Several numbers can be comma-separated.
messageURL-encoded text that matches your approved template, with your generated OTP in place of the variable. 123456 above is a sample code.
messageidReturned on success. Save it to look up the delivery report.

Full parameter list and error codes: SMS API documentation. Download ready-made script samples in PHP, Python, and Node.js. Need help choosing a sending service and completing onboarding? Explore our OTP SMS service for business verification.

SDK & Language Support

Ready-made code samples so your developers integrate the OTP API in minutes, not days.

PHP
Python
Node.js
Java
cURL / HTTP

Delivery Status and Troubleshooting

A 011 response means MetaReach accepted your request, not that the handset received the SMS. Use the message ID with the delivery report API to see the final status of each number.

Send API response codes

CodeMeaningWhat to do
011Message submitted successfullySave the message ID and check the delivery report.
001API key missingSend the apikey parameter on every request.
002Invalid route IDRemove the route parameter or use a route enabled on your account.
004No message foundCheck that message is present and URL-encoded.
007No numbers foundCheck the number format: 91 followed by 10 digits.
008Insufficient creditRecharge, and alert your team when balance runs low (balance API).
009Parent account has insufficient balanceAsk your reseller or account owner to recharge.
010Message campaign failedCheck that the text matches your approved DLT template, then contact support with the request time.

Delivery report statuses

The delivery report API (http-dlr.php) returns one row per number with a status such as submitted (sent to the operator, final status not yet received), delivered (with the delivery time) or failed. Its own error codes are 001 (invalid API key), 002 (invalid or deactivated user) and 003 (invalid message ID).

Callbacks, retries and rate limits

Still stuck? Share the message ID and request time with support on +91-7669999219.

Features of the MetaReach OTP API

Priority OTP Routing

Priority OTP routes across Jio, Airtel, Vi, and BSNL keep average API-to-handset priority routing designed for peak traffic.

Simple HTTPS API, JSON Response

A single HTTPS GET request returns a plain JSON response - no XML, no proprietary formats. Works with any language that can make an HTTP call.

SMPP for Enterprise Volumes

Persistent SMPP v3.4 binds for platforms sending 10 lakh+ OTPs a month - 1,000+ TPS per bind with dedicated IP and port assignment.

DLT Compliant by Default

Every API call requires an approved DLT template and entity ID, passed directly in the request - MetaReach handles registration free of charge. See our OTP DLT compliance guide for template and PE-TM binding rules.

Delivery Reports for Every OTP

Every send returns a message ID. Query the delivery report endpoint with it to see whether each OTP was delivered or failed.

Voice OTP as a Second Attempt

When the delivery report shows an SMS failed, your app can resend the code by Voice OTP through the same account. See our SMS to Voice OTP fallback guide for timing and setup.

HTTP API vs SMPP - Which OTP API Integration Should You Use?

Both connect to the same MetaReach OTP infrastructure. The right choice depends on your volume and how much control your team needs over the connection.

Factor HTTP API SMPP
Best for Most apps, websites, and SaaS platforms Banks and platforms sending 10 lakh+ OTPs/month
Integration time Under 30 minutes with SDKs (after DLT approval) 1-2 business days (IP whitelisting, load testing)
Connection type Stateless HTTPS request per OTP Persistent binary socket (SMPP v3.4)
Throughput High concurrent request volume, standard for most businesses 1,000+ transactions per second per bind
Delivery reports Delivery report API (by message ID) Native PDU delivery receipts

Not sure which fits your volume? Read our SMPP connectivity guide or call our integration team - most businesses start on the HTTP API and move to SMPP only once volume justifies it.

Why Businesses Choose the MetaReach OTP API

Ready to Integrate the SMS Verification API?

Request API access, read the documentation, and test with 99 free SMS on your own number before you go live.

Request API access View SMS API documentation

OTP API in Action - Industry Use Cases

Banking & NBFC

Login verification, fund transfer confirmation, and loan disbursement approval - the API passes DLT template and entity IDs on every call so audit trails stay compliant.

E-Commerce & D2C

Checkout verification and account sign-up OTPs at scale, with delivery reports feeding into order and CRM systems for status tracking.

SaaS & Mobile Apps

Two-factor sign-in and device verification handled through a single API call - PHP, Python, Node.js, and Java SDKs mean any stack integrates without a dedicated SMS engineer.

Healthcare & Insurance

Patient identity confirmation before sharing reports, and policy verification for insurance claims - with Voice OTP available for low-connectivity areas.

OTP API Pricing in India - What Affects the Cost

The OTP API itself is free to access - you pay only the per-SMS slab rate, from ₹0.40 down to ₹0.12 plus GST. A few factors can affect your final cost:

Pricing Factor How It Affects Cost
Monthly OTP volume Higher volume moves you into a lower slab, down to ₹0.12/SMS from 1 lakh SMS.
HTTP API vs SMPP connection The HTTP API is included at no extra cost; dedicated SMPP binds may carry a setup fee for enterprise written SLA on requests.
Voice OTP fallback usage Voice OTP calls are billed separately, per call, only when your app sends one.
Dedicated vs shared route A dedicated sender ID and route costs more than shared infrastructure but improves consistency during peak load.
Support & SLA tier Enterprise accounts with a written uptime SLA and dedicated account manager carry a contract premium.

Compare the full picture on our bulk SMS pricing page or the dedicated OTP SMS pricing breakdown.

Frequently Asked Questions - OTP API Service

What is the MetaReach OTP API? +
The MetaReach OTP API is an HTTP and SMPP-based programming interface that lets your website, app, or backend system send DLT-compliant one-time passwords to users in India programmatically, with delivery typically completing within a few seconds, depending on the operator network.
What is an SMS OTP API? +
An SMS OTP API is an interface your app or website calls to send a one-time password to a user's mobile number by SMS. Your server generates the code, sends it through the API using a DLT-approved OTP template, and then checks the code the user enters. MetaReach's SMS OTP API supports an HTTPS API and SMPP, and OTP SMS are billed at the standard slab rates from ₹0.40 down to ₹0.12 per SMS, plus GST.
How long does OTP API integration take? +
Once your DLT sender ID and templates are approved, most developers integrate the API in under 30 minutes using our PHP, Python, Node.js or Java SDKs and ready-made code samples. Enterprise SMPP integration for very high volumes typically takes 1-2 business days including IP whitelisting and load testing.
Is the OTP API DLT compliant? +
Yes. Every OTP sent through the API requires an approved DLT template ID and entity ID, passed as parameters in the API call. MetaReach handles DLT entity and template registration free of charge for all customers.
What is the difference between the HTTP API and SMPP for OTP delivery? +
The HTTP API is a standard web-request interface, easiest to integrate, and suited to most businesses sending up to several lakh OTPs per month. SMPP is a persistent binary protocol suited to high-throughput enterprise use - 1,000+ transactions per second per bind - used by large banks and platforms sending 10 lakh or more OTPs monthly.
How much does the OTP API cost in India? +
MetaReach's OTP API uses our SMS volume slabs: ₹0.40 per SMS at 5,000 SMS, falling to ₹0.12 from 1 lakh SMS, plus 18% GST, with no setup fee. There is no separate charge for API access itself - you only pay per OTP sent.
Is there a free trial for the OTP API? +
Yes. You can claim 99 free SMS to test delivery on your own number before you buy a plan. Claim your free SMS.
How do I authenticate API requests? +
Every request includes your API key as the apikey parameter over HTTPS. Keep the key on your server, never in app or browser code, and ask support to reset it if it is ever exposed.
How do I check if an OTP was delivered? +
Every send returns a message ID. Call the delivery report endpoint (http-dlr.php) with it to get the status of each number, such as delivered or failed, with the delivery time.
What happens if OTP SMS delivery fails through the API? +
Check the delivery report for the message ID. If it shows failed, your app can retry by SMS or send the code through our Voice OTP API.
Which programming languages have ready-made SDKs? +
MetaReach provides code samples and SDKs for PHP, Python, Node.js and Java, along with plain cURL examples that work with any language capable of making an HTTP request. Download samples here.
Is there a rate limit on the OTP API? +
Standard HTTP API accounts support high concurrent request volumes suitable for most businesses. Enterprises expecting sustained volumes above roughly 1,000 OTPs per second should use the SMPP connection, which is built for that throughput without HTTP API rate ceilings.

Why Choose Meta Reach for Your OTP API?

Meta Reach Marketing - OTP API Service Provider India
Priority OTP Routing
99 Free Test SMS · API Integration in Under 30 Minutes
DLT Filing Handled Free of Cost
From ₹0.12/SMS, No Setup Fee
Trusted by 500+ Businesses Across India
Our Happy Clients

Trusted by Businesses Across India

From startups to enterprises - brands that grow with MetaReach

WhatsApp Facebook Instagram YouTube LinkedIn X / Twitter
☎ Instant Call Back FREE
or request a call back

We'll call you back during business hours (Mon–Sat, 10 AM–6 PM).