01 · Definition
What is a DLT content template?
A DLT Content Template is the pre-registered wording of a commercial SMS on India's DLT platform. The principal entity submits the fixed text with a typed variable wherever a value changes, chooses its DLT Message Category, links it to one or more registered headers and, once the operator approves it, receives a numeric template ID.
TRAI's direction of 18 November 2025 replaced the open {#var#} placeholder with six typed tags: {#numeric#} for digits such as an OTP or amount, {#alphanumeric#} for names, IDs and dates, {#url#} and {#urlott#} for whitelisted web and app links, {#cbn#} for a whitelisted callback number, and {#email#}. Templates created from mid-January 2026 must use them, and existing {#var#} templates have to be migrated. Some portals show short forms such as {#num#} and {#alp#}.
At send time the operator's DLT Scrubbing compares the message with the template: fixed text must match exactly, including spaces and punctuation, and each value must fit its tag, so a link can't travel in a numeric or alphanumeric variable. On WhatsApp, by contrast, Meta reviews the template, sets its category and renders each message from the template name and {{1}}-style parameters.
Key takeaways
- A DLT content template is the exact SMS wording a business registers on DLT, with a typed variable wherever a value changes.
- Since TRAI's direction of 18 November 2025, every variable needs one of six tags, such as {#numeric#} or {#url#}; open {#var#} templates must be migrated.
- Every SMS carries its template ID, and operators block messages whose text or variable values don't match the registered template.
- Links and callback numbers must be whitelisted on the DLT portal before they can appear in a template.
- WhatsApp templates are reviewed and rendered by Meta; DLT templates are approved by an operator and matched against the text you send.
02 · Code samples
A DLT content template in code
// Check a filled SMS against its registered DLT template before sending.// Fixed text must match exactly; each tag accepts its own kind of value.// Lengths are the ones DLT portals publish - confirm with your operator.const TAGS = {numeric: "[0-9]{1,40}",alphanumeric: "(?!www|http)[^\\n]{1,40}",url: "https?://\\S{1,112}",urlott: "\\S{1,120}",cbn: "\\+?[0-9]{3,14}",email: "[^\\s@]{1,30}@[^\\s@]{1,30}",};const escapeRe = (s) => s.replace(/[.*+?^{}$()|[\]\\]/g, "\\$&");export function matchesTemplate(template, message) {const parts = template.split(/\{#(numeric|alphanumeric|url|urlott|cbn|email)#\}/);let pattern = "";parts.forEach((p, i) => (pattern += i % 2 ? "(" + TAGS[p] + ")" : escapeRe(p)));return new RegExp("^" + pattern + "$").test(message);}const t = "Dear {#alphanumeric#}, your refill is ready at our {#alphanumeric#} store. Show code {#numeric#} at the counter. -Malwa Care";matchesTemplate(t, "Dear Ananya, your refill is ready at our Vijay Nagar store. Show code 4821 at the counter. -Malwa Care"); // truematchesTemplate(t, "Dear Ananya, your refill is ready at our Vijay Nagar store. Show code A48 at the counter. -Malwa Care"); // false: not numeric
Run the same check in CI and before each send, so an edited string or a wrongly typed value fails in testing instead of at the operator.
03Playground
A working model of DLT Content Template. Use its controls to replay it step by step.
Fill the template: does the message still fit one SMS?
Encoding
UCS-2
16-bit Unicode · 70 per SMS, 67 per part
Characters
120
120 UTF-16 units
SMS parts
2
67 per part
Left in part
14
before part 3
Billed as 2 SMS
Part 167 / 67
प्रिय {#alphanumeric#}, आपकी दवा हमारे {#alphanumeric#} स्टोर पर तै
Part 253 / 67
यार है। काउंटर पर कोड {#numeric#} दिखाएँ। -मालवा केयर
Header (UDH) — 3 units of every part go to reassembly data.
How it splits
- Alternating parts
- Forces UCS-2
Why
“प”, “्”, “र” and 24 more are not in the GSM-7 alphabet, so the whole message is sent as UCS-2: one SMS holds 70 characters instead of 160. At 120 units it goes as 2 parts of up to 67 — each part gives 3 units to the header that stitches them together.
- प (U+092A)
- ् (U+094D)
- र (U+0930)
- ि (U+093F)
- य (U+092F)
- आ (U+0906)
- क (U+0915)
- ी (U+0940)
- +19 more
Hindi template: UCS-2, 2 SMS parts.
04 · Specifications
A DLT content template: key facts and limits
| Variable tags | {#numeric#}, {#alphanumeric#}, {#url#}, {#urlott#}, {#cbn#}, {#email#} |
|---|---|
| Rule source | TRAI direction of 18 November 2025; {#var#} templates must be migrated |
| Lengths (portals) | Numeric, alphanumeric, email 40; links 120; callback number 3–14 digits |
| Variables | Three or fewer without written justification; at least 30% fixed text |
| Matching | Fixed text must match exactly; each value must fit its tag |
| Template ID | Numeric ID issued on approval, sent with every SMS |
| Links and numbers | Only whitelisted URLs, app links and callback numbers |
05 · Operation
How does a DLT content template work?
Write the fixed text
Draft the message with the brand name and the exact wording in fixed text, and replace each changing value with the right tag:
{#numeric#}for an OTP,{#alphanumeric#}for a name or order ID. Keep at least 30% of the template as fixed text.Whitelist links and numbers
Register every domain, app link and callback number as a CTA on your DLT portal before you use
{#url#},{#urlott#}or{#cbn#}; values that don't match a whitelisted CTA fail.Pick the category and headers
Choose the category that matches the content, such as transactional, service implicit or promotional, and link the template to the registered headers that will send it.
Submit and get the template ID
The operator reviews the template on its DLT portal. Approval returns a template ID that is shared with the other operators through DLT.
Send with the IDs
Pass the template ID, PE ID and header with every message through your provider's API or SMPP fields. Scrubbing matches the filled text and each value against the template before delivery.
06 · Cautions
Common mistakes with a DLT content template
Editing wording in code
Changing a word, a space or a punctuation mark makes the text unmatchable. Treat templates as versioned strings: register the new wording first, then deploy it with its new ID.
Leaving templates on {#var#}
Untagged templates are flagged during the operators' logging phase and rejected once enforcement starts. Migrate every template to typed variables and test it before your next campaign.
The wrong tag for the value
An OTP in an alphanumeric variable may pass, but a link in an alphanumeric variable is blocked, and letters in a numeric variable fail. Choose the narrowest tag that fits every real value.
Variables side by side
Two variables can't sit next to each other, except two alphanumeric ones, and templates that are mostly variables are rejected. Keep the brand name and the meaning of the message in fixed text.
Links that aren't whitelisted
A {#url#}, {#urlott#} or {#cbn#} value must match a CTA registered on the DLT portal. Register the domains, app links and numbers you use before you register the template.
07 · Recommended practice
Best practices for a DLT content template
- Keep one source of truth (template text, ID, category, headers and tags) in a config file that both code and compliance read.
- Count segments on the filled message with the longest realistic values, not on the template.
- Register Hindi and other regional-language versions as separate templates.
- Test each new template with realistic values before registering it, and again after the operator approves it.
08 · Worked example: An Indore pharmacy migrates its refill reminder
Example: An Indore pharmacy migrates its refill reminder
An Indore pharmacy chain's old template read 'Dear {#var#}, your refill of {#var#} is ready at our {#var#} store. Show code {#var#} at the counter. -Malwa Care'. To meet the tagging rules it re-registers it as 'Dear {#alphanumeric#}, your refill is ready at our {#alphanumeric#} store. Show code {#numeric#} at the counter. -Malwa Care': three variables instead of four, the pickup code as numeric, and the medicine name dropped, since a fourth variable would need a written justification. A month later the app team changes 'is ready' to 'is now ready' in code without telling compliance, and every reminder fails scrubbing until the old wording is restored. The team adds a pre-send check, so the next mismatch fails in testing instead of on customers' phones.
09 · Rationale
Why does a DLT content template matter?
Template mismatches are the commonest reason Indian SMS fail silently. A developer adds a full stop, marketing tweaks a word, a value doesn't fit its tag, and the operator rejects every message until someone notices. The 2026 tagging rules add a second check on every variable. Treating templates as versioned strings with typed variables keeps OTPs, alerts and campaigns flowing, and shows that every message used approved wording.
10 · Questions and answers
DLT Content Template FAQs
- What replaced {#var#} in DLT templates?
- Six typed tags, under TRAI's direction of 18 November 2025: {#numeric#}, {#alphanumeric#}, {#url#}, {#urlott#}, {#cbn#} and {#email#}. New templates must use them, and existing {#var#} templates have to be migrated.
- Why is my SMS rejected even though the template is approved?
- Usually the text sent doesn't exactly match the registered wording, a value doesn't fit its tag or length, a link or callback number isn't whitelisted, or the header isn't linked to that template. Compare the sent text with the template character by character.
- Is a DLT template the same as a WhatsApp template?
- No. A WhatsApp message template is reviewed by Meta and rendered from a name and parameters; a DLT content template is approved by an operator, and the full SMS text you send is matched against it.
- Can I use the same template ID on every operator?
- Yes. A template registered on one operator's DLT portal is shared with the other operators through DLT, so the same template ID works whichever network the recipient is on.