POST WhatsApp Template Message
This article contains essential information and usage guidelines for sending WhatsApp Template Messages through the BotPenguin API.
When should you use this?
Use this API when:
You want to send approved WhatsApp template messages programmatically
You need to trigger WhatsApp notifications from an external application
You are trying to automate WhatsApp communication using approved Meta templates
What is the POST WhatsApp Template Message API?
The POST WhatsApp Template Message API allows you to send approved WhatsApp templates directly to users through BotPenguin.
This API supports:
Template variables
Media headers
Agent assignment
Conversation tagging
Dynamic personalization
Benefits of the WhatsApp Template Message API
🚀 Automates WhatsApp outreach at scale
📩 Supports approved Meta template messages
🎯 Enables personalized communication using variables
🏷️ Allows automatic conversation tagging
👥 Supports assigning conversations to agents
Expected Outcome
After using this API:
Approved WhatsApp templates will be delivered to users
Template variables will be dynamically populated
Conversations can be automatically tagged
Chats can be assigned to specific agents
API Endpoint
Request Headers
authType
Key
Content-Type
application/json
Query Parameters
apiKey
Your BotPenguin API Key
Request Parameters
userName
Name of the recipient
wa_id
WhatsApp number including country code without + sign
templateId
Approved WhatsApp Template ID
assignTo
Email address of the assigned agent or custom user
params
Variables used inside the template
tags
Labels used to organize conversations
Template Variable Types
1. Name-Based Variables
Select "Name" while creating the template if your variables are named.
Example variables:
customer_name
lead_name
industry
meeting_day
For Name-based variables, every parameter must include a parameter_name field matching the exact variable name configured in the template.
Example Parameter
Example Request Body
2. Number-Based Variables
Select "Number" while creating the template if your variables are positional.
Examples:
Variable 1
Variable 2
Variable 3
For Number-based variables, parameter_name is not required.
Values are mapped based on their order within the template.
Example Request Body
Complete API Example
Request
Response Headers
X-Powered-By
Express
Vary
Origin
Access-Control-Allow-Credentials
true
_user
User ID
_bot
Bot ID
whatsAppId
WhatsApp Account ID
Content-Type
application/json; charset=utf-8
Content-Length
Response Length
Etag
Response ETag
Date
Response Date
Connection
keep-alive
Keep-Alive
timeout=5
Best Practices
💡 Always use approved WhatsApp templates before sending messages.
⚠️ Ensure the WhatsApp number includes the country code and excludes the "+" symbol.
🚀 Use meaningful tags to organize conversations efficiently.
🎯 Validate template variables before making the API request.
Troubleshooting
FAQs
Support
If you still have questions for our team, write to us at support@botpenguin.com. We'll get back to you within 48 hours.
Last updated
Was this helpful?