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.
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.
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.
// 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" } ] }
| Field | What to put there |
|---|---|
| apikey | Your API key from the dashboard. Keep it on your server. |
| senderid | Your DLT-registered 6-letter sender ID. |
| templateid | Your DLT template ID. If omitted, the sender ID and message are matched against your registered templates. |
| number | Mobile number with country code (91 + 10 digits). Several numbers can be comma-separated. |
| message | URL-encoded text that matches your approved template, with your generated OTP in place of the variable. 123456 above is a sample code. |
| messageid | Returned 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.
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.
| Code | Meaning | What to do |
|---|---|---|
| 011 | Message submitted successfully | Save the message ID and check the delivery report. |
| 001 | API key missing | Send the apikey parameter on every request. |
| 002 | Invalid route ID | Remove the route parameter or use a route enabled on your account. |
| 004 | No message found | Check that message is present and URL-encoded. |
| 007 | No numbers found | Check the number format: 91 followed by 10 digits. |
| 008 | Insufficient credit | Recharge, and alert your team when balance runs low (balance API). |
| 009 | Parent account has insufficient balance | Ask your reseller or account owner to recharge. |
| 010 | Message campaign failed | Check that the text matches your approved DLT template, then contact support with the request time. |
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).
011 response. Let the user tap “Resend OTP” after a 30–60 second cooldown, invalidate the old code, and cap resends per number. If SMS keeps failing, offer a voice OTP fallback.Still stuck? Share the message ID and request time with support on +91-7669999219.
Priority OTP routes across Jio, Airtel, Vi, and BSNL keep average API-to-handset priority routing designed for peak traffic.
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.
Persistent SMPP v3.4 binds for platforms sending 10 lakh+ OTPs a month - 1,000+ TPS per bind with dedicated IP and port assignment.
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.
Every send returns a message ID. Query the delivery report endpoint with it to see whether each OTP was delivered or failed.
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.
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.
Request API access, read the documentation, and test with 99 free SMS on your own number before you go live.
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.
Checkout verification and account sign-up OTPs at scale, with delivery reports feeding into order and CRM systems for status tracking.
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.
Patient identity confirmation before sharing reports, and policy verification for insurance claims - with Voice OTP available for low-connectivity areas.
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.
From startups to enterprises - brands that grow with MetaReach