Why templates are required
WhatsApp Business API policy distinguishes between two types of conversations:- Session messages — replies sent within 24 hours of the customer’s last inbound message. These do not require a template.
- Outbound proactive messages — notifications, alerts, OTPs, and marketing messages sent outside an active 24-hour session. These must use a pre-approved template.
Template components
A WhatsApp template is built from up to four components:| Component | Required | Description |
|---|---|---|
| Header | No | A title displayed above the body. Can be text, an image, or a document. |
| Body | Yes | The main message text. Supports dynamic variables using {{1}}, {{2}}, etc. |
| Footer | No | A short line of small text below the body, typically used for disclaimers or opt-out instructions. |
| Buttons | No | Up to two interactive buttons: Call to Action (e.g. visit URL, call number) or Quick Reply. |
Create a template
Open New Template
In the Zexa dashboard, go to Messaging > Templates > New Template.
Name your template
Enter a template name using only lowercase letters, digits, and underscores — no spaces. For example:
order_confirmation or shipping_update_v2.Select a category
Choose the category that best describes your template:
- Marketing — promotions, offers, product announcements
- Utility — transactional notifications such as order confirmations and delivery updates
- Authentication — OTP and verification codes
Write the body text
Type your message body. Insert dynamic variables using double curly braces and a sequential number:
{{1}}, {{2}}, and so on. For example:Your order {1} has been shipped and will arrive by {2}. Track it here: {3}
Add optional components
Optionally add a header (text or media), a footer (short text), and up to two buttons (call-to-action or quick reply).
Using a template in a message
Once a template is approved, reference it by name when sending a message via the API. Pass runtime values for each variable in thevariables array, in the same order as {{1}}, {{2}}, etc.
language field accepts an IETF BCP 47 language tag (e.g. pt for Portuguese, en for English). Zexa will use the language variant of your template that matches the code you supply.
Template approval times
After submission, WhatsApp reviews the template content against its messaging policies. The typical review time is 1–2 business days. You can monitor the current status at any time under Messaging > Templates in the dashboard.Template statuses
| Status | Description |
|---|---|
pending | Submitted and awaiting review by WhatsApp. |
approved | Approved and ready to use in messages and campaigns. |
rejected | Not approved. The dashboard shows the rejection reason. Revise and resubmit. |
Campaigns
Use approved templates to power WhatsApp broadcast campaigns.
Contacts
Manage the contact lists your template messages are sent to.
Sender IDs
Register a WhatsApp Sender ID to pair with your approved templates.
