OTP not received in India: causes and fixes
When an OTP is not received in India, the cause is usually one of five things: a wrongly formatted number, a rate limit that stopped the send, an operator blocking a message that does not match its DLT template, a problem on the phone itself, or a slow network. Check your API response first, because it tells you whether the code was sent at all, then work through the phone and the template. If you have no DLT registration of your own, sending on a shared template with OTP without DLT removes the template-mismatch cause entirely.
By Vivek Singh, Founder, Diorbit TechnologiesUpdated
Why is my OTP not received?
An OTP passes through several hands before it reaches a user: your app, your server, the OTP provider, the operator, and finally the phone. A problem at any of them looks the same to the user, who just sees no message. The trick is to find out which step failed instead of pressing "resend" again, which often makes things worse by running into rate limits.
This guide goes through the causes in the order that saves the most time. It starts with what you can see in your own logs and API responses, then moves out to the network and the phone.
How do you find out why an OTP was not received?
- Look at the API response for the send. A 200 with a request_id means the provider accepted the request. Any 4xx or 5xx means the code was never sent, and the error code says why.
- If the response was 429, read the error code. It tells you which rate limit was hit, and the user simply has to wait.
- Check the number you sent. It should be the 10-digit mobile number in "to", with 91 in "country_code", and nothing else: no spaces, no leading 0, no +91 inside "to".
- Ask the user to check the phone: the right SIM, the messages app's spam or blocked folder, and whether the inbox is full.
- If you send on your own DLT registration, check that the message text matches the approved template exactly and that the header is linked to it.
- If the number is roaming or the user is in a weak signal area, ask them to wait and try once more, or offer WhatsApp.
- Offer a fallback channel. If WhatsApp is enabled on your account, send the next code with channel set to whatsapp.
Do not let users press resend in a loop. Show a countdown, and let the API's own limits do the rest.
Is the phone number in the right format?
Often a "not received" report is a number that was never valid. Forms collect numbers in every shape: with +91, with a leading 0, with spaces or dashes, or with a country code typed twice. If your server passes that straight through, the message goes nowhere or the request is rejected.
On DiOTP, send the 10-digit mobile number in the "to" field and the country code in "country_code", like this:
Send request body
{"to":"9876543210","country_code":91,"channel":"sms","purpose":"login"}Clean the number on your server before you send it: strip spaces, dashes and brackets, drop a leading 0 or +91, and check that ten digits are left. A request that is still malformed comes back as 422 invalid_request, which is the clue to look at your number cleaning. The OTP SMS API integration guide shows the full request.
Did a rate limit stop the OTP?
Rate limits protect your users from being flooded and your wallet from SMS pumping. They also explain many "I never got the code" complaints, because the user pressed resend too fast. On DiOTP, a request stopped by a limit is not sent and not charged, and it returns HTTP 429 with one of these codes:
| Error code | What it means | What to do |
|---|---|---|
| resend_cooldown | A code was sent to this number in the last 30 seconds. | Show a 30-second countdown before the resend button. |
| phone_hourly_limit | This number has had 3 codes in the last hour. | Tell the user to try later, or offer another sign-in method. |
| phone_daily_limit | This number has had 10 codes today. | Tell the user to try tomorrow. Repeated hits may mean abuse. |
| api_key_minute_limit | Your API key sent 30 codes in the last minute. | Spread out sends; check for a loop or a bot. |
| rate_limited | A general limit was hit. | Back off and retry later. |
| test_limit | The free test messages are used up. | Recharge the wallet to go live. |
Two more responses look like delivery problems but are account states. A 403 trial_restricted means the account is still on test messages, which only go to the mobile number verified at sign-up. A 402 insufficient_balance means the wallet needs a recharge. Show these in your logs, not to the user. The guide to SMS pumping protection explains why these limits exist.
Does DND block OTP messages?
Do Not Disturb (DND) is the preference a user sets to stop promotional messages. It is meant to block marketing, not the messages a user asked for. OTPs are registered on DLT as transactional or service messages, not promotional ones, so DND on its own should not stop a correctly registered OTP.
Where DND does matter is when an OTP has been registered or sent in the wrong category. If a template sits in the promotional category, it is treated like marketing, and DND numbers will not get it. That is one more reason to register OTP templates in the right category. The guide to SMS types in India explains the categories.
Is the operator filtering the message?
Every business SMS to an Indian number is checked by the operator against the sender's DLT registration. If the header, the template ID and the text do not line up with what was approved, the message is dropped. The user sees nothing and your provider may only see a failure status.
This is the most common cause when a business sends on its own registration. Typical mismatches are:
- The message text differs from the approved template, even by a word, a full stop or a space.
- A variable carries more than the template allows, for example a value longer than 30 characters in one {#var#}.
- The header is not linked to the template on the DLT platform.
- The template ID sent with the message is wrong or belongs to another template.
- The template was registered in the wrong category for an OTP.
On DiOTP's shared template these cannot happen, because the text, header and template ID are fixed and already approved; only the code and your company name change. Once you move to your own sender ID, use the DLT template checker before you register, and see where to find your DLT template ID.
Could the problem be on the phone?
If the API accepted the send and the template is right, look at the handset. Ask the user to check these, one by one:
- Full inbox. Some older phones stop accepting new SMS when storage or the message inbox is full. Deleting old threads fixes it.
- Spam folder. Messaging apps can file business SMS under spam or a separate "transactions" or "OTP" tab. The code may be sitting there.
- Blocked senders. If the user once blocked the header (for example DIORBT or your own), every message from it is hidden. Unblocking it in the messages app fixes this.
- Dual SIM. The code goes to the number the user typed. If that SIM is in the second slot, switched off, or out of service, the message waits on that SIM.
- Roaming. A phone roaming abroad may receive Indian SMS late or not at all, depending on its plan and the network it is on.
- Weak signal or airplane mode. The message waits on the network until the phone reconnects.
- Wrong number saved in the account. Ask the user to read back the number on the screen.
What if the OTP arrives late instead of never?
A late code is a different problem from a missing one. Weak signal, roaming, a busy server queue or a retry that sent a second code can all make a code arrive after the user gave up or after its 5 minute expiry. Our guide to OTP SMS delay: causes and fixes shows how to measure where the time goes and which screen changes hide it.
When should you fall back to WhatsApp?
WhatsApp OTPs go over the internet, not over the SMS network, so they reach a user who has data but poor SMS reception, or who is roaming abroad with Wi-Fi. WhatsApp is not covered by DLT, so the template mismatch causes above do not apply to it.
On DiOTP, WhatsApp OTP is on the same API: send with channel set to whatsapp. It is enabled per account; if it is not switched on, the send returns 409 channel_not_enabled. A good pattern is SMS first, and a "Send on WhatsApp instead" button once the resend countdown ends. The WhatsApp OTP authentication template guide covers the message itself.
Questions and answers
Why am I not receiving OTP SMS in India?
The usual causes are a wrongly formatted number, a rate limit after too many resends, an operator dropping a message that does not match its DLT template, or the phone itself: a full inbox, a spam folder, a blocked sender, the wrong SIM or roaming.
Does DND stop OTP messages?
Not when the OTP is registered as a transactional or service message, which is how OTPs are meant to be registered. DND is for promotional messages. An OTP registered in the promotional category can be blocked on DND numbers.
What does a 429 error mean when sending an OTP?
A rate limit stopped the send. On DiOTP the error code says which one: resend_cooldown, phone_hourly_limit, phone_daily_limit, api_key_minute_limit, rate_limited or test_limit. The code was not sent and not charged.
Why does an OTP arrive late?
Weak signal, roaming or a busy network can hold a message before it reaches the phone. Avoid resending too soon, show a countdown, and offer WhatsApp as a second channel.
Can a template mismatch stop an OTP?
Yes. On your own DLT registration, the operator drops a message whose text, header or template ID does not match what was approved. On a shared pre-approved template the text is fixed, so this does not happen.
What should the user check on their phone?
The spam or blocked folder in the messages app, whether the inbox is full, which SIM the number belongs to, whether the phone is roaming, and whether the number they entered is correct.
