malipopaysmsservice_WabaSendTemplateRequest
E.164, 8 to 15 digits, leading + optional.
255712345678Must be APPROVED.
wedding_invitation_cardMust match the approved template exactly: en and en_US are different templates.
enSend from this number. Defaults to your default sender.
255687128012Meta's internal id for the same number. Prefer from.
variables object
Body placeholders only, keyed "1", "2", … Applied in numeric order.
values object
Everything a template asks for, filled against its approved definition. Read the field list for a given template from inputs on GET /api/v1/waba/templates.
Body variables in {{1}}..{{n}} order.
["Erick","A1356"]Header text, when the header is TEXT and carries a placeholder.
Public URL of the header image, video or document.
A media id from POST /api/v1/waba/media, instead of a link.
buttons object
Button values keyed by the button's index within the template's BUTTONS component ("0" is the first). A link button takes the part of the URL that changes per recipient, a coupon button takes the code, and a quick-reply button takes the payload returned on your webhook when it is tapped. A phone button, and a link with no placeholder, take no value.
{
"to": "255712345678",
"templateName": "wedding_invitation_card",
"language": "en",
"from": "255687128012",
"phoneNumberId": "string",
"variables": {},
"values": {
"body": [
"Erick",
"A1356"
],
"header": "string",
"headerMediaLink": "string",
"headerMediaId": "string",
"buttons": {
"0": "A1356"
}
}
}