Guides: SMS and OTP guides for Indian businesses
These guides are for two kinds of reader: developers adding phone verification or SMS to an app, and the business owners and product teams who have to get those messages through India's rules. They cover four subjects. DLT registration explains how to register your business, sender header and templates with the telecom operators, what it costs and what each step asks for. SMS types sets out the difference between transactional, service and promotional messages, who each one reaches and when it may be sent. OTP API integration shows how to send and verify a one-time password in two server calls, with working code for Node.js, React, React Native, PHP, .NET and WordPress. OTP security covers expiry, attempt limits, system design and the SMS pumping fraud that can drain a balance overnight. Each guide is written by the team that runs DiOTP and links to the reference docs when you are ready to build.
All guides
Send OTP SMS without DLT registration
For businesses that need OTPs working before their own DLT registration is approved. It explains how the shared, pre-approved template works, what your users see, and its limits. When your sender ID is approved, you switch over with no code changes.
Read more 6 min readDLT registration for SMS in India: a step-by-step guide
For businesses sending SMS in India under their own name for the first time. It walks through registering your entity, your sender ID, a consent template and your content templates, in the order DLT expects them. You will know which documents to keep ready and what each step involves.
Read the guide 8 min readTransactional, service and promotional SMS in India: what is the difference?
For anyone writing SMS templates or choosing a category on DLT. It explains transactional, service and promotional messages with real examples, which ones reach numbers on the DND list and when each may be sent. It also covers the category mistakes that most often get templates rejected.
Read the guide 7 min readHow to add OTP verification to your app, with code
For developers adding phone verification to a sign-up or login form. It shows the two server calls, send and verify, with working code in cURL, Node.js, Python and PHP. It also covers retries, error handling and what to show the user while they wait for the code.
Read the guide 9 min readOTP security best practices: expiry, attempts and abuse limits
For product and security teams who run an OTP flow in production. It sets out the expiry, attempt limits, resend cooldowns and per-number caps that stop account takeover. It also explains SMS pumping fraud and how to keep attackers from running up your bill.
Read the guide 8 min readDLT header registration: how to get your SMS sender ID approved
For businesses registering the sender name that appears on their SMS. It explains header formats for each message type, what the operator checks, and the step-by-step process on a DLT portal. It also lists the reasons headers are most often rejected and how to avoid them.
Read the guide 9 min readSMS pumping fraud: how it works and how to protect your OTP flow
For developers and product teams with a public sign-up or login form that sends OTPs. It explains how SMS pumping works and why it targets OTP forms, then the warning signs to watch for. It finishes with a layered set of defences, from per-number limits to monitoring how many codes are verified.
Read the guide 11 min readOTP SMS cost in India: what you really pay per verification
For founders, product managers and developers budgeting for phone verification in India. It breaks down every part of the bill, from the price per message and GST to DLT fees, resends and fraud, and sets published provider prices side by side with their sources.
Read the guide 10 min readBest OTP service providers in India: how to choose one
For teams choosing an OTP provider for an Indian app or website. It sets out the criteria worth checking, gives a factual, sourced overview of several providers without ranking them, and explains when each type of service fits. It is written by DiOTP, and says so.
Read the guide 9 min readDLT template ID: what it is, how to get one and how to register templates
For businesses and developers in India who need to register SMS content before they can send it. It explains what a content template and its Template ID are, how to register one on a DLT portal, and how to write OTP templates with variables. It also covers categories, consent templates and the most common reasons for rejection.
Read the guide 7 min readWhatsApp authentication templates for OTP: how they work and what they cost
For product teams and developers in India who want to send login and verification codes on WhatsApp. It explains Meta's authentication template category, its fixed wording, buttons and restrictions, and how pricing works. It also shows how DiOTP sends on a template it already has approved, so you do not write or submit one.
Read the guide 10 min readOTP verification in Node.js: the full verify flow, sessions, rate limits and tests
For backend developers who need phone verification in a Node.js app to hold up in production. It walks through the whole verify flow, where the request_id lives in the session, how your rate limits sit in front of DiOTP's, how to check signed webhooks and how to test it all, by hand and with automated tests.
Read the guide 7 min readOTP verification in React JS and Next.js, with working code
For front-end and full-stack developers adding phone login to a React or Next.js app. It builds an accessible OTP form with a 30-second resend timer, then two App Router route handlers that call DiOTP and set a session cookie. It also covers error messages for every code and why the API key never reaches the browser.
Read the guide 8 min readOTP verification in React Native, with SMS autofill and the SMS Retriever API
For mobile developers adding phone login to a React Native app. It builds an OTP screen that talks to your own backend, sets up keyboard autofill on iOS and Android, and explains what the Android SMS Retriever API needs before it can read a code. It is honest about what works on the shared template and what needs your own DLT template.
Read the guide 7 min readOTP SMS API in PHP and .NET (C#): send, verify and webhooks
For PHP and .NET developers adding phone verification to a web app or API. It covers plain PHP with curl, a short Laravel version, and an ASP.NET Core minimal API in C#. It also shows how to check webhook signatures in both languages and how to handle each error the API can return.
Read the guide 10 min readOTP service system design: architecture, workflow and test cases
For engineers and architects who are designing phone verification, or preparing for a system design interview on it. It walks through requirements, components, the data model, the state machine, failures and security. It closes with a fair build-versus-buy view and a table of test cases you can run against a real API.
Read the guide 8 min readHow to send OTP SMS to India from outside India
For global apps and foreign companies with users in India who need verification codes to arrive reliably. It explains why SMS to Indian numbers follows DLT rules, how to format numbers and handle time zones, and how billing works. It also compares a local India SMS API with a global one, fairly, so you can pick what fits.
Read the guide 10 min readOTP verification in Django: send, verify and handle every error
For Django developers adding phone verification to login or sign-up. It builds a small requests client, Django forms for the number and code, two session-backed views, a per-IP limit and a map from every DiOTP error code to a clear reply. It ends with tests that run without sending a real SMS.
Read the guide 11 min readOTP verification in Go: net/http, sessions and every error code
For Go developers adding phone verification to a web service. It builds a DiOTP client on net/http alone, two handlers that keep the request_id in a server-side session, a map from every error code to a reply with Retry-After, a per-IP limiter and tests against httptest.
Read the guide 10 min readOTP verification in Ruby on Rails: send, verify and handle errors
For Rails developers adding phone verification to login or sign-up. It builds a DiOTP client on Net::HTTP, a controller that keeps the request_id in the session and limits sends per IP with rate_limit, an error map with Retry-After, and integration tests with WebMock that never send an SMS.
Read the guide 11 min readOTP verification in Spring Boot with RestClient: a complete backend
For Java developers adding phone verification to a Spring Boot 3 app. It builds a RestClient-based DiOTP client, two validated endpoints that keep the request_id in the HTTP session, a controller advice that maps every error code, and tests with MockRestServiceServer that never send an SMS.
Read the guide 12 min readSupabase phone auth in India: OTP login with DiOTP and an Edge Function
For teams on Supabase who need phone login for Indian users. It explains why Supabase's Send SMS hook cannot deliver through DiOTP, then builds a working alternative: an Edge Function that sends and verifies codes with DiOTP and signs the user in with a normal Supabase session. It is honest about the trade-offs.
Read the guidePrefer to try something? Use the free SMS and OTP tools: an OTP cost calculator, a DLT template checker and an SMS character counter. Read how these guides are researched and kept current in our editorial policy.
About these guides
The team that builds and runs DiOTP. Every API detail matches our documentation, and where a guide quotes a fee or a rule from someone else, it says where it came from.
Start with the guide for your stack: Node.js, React and Next.js, React Native, PHP and .NET, or WordPress. Each one sends and verifies a code with working examples and links to the API reference.
Start with the DLT registration guide and the guide to SMS types, then read the OTP SMS cost guide. Together they explain what you must register, what you can send and what it will cost.
Each guide shows the date it was last updated at the top. When an API default or a published fee changes, we update the guide that mentions it.
Start building your customer messaging with DiOTP
Free test credits on sign-up, API keys in a minute, and a team that picks up the phone.
