Chapter 1 · The scenario
Example: From sign-up to delivery at an Ahmedabad pharmacy
An Ahmedabad online pharmacy runs its whole customer journey on five templates: an authentication template for login codes, a utility order_confirmed template with the order number and amount, a utility order_dispatched template with a dynamic "Track order" button, a utility refill reminder for prescriptions the customer asked to be reminded about, and a marketing template for monthly offers sent only to customers who opted in. Each was approved once and is now sent thousands of times a day by name and language. When a customer replies to the dispatch message asking for a delivery slot change, the pharmacist answers in free-form text inside the window the reply opened.
Chapter 2 · What is a message template?
A message template is a message format that a business registers with Meta, gets approved, and then reuses for thousands of individual sends. The fixed wording is reviewed once; the parts that change per customer — a name, an order number, a date, an amount — are variables filled in at send time, written as positional {{1}}, {{2}} or named {{first_name}} placeholders. Older documentation and dashboards call templates HSMs (Highly Structured Messages); the meaning is the same.
Templates exist because WhatsApp limits when businesses may write freely. Inside a 24-hour customer service window, opened by the customer's own message, a business can reply with free-form messages. To send the first message, or to reach someone after the window has closed, the business must use an approved template. That rule is what keeps business messaging on WhatsApp low-spam: every proactive message uses wording Meta has seen.
A template is built from components. An optional template header holds text (up to 60 characters, one variable) or media — an image, video, document or, for utility and marketing, a location. The required body holds the main text, up to 1,024 characters. An optional footer adds a short grey line of up to 60 characters. Buttons, up to 10 in total, can be quick replies, URL buttons (static or dynamic), a phone number, a copy-code button and more. Each template has a name (lowercase letters, numbers and underscores, up to 512 characters), a language and one of three categories: marketing, utility or authentication.
The template category drives both rules and price. Since 1 July 2025 Meta charges per delivered template by category; in India that is ₹0.94 for marketing, ₹0.19 for utility and ₹0.14 for authentication. Utility templates sent inside an open window have been charged since 1 October 2026, having been free until 30 September 2026. Templates also have a life after template approval: a template status (approved, paused, disabled and others), a quality rating driven by how recipients react, and archiving after 12 months without use.
Key takeaways
- A message template is a pre-approved WhatsApp message format with variables, reused for thousands of personalised sends.
- Templates are required to start a conversation or to message someone more than 24 hours after their last message.
- Every template has a name, a language and one category (marketing, utility or authentication), and the category sets its price.
- A template has an optional header, a required body of up to 1,024 characters, an optional footer and up to 10 buttons.
- Each delivered template is billed once by category: in India ₹0.94 marketing, ₹0.19 utility, ₹0.14 authentication.
Chapter 3 · How does InfiQ help with a message template?
InfiQ's template manager covers the whole life of a template: draft with named variables, validate the category, add sample values, submit to Meta, fix rejections and keep a version history.
- Approval status is tracked for you.
- template.approved, template.paused and template.disabled webhooks reach your systems.
Chapter 4 · How it unfolds
How does a message template work?
Design the message
Choose the category that matches the purpose, write the body with variables surrounded by enough fixed text, and add any header, footer and buttons. A template cannot start or end with a variable.
Submit it for review
Create it in WhatsApp Manager or with
POST /{WABA_ID}/message_templates, including an example value for every variable and a sample for any media header. Review is automatic and can take up to 24 hours.Send it by name and language
Call
POST /{PHONE_NUMBER_ID}/messageswithtype: template, the templatename, itslanguage.codeand acomponentsarray holding one value per variable, in order.Pass the checks
The Cloud API confirms the template exists in that language and is approved, the parameter count matches and the recipient can be messaged under your messaging limit and, for marketing, per-user limits.
Track delivery and cost
Status webhooks report sent, delivered, read or failed. Each delivered template is billed once by its category, and a customer reply opens a 24-hour window for free-form messages.
Maintain it
Watch quality ratings, status changes and category updates through webhooks; low-quality templates are paused and can be disabled, and unused ones are archived after 12 months.
Chapter 5 · Why it matters
Why does a message template matter?
Almost every proactive WhatsApp message a business sends — order updates, OTPs, payment reminders, appointment confirmations, offers — is a template. That makes templates the backbone of any integration and the main lever on cost: the category sets the price of every send, the wording decides whether it is approved and stays in that category, and recipient reactions decide whether it keeps running. Understanding templates end to end is the difference between a messaging programme that scales and one that stalls in review.
Chapter 6 · In code
A message template in code
curl -X POST "https://api.infiq.in/v1/messages" \-H "X-INFIQ-API-KEY: {INFIQ_API_KEY}" \-H "Content-Type: application/json" \-d '{"messaging_product": "whatsapp","to": "919812345678","type": "template","template": {"name": "order_dispatched","language": { "code": "en" },"components": [{ "type": "body", "parameters": [{ "type": "text", "text": "Ananya" },{ "type": "text", "text": "#48213" },{ "type": "text", "text": "Friday" }] },{ "type": "button", "sub_type": "url", "index": "0","parameters": [ { "type": "text", "text": "K7Q2M9XA" } ] }]}}'# → { "messages": [ { "id": "wamid.HBgMOTE5ODEyMzQ1Njc4..." } ] }
One value per variable, in order. The returned wamid is what status webhooks refer to.
Chapter 7 · The facts
A message template: key facts and limits
| Categories | Marketing, utility, authentication |
|---|---|
| Body | Required, up to 1,024 characters |
| Header / footer | Optional; text up to 60 characters each |
| Buttons | Up to 10 per template |
| Name | Up to 512 characters: a–z, 0–9, _ |
| Review | Automatic, up to 24 hours |
| Templates per WABA | 250 unverified; up to 6,000 verified |
| Unused templates | Archived after 12 months |
Chapter 8 · Where it goes wrong
Common mistakes with a message template
Sending the wrong number of parameters
If the template has three variables and the request carries two, the send fails with a parameter-count error (132000). Build the components from the template definition, not by hand.
Asking for the wrong language
A template is looked up by name and language together. Requesting
en_USwhen onlyenwas approved returns a template-not-found error (132001).Category gaming
Filing promotional copy as utility to pay less does not last: Meta approves it as marketing or recategorises it later. Choose the category that matches the purpose.
Variables at the edges or without context
A body that starts or ends with a variable, or is mostly variables, is rejected. Keep enough fixed text around each variable for reviewers to understand the message.
Set and forget
Templates that draw blocks and reports are paused, then disabled. Watch template status and quality webhooks and fix wording or targeting before a key flow stops.
Chapter 9 · What good teams do
Best practices for a message template
- Keep one template per purpose and language, with names that say what they do.
- Store the approved category with each template in your own system and alert when it changes.
- Validate variable values (length, no line breaks where not allowed) before sending.
- Keep a utility template ready for every case where a support reply might miss the 24-hour window.
Chapter 10 · Message Template FAQs
Message Template FAQs
When do I need a template instead of a normal message?+
How long does template approval take?+
How much does a template message cost in India?+
Is an HSM different from a template?+
* Per-message rates for India, ex-GST: marketing, utility and authentication effective 1 July 2026; service messages ₹0.145 since 1 October 2026 after the first 1,000 a month on each WhatsApp number, which are free (all were ₹0 until 30 September 2026). Volume commitments earn discounts — final rate is confirmed on your account; applicable GST extra. Rates for other countries differ (see the international rate table on /pricing).