TRAI DLT-compliant routes on Jio, Airtel, Vi and BSNL
DLT guide

DLT Template Variables: How to Tag Numbers, Links and Call-Back Numbers

TRAI now requires every variable in an SMS template to say what kind of value it holds — a number, a link, a phone number and so on — so operators can check it before delivery. Here is how the tags work, how each DLT portal writes them, and how to update templates that still use the old {#var#}.

Updated · 6 min read · OnlineSMSService team, Coimbatore

Quick answer

Under TRAI's direction of 18 November 2025, every variable in a DLT content template must be pre-tagged with its type: numeric (digits only), alphanumeric (up to 40 characters), url, urlott (app or OTT links), cbn (call-back number) or email. Operators check the values you send against the tag — and links and phone numbers against your whitelist — and messages that fail are logged and then blocked. Templates that still use the generic {#var#} need to be updated.

What changed and why

A DLT template is the approved wording of a message, with placeholders for the parts that change — the OTP, the customer's name, the amount, the tracking link. Until recently every placeholder was a generic {#var#} that could hold anything. Fraudsters used that gap: a template approved for "Your order {#var#} has shipped" could carry a phishing link or a fake phone number inside the variable.

TRAI's direction of 18 November 2025 closes the gap. Each variable must declare its type when the template is registered, and the operator's systems check every message: a numeric variable must contain only digits, a link variable must contain a link you have whitelisted, a call-back variable must contain a number you have registered, and so on.

The six variable tags

Type (TRAI)What it can holdWritten on Vi and BSNL portalsLength on Vi and BSNL
numericDigits only — OTPs, amounts, order numbers made of digits{#num#}Up to 40
alphanumericLetters and digits — names, order IDs like ORD4821X. TRAI caps it at 40 characters{#alp#}Up to 40
urlA web link that matches one you have registered (static, dynamic or short URL){#urg#}Up to 120
urlottA link to an app or OTT platform (APK or app-store link) that you have registered{#uro#}Up to 120
cbnA call-back number — mobile, landline or toll-free — that you have registered{#cbn#}3–14
emailA valid email address{#eml#}Up to 40
Types from TRAI's direction of 18 November 2025 (Annexure-I). Portal syntax and limits from the Vi user manual (September 2026) and BSNL template guidelines (July 2026).

How to write the tags on your DLT portal

TRAI defines the types; each operator's DLT portal decides how you write them. Vi and BSNL use short codes such as {#num#} and {#alp#}. Other portals use the full type names, such as {#numeric#} and {#alphanumeric#}. Use the format your portal shows in its template screen — the portal's own help text and dropdowns are the final word.

The same template written both ways:

Vi / BSNL style:
{#num#} is your OTP to log in to Acme. Valid for 10 minutes. Do not share it. -Acme

Full-name style:
{#numeric#} is your OTP to log in to Acme. Valid for 10 minutes. Do not share it. -Acme

Your template is registered once, on the portal where your business is registered as an entity, and works across all operators.

Before and after: common templates

MessageOld templateTagged template
Log-in OTP{#var#} is your OTP for Acme.{#numeric#} is your OTP for Acme.
Order shippedHi {#var#}, order {#var#} shipped. Track: {#var#}Hi {#alphanumeric#}, your order {#alphanumeric#} has shipped. Track it at {#url#} -Acme
Payment reminderRs {#var#} due on {#var#}. Call {#var#}Rs {#numeric#} is due on your Acme account. For help call {#cbn#} -Acme
App downloadGet the app: {#var#}Download the Acme app to track orders: {#urlott#} -Acme

Notice what else changed in the tagged versions. Fixed wording sits between the variables, there are no more than two or three variables, and each one has the narrowest type that fits. Where a value never changes — your support number, say — write it into the fixed text instead of making it a variable (it still has to be a registered number).

How many variables, and where they can go

  • Two variables per template is the rule from TRAI's direction of February 2023. A third is allowed in exigency, and more only in special circumstances with justification and pre-tagging. Vi and BSNL accept up to three without extra justification.
  • No variables side by side. Variables must not be contiguous — put real words between them, not just a space, comma or other symbol. (The Vi and BSNL guidelines allow back-to-back variables only for alphanumeric values.)
  • Mostly fixed text. A template that is mostly variables is a common rejection reason: the fixed text has to say what the message is about.
  • Test the longest values. What gets billed is the message after the variables are filled. A long name or link can push a message over 160 characters (70 in Indian-language scripts) — check it with the SMS character counter.

Whitelisting links, apps and call-back numbers

Tags only work together with your whitelist. Since 1 October 2024, operators block SMS that contain links, APK or OTT links that aren't whitelisted on DLT, and the November 2025 direction added the same check for call-back numbers through the cbn tag. Before you send:

  1. Register your domains and linksAdd the web addresses you send, including any short-link domain you own. Public link shorteners are usually not accepted.
  2. Register app and OTT linksAdd the APK or app-store links you share.
  3. Register call-back numbersAdd the mobile, landline and toll-free numbers you ask customers to call.
  4. Match every value to the whitelistA link or number in a message that isn't registered will fail the check, even if the template itself is approved.

Timeline

DateWhat happened
16 Feb 2023TRAI limits templates to two variables (a third in exigency) and bars contiguous variables
1 Oct 2024Messages with non-whitelisted links, APK or OTT links are blocked
18 Nov 2025TRAI direction: every variable must be pre-tagged by type; values are checked against the tag and the whitelist
From 1 Jul 2026Checks run in "logger mode": messages that fail are still delivered, but the failure is recorded
17 Oct 2026Date by which senders were asked to fix their templates before checks move to blocking
After logger mode, messages that fail validation are rejected. Check your DLT portal for its current status.

How to update your existing templates

  1. Export your template listDownload the templates from your DLT portal and find every one that still uses {#var#}.
  2. Choose a type for each variableDigits only → numeric; names and IDs → alphanumeric; web links → url; app links → urlott; phone numbers → cbn; email addresses → email.
  3. Tidy the wordingRemove unnecessary variables, keep fixed text between the ones that remain, and end with your brand name.
  4. Check, then fileRun each template through our DLT template checker, then file the tagged versions on your portal.
  5. Update your sending codeMake sure the values your system sends fit the new types — for example, no letters in a numeric variable.

We can do this with you. Send us your current templates and we'll suggest tagged versions before you file them. If we register your DLT entity for you, the fee is ₹5,900 (including 18% GST), valid for one year and renewed every year; linking an entity you already have is free. DLT registration guide.

Frequently asked questions

What are DLT template variable tags?

They are typed placeholders in a DLT SMS template. Instead of a generic variable, each placeholder says whether it holds a number, an alphanumeric value, a web link, an app link, a call-back number or an email address, so operators can check the value before delivering the message.

Is {#var#} still allowed in DLT templates?

Under TRAI's direction of 18 November 2025 every variable must be pre-tagged with its type, and the Vi and BSNL guidelines say templates using the old {#var#} must be migrated. Update them to the typed tags your portal shows.

How many variables can a DLT template have?

TRAI allows two variables per template, a third in exigency, and more only in special circumstances with justification. Variables must not sit next to each other.

What is the maximum length of an alphanumeric variable?

TRAI limits the alphanumeric type to 40 characters. On the Vi and BSNL portals numeric and email values are also limited to 40 characters, link values to 120 and call-back numbers to 3 to 14 characters.

Why was my SMS blocked even though the template is approved?

The values in the message are also checked. A link, app link or call-back number that is not whitelisted on DLT, or a value that does not match its tag, such as letters in a numeric variable, can cause the message to be logged as a failure or blocked.

Do I need to register my link shortener domain?

Yes. Every link in an SMS must be whitelisted on DLT. Use a short domain you own and register it; public link shorteners are usually not accepted.

Get a free API key + 100 test SMS

Create your account and generate an API key right away. Verified businesses also get 100 free test SMS once KYC and DLT mapping are done. No setup fee, no minimum top-up, and credits never expire.

Get 100 free SMS
Claim 100 free SMS