OTP message templates for India (copy and use)
These OTP message templates for India come in two kinds. The shared template works today with no registration of your own, through OTP without DLT, and suits login and signup codes. The others are DLT-ready wording for your own registration, for login, signup, password reset, payments, deliveries, appointments and account changes, with {#var#} in each place that changes.
By Vivek Singh, Founder, Diorbit TechnologiesUpdated
Key facts
- Price
- ₹0.26 to ₹0.40 per OTP plus 18% GST, from a prepaid wallet. No setup fee, no monthly fee.
- Setup time
- Same day. Test on your own number in minutes, then go live.
- Sender name
- DIORBT, DiOTP's registered header (shown with an operator prefix, for example VM-DIORBT).
- Message
- "123456 is your login OTP for Your Company. Do not share it with anyone. Powered by Diorbit Technologies!" The wording is fixed; your company name fills the name slot.
- Compliance
- Sent under DiOTP's own registered DLT entity, header and pre-approved OTP template. You register nothing.
- Limits per number
- 1 code every 30 seconds, 3 per hour, 10 per day.
- Later
- Move to your own sender ID when your DLT registration is ready, with no code changes.
Which OTP message templates can you use?
Copy the template that fits your flow. Each card says whether it works on the shared template or needs your own DLT registration, and why it is worded the way it is. Replace YourBrand with your brand name exactly as it appears on your DLT entity. Leave {#var#} as it is; that is the placeholder DLT expects for the code and any other value that changes.
Shared template (no DLT of your own)
Works on the shared template{code} is your login OTP for {company}. Do not share it with anyone. Powered by Diorbit Technologies!
DiOTP's pre-approved template, sent from the DIORBT header. Only the code and your company name (up to 30 characters) change. Use it for login and signup while you have no DLT registration, or for as long as you like.
Login
Needs your own DLT template{#var#} is your OTP to log in to YourBrand. It is valid for 5 minutes. Do not share it with anyone.
The code comes first so it is easy to spot in a notification. Stating the purpose and the validity tells the user what the code is for and why it stops working.
Signup and mobile number verification
Needs your own DLT template{#var#} is your OTP to verify your mobile number on YourBrand. Do not share it with anyone.
Says "verify your mobile number" rather than "log in", which matches what a new user is doing and avoids confusion on a signup screen.
Password reset
Needs your own DLT template{#var#} is your OTP to reset your YourBrand password. If you did not ask for this, ignore this message. Do not share it.
The extra line tells someone who did not ask for a reset that they can ignore it, which helps them spot an account takeover attempt.
Payment confirmation
Needs your own DLT template{#var#} is your OTP to confirm a payment of Rs {#var#} on YourBrand. Do not share it with anyone.
Showing the amount lets the user check they are approving the right payment. Two variables, both needed, which keeps it easy to approve.
Cash on delivery confirmation
Needs your own DLT template{#var#} is your OTP to confirm your cash on delivery order {#var#} on YourBrand. Do not share it.
Confirms a COD order before dispatch. Naming the order number makes it clear this is not a login code.
Delivery code
Needs your own DLT templateShare OTP {#var#} with the delivery partner only when you receive your YourBrand order {#var#}.
For handing over a parcel. This is the one OTP the user must share, so the wording says with whom and when, instead of "do not share".
Appointment check-in
Needs your own DLT template{#var#} is your OTP to confirm your appointment with YourBrand. Show it at the front desk. Do not share it with anyone else.
For clinics, salons and service visits. Tells the user where the code is used, so they do not wonder why they received it.
Change of mobile number
Needs your own DLT template{#var#} is your OTP to change the mobile number on your YourBrand account. If this was not you, contact YourBrand support. Do not share it.
Changing a number is a high-risk action. The warning gives the real owner a chance to act if someone else is trying it.
Change of email or bank details
Needs your own DLT template{#var#} is your OTP to update your YourBrand account details. If this was not you, contact YourBrand support. Do not share it.
One template for sensitive profile changes, so you need not register a new one for each field.
Account deletion
Needs your own DLT template{#var#} is your OTP to delete your YourBrand account. This cannot be undone. Do not share it with anyone.
Makes the consequence clear before the user types the code, which cuts accidental deletions and support requests.
Two-factor sign-in on a new device
Needs your own DLT template{#var#} is your OTP to sign in to YourBrand on a new device. Do not share it with anyone.
For 2FA. Mentioning a new device helps the user notice a sign-in they did not start.
Android app login with autofill hash
Needs your own DLT template{#var#} is your OTP to log in to YourBrand. Do not share it with anyone. {#var#}
The last variable carries your app's 11-character hash, which the Android SMS Retriever API needs for automatic reading. Only possible on your own template.
Shared template or your own: which should you use?
The shared template is the only one on this page you can use without registering anything. It is sent under DiOTP's own DLT entity, from the DIORBT header, and the wording is fixed. Because it says "login OTP", it fits login and signup. Your users see this:
Text message
VM-DIORBT
482913 is your login OTP for YourBrand. Do not share it with anyone. Powered by Diorbit Technologies!
Every other template here needs your own DLT registration: your entity, a header and the template itself, approved on a DLT platform. They are worth it when the code confirms something other than a login, such as a payment, a delivery or an appointment, because "login OTP" would confuse the user there. You also need your own registration for alerts, reminders, order updates and promotions; no shared template covers those.
| Shared template | Your own template | |
|---|---|---|
| Who registers | DiOTP (already done) | You |
| Sender name | DIORBT | Your own header |
| Wording | Fixed | Any approved OTP template |
| Best for | Login and signup codes | Any OTP purpose, plus Android autofill with an app hash |
| Price on DiOTP | ₹0.26 to ₹0.40 per OTP plus GST | The same |
You can start on the shared template today and add your own templates later under Sender IDs in the dashboard, without changing your code. The Do I need DLT? checker tells you which side your messages fall on.
What are the DLT rules for writing an OTP template?
- Write every value that changes as {#var#}, exactly in that form. Do not type a sample code.
- Keep each variable short. Operators cap a single variable at 30 characters.
- Use as few variables as you can. A template that is mostly variables can be rejected.
- Put your brand name in the fixed text, matching your registered entity and header.
- Say what the code is for: login, payment, delivery. One template per purpose is easier to approve.
- Register OTP templates in the category your DLT platform allows for OTPs, not as promotional.
- Leave out links, phone numbers and offers. An OTP message rarely needs them, and they draw extra checks.
- Send the text exactly as approved. A changed word or full stop can make operators drop the message.
Before you submit, paste your text into the DLT template checker. If one comes back rejected anyway, the guide to why DLT templates get rejected lists the usual reasons and fixes.
How long should an OTP message be?
Short enough to fit in one SMS part. A plain-English SMS holds 160 characters in one part. If the message is longer, or if it contains a character outside the standard SMS set (a Hindi letter, a curly quote, an emoji or the ₹ sign), it is split into parts, and each part may be billed. With Unicode characters, one part holds only 70 characters.
Count with the longest value each variable will hold, not the sample. A 6-digit code and a long brand name can push a template past one part. Writing "Rs" instead of the ₹ sign, as in the payment template above, keeps the message in the standard character set. Check your final text in the SMS character counter.
Put the code at the start. Phone notifications show only the first line or two, and a code at the front can be read and typed without opening the message.
How do you send these templates through the API?
On the shared template, you only send the number and purpose; DiOTP fills in the code and your company name. Once your own templates are approved and added under Sender IDs, the same send call can pick one with the optional template field.
curl -X POST https://api-diotp.diorbit.com/v1/otp/send \ -H "Authorization: Bearer $DIOTP_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: 5f2b8c1e-signup-9876543210" \ -d '{ "to": "9876543210", "country_code": 91, "channel": "sms", "purpose": "signup" }'
const res = await fetch("https://api-diotp.diorbit.com/v1/otp/send", { method: "POST", headers: { Authorization: `Bearer ${process.env.DIOTP_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": crypto.randomUUID(), }, body: JSON.stringify({ to: "9876543210", country_code: 91, channel: "sms", purpose: "signup", }), }); const otp = await res.json(); // Keep otp.request_id: you need it to verify.
import os, uuid, requests res = requests.post( "https://api-diotp.diorbit.com/v1/otp/send", headers={ "Authorization": f"Bearer {os.environ['DIOTP_API_KEY']}", "Idempotency-Key": str(uuid.uuid4()), }, json={ "to": "9876543210", "country_code": 91, "channel": "sms", "purpose": "signup", }, timeout=10, ) otp = res.json() # Keep otp["request_id"]: you need it to verify.
<?php $ch = curl_init("https://api-diotp.diorbit.com/v1/otp/send"); curl_setopt_array($ch, [ CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ "Authorization: Bearer " . getenv("DIOTP_API_KEY"), "Content-Type: application/json", "Idempotency-Key: " . bin2hex(random_bytes(16)), ], CURLOPT_POSTFIELDS => json_encode([ "to" => "9876543210", "country_code" => 91, "channel" => "sms", "purpose" => "signup", ]), ]); $otp = json_decode(curl_exec($ch), true); // Keep $otp["request_id"]: you need it to verify.
Want to see a template on a phone screen before you register it? Try the OTP message preview.
Questions and answers
What is a good OTP message format for India?
Start with the code, say what it is for, name your brand and add a line asking the user not to share it. For example: 123456 is your OTP to log in to YourBrand. Do not share it with anyone.
Can I use these templates without DLT registration?
Only the shared template. It is DiOTP's pre-approved template and suits login and signup codes. Every other template needs your own DLT entity, header and template approval.
How do I write the OTP variable for DLT?
As {#var#}, exactly, in the place where the code goes. Each variable holds up to 30 characters.
Can I change the wording of the shared template?
No. Its wording is fixed and approved on DLT. Only the code and your company name, up to 30 characters, change.
Why should the code come first in the message?
Notifications show only the start of a message. With the code first, the user can read it without opening the message.
Does the shared template work with Android autofill?
It works with the SMS User Consent API and with iOS one-time code autofill. The SMS Retriever API needs an app hash in the message, which only your own template can carry.
