- Pre-approved WhatsApp templates
- Dynamic placeholders
- Images
- Videos
- Documents
- Interactive buttons
- Multiple recipients
Only templates approved by WhatsApp can be sent.
Sending workflow
Personalize messages
Templates may contain placeholders such as:
Values are substituted automatically in the order they appear.
Template request structure
The request body differs slightly depending on the type of WhatsApp template being sent.- Marketing and Utility templates support media attachments in addition to dynamic placeholders.
- Authentication templates are designed for one-time password (OTP) delivery and support only plain text verification messages.
- Marketing / Utility
- Authentication
Include
content.mediaUrl only when your approved template contains an image, video, or document.Request body fields
Each object inside
destination_addr can contain different placeholder values, allowing you to personalize the same template for multiple recipients in a single API request.Multiple recipients
Thedestination_addr field accepts an array of recipients.
Each recipient includes:
- Phone number
- Placeholder values (
params)
Each recipient can receive different placeholder values.
Media templates
Templates may include media such as:- Images
- Videos
- PDF documents
- Other supported attachments
Interactive templates
Depending on the approved template, messages may include:- Call-to-action buttons
- Quick Reply buttons
- URL buttons
API response
After submitting a template message, the API returns details including:Delivery Summary
- Valid recipients
- Invalid recipients
- Credits consumed
- Processing status
Tracking Information
- Job ID
- Campaign information
- Request tracking details
The returned jobId can be used to track the message and correlate delivery report callbacks.
