Messages
Send outbound WhatsApp message
Wrapper on the WhatsApp Cloud API /message endpoint. Supports template (text / media / interactive / authentication) and session (text / image) messages.
POST
/
fbwrapper
/
outbound
/
{botnumberwithisd}
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "PHONE_NUMBER",
"type": "template",
"template": {
"name": "template_name",
"language": { "code": "LANGUAGE_AND_LOCALE_CODE" },
"components": [
{
"type": "body",
"parameters": [
{ "type": "text", "parameter_name": "customer_name", "text": "John" },
{ "type": "text", "parameter_name": "order_id", "text": "9128312831" }
]
}
]
},
"activity": {
"activityId": "",
"activity_context": "",
"activity_customdata": ""
}
}{
"messages": [
{
"id": "wamid.HBg...",
"message_status": "accepted"
}
]
}⌘I
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "PHONE_NUMBER",
"type": "template",
"template": {
"name": "template_name",
"language": { "code": "LANGUAGE_AND_LOCALE_CODE" },
"components": [
{
"type": "body",
"parameters": [
{ "type": "text", "parameter_name": "customer_name", "text": "John" },
{ "type": "text", "parameter_name": "order_id", "text": "9128312831" }
]
}
]
},
"activity": {
"activityId": "",
"activity_context": "",
"activity_customdata": ""
}
}{
"messages": [
{
"id": "wamid.HBg...",
"message_status": "accepted"
}
]
}