DLT template checker: Pre-check your DLT SMS template before you submit
Paste a template to check its {#var#} placeholders, brand name, promotional wording, links, spacing and length. A quick heuristic check in your browser, not DLT approval.
Variables
1
Characters
106
GSM-7, est.
SMS parts
1
vars as 6 chars
1 to fix
1 placeholder in the wrong format
DLT accepts only {#var#}, written exactly like that, in lower case. Replace each of these with {#var#}.
{name}1 variable
Each message you send must match the fixed text exactly; only these parts can change.
Brand name found
"Acme" appears in the template.
No promotional wording found
None of the common promotional words were found.
Fits in one SMS
108 of 160 GSM-7 units with each variable filled by 6 characters.
This is a heuristic pre-check that runs in your browser. It is not DLT approval: only the operator's DLT portal can approve or reject a template.
Embed this tool
Add the DLT template checker to your own site or documentation for free. Paste this code where you want it to appear; it shows the tool only, with a small link back to this page.
What the DLT template checker looks for
In India, every SMS from a business must match a template registered on an operator's DLT portal, under TRAI's TCCCPR 2018 rules. The fixed words must match exactly, and only the parts marked as variables may change. Templates are rejected for small, avoidable reasons, and each rejection costs time. This checker runs the common checks before you submit, in your browser, so you can fix the obvious problems first.
It is a heuristic pre-check, not DLT approval. Operators apply their own review, and a template that passes here can still be rejected. What it does is catch the mistakes we see most often.
Placeholders: DLT uses {#var#} for every changing part, written exactly like that, in lower case. The checker flags the styles people bring from other systems: {name}, {#VAR#}, {{otp}}, [amount], #var#, <code>, ${x} and %s. It counts your variables, warns when more than half the template is variable, and warns when two variables sit next to each other with no fixed text between them.
Content: give it your brand name and it checks the name appears in the fixed text. Pick a category and it looks for promotional wording such as offer, sale, discount, % off, cashback and free gift in a service or transactional template. It flags links and phone numbers, which must be whitelisted on your DLT portal, and it finds leading, trailing and double spaces, which make a message stop matching its template.
Worked examples
The sample in the box reads "Dear {name}, {#var#} is your OTP to log in to Acme...". The checker flags {name} as the wrong format. Either change it to {#var#}, or, for an OTP, drop the greeting: a short template with one variable for the code is the easiest kind to approve.
Now try "{#var#} {#var#} {#var#} - Acme". It has three variables and one fixed word, so the checker warns twice: more than half the text is variable, and the variables are consecutive. A reviewer cannot tell what such a message is for. Write the fixed words out: "{#var#} is your Acme code. Order {#var#} ships on {#var#}."
Finally, "Get 20% off today! Your code is {#var#}. Visit acme.in" with the service category. The checker finds "% off", flags the link for whitelisting and suggests either removing the offer or registering the template as promotional. Mixing an offer into an OTP is one of the surest ways to slow approval.
India-specific notes
Categories matter. Transactional templates are for banks. Most businesses send OTPs as service implicit. Service explicit messages need a consent template. Promotional messages use a six-digit header, go out in the daytime only and are not delivered to numbers on DND for that category. Read SMS types in India for the full picture.
Hindi and regional languages are welcome on DLT, but they are sent as Unicode, and each Unicode SMS part holds 70 characters instead of 160. If your template has Devanagari, Tamil, Bengali or any other non-Latin script, the checker reports it as Unicode and estimates the parts. A curly apostrophe pasted from a word processor also makes a template Unicode; the SMS character counter highlights those characters.
Once a template is approved, the portal gives it a template ID, which must be sent with every message. Our guide to the DLT template ID explains where to find it and how it ties to your header and Entity ID.
You do not need your own template to start sending OTPs with DiOTP. New accounts can send on our shared, pre-approved OTP template the same day. When your own entity, header and template are approved, add them under Senders in the dashboard, with no code change. See send OTPs without DLT, or ask about our DLT registration help.
Related reading
DLT templates: questions
Write every changing part as {#var#}, exactly like that, in lower case. Formats like {name}, {{otp}}, [amount] or #var# are not accepted as variables.
No. It is a heuristic pre-check that catches common mistakes. Only the operator's DLT portal can approve or reject a template, and it applies its own review.
Yes, but links and numbers in a template must be whitelisted on your DLT portal. If the number changes from message to message, use a variable instead.
Yes. Hindi and regional-language templates are sent as Unicode, so each SMS part holds 70 characters instead of 160. Keep OTP templates short so they fit in one part.
Promotional wording such as offer, sale, discount, cashback or a percentage off in a service template is a common reason. Keep service templates to the facts of the service and register offers as promotional.
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.
