cURL
WhatsApp Templates
Send app template message
Send a WhatsApp template message. The template must be approved by Meta and linked to this app. Variables can be passed using named keys that will be automatically mapped to positional indices.
POST
cURL
Authorizations
App API key (format: sk_live_app_* or sk_test_app_*) for app-level operations
Body
application/json
Your WhatsApp phone number to send from (E.164 format)
Pattern:
^\+[1-9]\d{1,14}$Example:
"+15551234567"
Recipient phone number in E.164 format
Pattern:
^\+[1-9]\d{1,14}$Example:
"+15559876543"
Name of the approved template to send
Example:
"order_confirmation"
Language code of the template
Example:
"en_US"
Body variables as key-value pairs
Example:
{
"customer_name": "John",
"order_id": "12345"
}
Header variables as key-value pairs
Example:
{ "header_text": "Order Update" }
Button URL variables by button index (e.g., button_0: ['value'])
Example:
{
"button_0": ["https://example.com/track/12345"]
}