Standard Send Endpoint
Send template messages through:
POST /<PHONE_NUMBER_ID>/messages
Utility Template with Variables
{
"messaging_product": "whatsapp",
"to": "12015550123",
"type": "template",
"template": {
"name": "order_update_v1",
"language": {
"code": "en_US"
},
"components": [
{
"type": "body",
"parameters": [
{ "type": "text", "text": "Alex" },
{ "type": "text", "text": "A12345" },
{ "type": "text", "text": "shipped" }
]
}
]
}
}
Positional values must follow the order of the placeholders. For a template created with named parameters, add "parameter_name": "first_name" to each parameter; named values can be in any order.
Template with Media Header
{
"messaging_product": "whatsapp",
"to": "12015550123",
"type": "template",
"template": {
"name": "delivery_photo_update",
"language": {
"code": "en_US"
},
"components": [
{
"type": "header",
"parameters": [
{
"type": "image",
"image": { "id": "123456789012345" }
}
]
},
{
"type": "body",
"parameters": [
{ "type": "text", "text": "Alex" },
{ "type": "text", "text": "A12345" }
]
}
]
}
}
For media upload, see Upload, Retrieve & Delete Media.
URL Button Parameter
{
"messaging_product": "whatsapp",
"to": "12015550123",
"type": "template",
"template": {
"name": "track_order_button",
"language": {
"code": "en_US"
},
"components": [
{
"type": "body",
"parameters": [
{ "type": "text", "text": "Alex" },
{ "type": "text", "text": "A12345" }
]
},
{
"type": "button",
"sub_type": "url",
"index": "0",
"parameters": [
{ "type": "text", "text": "A12345" }
]
}
]
}
}
Percent-encode special characters in a URL button value before sending, for example a space as %20, : as %3A, | as %7C, and ç as %C3%A7. Unencoded characters can make the generated URL fail validation and the send fail.
Tap Target URL Override
A tap_target_configuration component makes an image, text, or header-less template open a URL when tapped, with a custom title, as if it were a call-to-action URL button. Meta only allows it for a fully verified WhatsApp account that keeps a consistently high quality rating.
{
"type": "tap_target_configuration",
"parameters": [
{
"type": "tap_target_configuration",
"tap_target_configuration": [
{ "url": "https://example.com/offer", "title": "Offer Details" }
]
}
]
}
Add it to template.components alongside the header and body parameters.
Send Responses
Successful send:
{
"messages": [
{
"id": "wamid.HBgLMTIzNDU2Nzg5FQIAERgS...",
"message_status": "accepted"
}
]
}
Held for quality assessment:
{
"messages": [
{
"id": "wamid.HBgLMTIzNDU2Nzg5FQIAERgS...",
"message_status": "held_for_quality_assessment"
}
]
}
held_for_quality_assessment means Meta is pacing the send: either the template is new, recently unpaused, or not rated GREEN, or the business portfolio is subject to business portfolio pacing. Held messages are released later or dropped. A drop arrives as a failed status with 132015 (template paused) or 135000 (portfolio pacing).
Delivery order isn't guaranteed to match request order. If sequence matters, wait for the delivered status of one message before sending the next.
Dualhook Boundary
Send templates through the Runtime API at POST https://api.dualhook.com/v25.0/<PHONE_NUMBER_ID>/messages with your dh_live_ key, or through your own Meta app. The Runtime API forwards the template object as Meta defines it, including location headers, named parameters, and tap_target_configuration. It has no /marketing_messages route, and the dashboard does not send messages. Dualhook never retries a send and does not change Meta review outcomes, category assignment, pacing, or send eligibility decisions. For error codes, see Meta API Error Reference.