OTP without DLT for startups: from MVP to your own sender ID
Startups can add phone login today with OTP without DLT: your codes go out on DiOTP's registered header and pre-approved template while your own DLT registration is still months away, or not started. You pay ₹0.26 to ₹0.40 per OTP plus GST with no setup or monthly fee, and when you register your own sender ID later you switch in the dashboard without changing code.
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.
Why do startups use OTP without DLT?
A startup has more urgent work than paperwork. You need users to sign up, and in India that usually means a phone number and a one-time code. Registering your own DLT entity, header and template takes documents and review time, and until it is approved operators block your messages. That can hold up a launch for reasons that have nothing to do with your product.
OTP without DLT removes that dependency. DiOTP sends your login and signup codes under its own registered DLT entity, the header DIORBT and a pre-approved OTP template. The message is compliant from the first send, and your business registers nothing. Your users see this:
Text message
VM-DIORBT
482913 is your login OTP for YourStartup. Do not share it with anyone. Powered by Diorbit Technologies!
The honest trade-off is branding. The sender is DIORBT, not your brand, and the wording is fixed. For an MVP, a beta or the first year of a product, most teams find that perfectly acceptable. You can change it later without touching your code.
What does the path from MVP to your own sender ID look like?
Most startups go through roughly the same stages. None of them has a deadline; the shared template is not a trial and you can stay on it as long as it suits you.
Stage 1: build and test
Create an account and get API keys the same day. A new account has 10 free test messages, sent only to the mobile number you verified at sign-up. Use them to build your login screen, the send call, the verify call and your error handling, end to end, against the real API.
Stage 2: launch on the shared template
Recharge the wallet and the account goes live: codes can now go to any Indian mobile number. Start with the ₹100 OTP 1 pack (250 OTPs at ₹0.40) if you are not sure about volume, then move up to a larger plan as sign-ups grow.
Stage 3: start your DLT registration in parallel
Once you know the product is staying, register your company as a principal entity on DLT, apply for a header and submit an OTP template. Your users keep getting codes on the shared template the whole time, so there is no gap. The DLT registration guide covers each step.
Stage 4: switch
When your registration is approved, add your entity ID, header and template ID under Sender IDs in the DiOTP dashboard. Codes now go out under your own header with your own wording, at the same price, through the same API calls.
What should you build into your code from day one?
The integration is two calls: send a code, then verify what the user typed. It is small enough to get right the first time, and getting it right now saves rework and money later.
Call the API from your server only
Your API key (it starts with diotp_live_) must never ship inside a mobile app or browser code. Anyone could pull it out and send codes on your wallet. Your app calls your own backend; your backend calls DiOTP with the key from an environment variable.
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.
Store the request_id, not the code
DiOTP generates and stores the code. Your server never sees it, so it cannot leak from your logs or your database. Keep the request_id from the send response against the user's session, and pass it to the verify call with the code the user typed.
curl -X POST https://api-diotp.diorbit.com/v1/otp/verify \ -H "Authorization: Bearer $DIOTP_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "code": "482913" }'
const res = await fetch("https://api-diotp.diorbit.com/v1/otp/verify", { method: "POST", headers: { Authorization: `Bearer ${process.env.DIOTP_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ request_id: requestId, code: codeTheUserTyped }), }); if (res.ok) { // The number is verified: sign the user in. } else { const { error } = await res.json(); // e.g. error.code === "invalid_code" }
res = requests.post(
"https://api-diotp.diorbit.com/v1/otp/verify",
headers={"Authorization": f"Bearer {os.environ['DIOTP_API_KEY']}"},
json={"request_id": request_id, "code": code_the_user_typed},
timeout=10,
)
if res.ok:
pass # The number is verified: sign the user in.
else:
error = res.json()["error"] # e.g. error["code"] == "invalid_code"<?php $ch = curl_init("https://api-diotp.diorbit.com/v1/otp/verify"); curl_setopt_array($ch, [ CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ "Authorization: Bearer " . getenv("DIOTP_API_KEY"), "Content-Type: application/json", ], CURLOPT_POSTFIELDS => json_encode([ "request_id" => $requestId, "code" => $codeTheUserTyped, ]), ]); $body = json_decode(curl_exec($ch), true); $verified = curl_getinfo($ch, CURLINFO_HTTP_CODE) === 200;
Send an Idempotency-Key with every send
Generate a unique key per user action, such as a UUID, and send it in the Idempotency-Key header. If your request times out and you retry with the same key and the same body, DiOTP returns the first response and sends nothing new. That stops double taps and retries from sending two codes and charging you twice.
Handle every error the API can return
Map each error code to a clear message in your app instead of a generic "something went wrong". The ones you will meet first:
| Error | What it means | What to do |
|---|---|---|
| 429 resend_cooldown | A code went to this number less than 30 seconds ago | Show a countdown and let the user resend when it ends |
| 429 phone_hourly_limit / phone_daily_limit | More than 3 codes in an hour or 10 in a day to this number | Ask the user to try again later |
| 402 insufficient_balance | Your wallet is empty | Alert your team; this should never reach users |
| 400 invalid_code | The user typed the wrong code | Let them try again |
| 410 expired | The code is older than 5 minutes | Offer to send a new code |
| 429 too_many_attempts | Five wrong tries on this code | Make them request a new code |
Keep the channel and the sender out of your code paths. Send "channel": "sms" as a parameter, so that adding WhatsApp later (it runs on the same API with channel set to whatsapp, once enabled for your account) is a one-line change. The OTP security best practices guide has more on what to log and what to keep out of logs.
How can a startup keep OTP costs down?
The price per OTP is ₹0.26 to ₹0.40 plus 18% GST, depending on your plan, with no setup or monthly fee. For a young product the bill is small, but waste can make it bigger than it should be.
- Pick the plan that fits your next few months, not your launch day. OTP 2 (₹3,600 recharge at ₹0.35) is cheaper per code than the starter pack once you pass a few hundred OTPs a month.
- Put a visible 30 second timer on the resend button. DiOTP blocks a resend inside 30 seconds, and blocked sends are not charged, but the timer stops users tapping in frustration.
- Guard your sign-up form against bots and SMS pumping with a bot check and per-IP limits on your own server.
- Remember verified devices for a sensible period so returning users are not asked for a code on every visit.
- Watch your wallet. A sudden jump in sends with few verifications is a sign of abuse, not growth.
Worked monthly examples at 1,000, 10,000 and 1,00,000 OTPs are on the OTP without DLT price page, and the OTP cost calculator works out any other volume.
When should a startup register its own DLT?
There is no single right moment, but these are the usual triggers:
- You need to send anything other than login and signup codes: order updates, reminders, alerts or offers. These always need your own DLT registration.
- You want your brand as the sender name, for trust or for a large launch.
- You need different wording, for example a delivery code, an appointment confirmation or a payment step.
- You want SMS Retriever autofill on Android, which needs the app hash inside your own template.
- Your company is registered and the product is clearly staying, so the paperwork is worth doing.
Start the registration a little before you need it. While it is in progress, keep sending OTPs on the shared template. Not sure if you need it yet? Answer five questions in the Do I need DLT? checker.
Migration checklist: moving to your own sender ID
- Register your company as a principal entity on a DLT platform and note your entity ID.
- Apply for a six-letter header, usually your brand name, under that entity.
- Write an OTP content template with a {#var#} placeholder for the code and submit it for approval. Add your Android app hash to the wording if you want SMS Retriever autofill.
- When the template is approved, note its template ID exactly as the DLT platform shows it.
- In the DiOTP dashboard, open Sender IDs and add your entity ID, header and template ID.
- Send a test code to your own number and check that the sender name and wording are yours.
- Keep your send and verify calls exactly as they are. No code changes are needed.
- Update any help text or screenshots in your app that show DIORBT as the sender name.
If the template is rejected, the guide to why DLT templates get rejected lists the common reasons. Your OTPs carry on through the shared template until the new one is ready.
Questions and answers
Can a startup send OTP without registering on DLT?
Yes, for login and signup codes. DiOTP sends them under its own registered DLT entity, header and pre-approved OTP template, so your startup registers nothing to start.
Is the shared template only a free trial?
No. It is a normal way to send, with no time limit. A new account gets 10 free test messages to its own verified number, and after a recharge it sends to any Indian mobile number.
How much will OTP cost my startup?
From ₹0.26 to ₹0.40 per OTP plus 18% GST, depending on the plan, from a prepaid wallet. There is no setup fee and no monthly fee.
Do I have to rewrite code when we get our own sender ID?
No. Add your entity ID, header and template ID under Sender IDs in the dashboard. The send and verify calls stay the same.
Can I send product updates or offers on the shared template?
No. The shared template carries OTPs only. Alerts, reminders, order updates and promotions need your own DLT registration.
Should I call the OTP API from my mobile app?
No. Call it from your own server and keep the API key there. A key inside an app can be extracted and used to send codes on your wallet.
