Skip to main content

malipopaysmsservice_WabaSendTemplateRequest

tostringrequired

E.164, 8 to 15 digits, leading + optional.

Example: 255712345678
templateNamestringrequired

Must be APPROVED.

Example: wedding_invitation_card
languagestringrequired

Must match the approved template exactly: en and en_US are different templates.

Example: en
fromstring

Send from this number. Defaults to your default sender.

Example: 255687128012
phoneNumberIdstring

Meta's internal id for the same number. Prefer from.

variables object

Body placeholders only, keyed "1", "2", … Applied in numeric order.

property name*string
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.

bodystring[]

Body variables in {{1}}..{{n}} order.

Example: ["Erick","A1356"]
headerstring

Header text, when the header is TEXT and carries a placeholder.

headerMediaLinkstring

Public URL of the header image, video or document.

headerMediaIdstring

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.

property name*string
malipopaysmsservice_WabaSendTemplateRequest
{
"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"
}
}
}