Templates
Works on
Send an approved template, the message that opens a conversation on WhatsApp
You can reply freely for 24 hours after a person's last message. After that, or to write to someone first, send a template Meta has approved for your WhatsApp Business Account. List templates lists the approved ones on a line.
Send a template
Name the template, the language it was approved in, and the values for its placeholders in Meta's components shape.
curl -X POST https://api.mapier.ai/v1/commands/message.send \
-H "Authorization: Bearer $MAPIER_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: booking-2481-reminder" \
-H "x-mapier-version: 2026-12-01" \
-d '{
"target": { "channel": "whatsapp", "recipientExternalId": "+447700900123" },
"payload": {
"kind": "template",
"template": {
"name": "booking_reminder",
"language": "en_GB",
"components": [{ "type": "body", "parameters": [{ "type": "text", "text": "7pm" }] }]
}
}
}'When a template fails after sending
Mapier does not check Meta's approval before sending. A template that is not approved, or is paused, is accepted and then ends as a failed result. Results and delivery lists every class.
Errors you may see
| Error | Means | Fix |
|---|---|---|
422 validation_failed | The name or language is missing | Name the template and its language |
404 unsupported_command, not_on_channel | The line's channel does not send templates | Send a text |