
POST <PHONE_NUMBER_ID>/messages
| Placeholder | Description | Sample Value |
|---|---|---|
<PHONE_NUMBER_ID>Integer | Required The business phone number which you are sending messages from. | +12784358810 |
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "14085551234",
"type": "interactive",
"interactive" : {
"type" : "voice_call",
"body" : {
"text": "You can call us on WhatsApp now for faster service!"
},
"action": {
"name": "voice_call",
"parameters": {
"display_text": "Call on WhatsApp",
"ttl_minutes": 100,
"payload": "payload data"
}
}
}
}
| Parameter | Description | Sample Value |
|---|---|---|
toInteger | Required The phone number of the WhatsApp user you are messaging. | "17863476655" |
typeString | Required The type of interactive message you are sending. In this case, you are sending a voice_call. | "voice_call" |
actionString | Required The action of your interactive message. Must be voice_call. | "voice_call" |
parametersJSON Object | Optional Optional parameters for the WhatsApp calling button sent to the user. Contains three values: display_text, ttl_minutes, and payloaddisplay_text — (String) OptionalThe display text on the WhatsApp calling button sent to the user. Default is “Call Now” Max length: 20 characters ttl_minutes — (Integer) OptionalTime to live for the call-to-action (CTA) button in minutes. Must be between 1 and 43200 (30 days) Default value is 10080 (7 days) payload — (String) OptionalAn arbitrary string, useful for tracking. Any app subscribed to the calls webhook field on the WhatsApp Business Account can get this string, as it is included in the connect and terminate webhook payloads under the cta_payload field.Cloud API does not process this field, it just returns it as part of the webhooks. Maximum 512 characters. Payload is only available to WhatsApp client starting on version 2.25.27. | |
131026.POST/<WHATSAPP_BUSINESS_ACCOUNT_ID>/message_templates
| Parameter | Description | Sample Value |
|---|---|---|
<WHATSAPP_BUSINESS_ACCOUNT_ID>String | "waba-90172398162498126" |
{
"name": "<NAME>",
"category": "<CATEGORY>",
"language": "<LANGUAGE>",
"components": [
{
"type": "BODY",
"text": "You can call us on WhatsApp now for faster service!"
},
{
"type": "BUTTONS",
"buttons": [
{
"type": "voice_call",
"text": "Call Now",
"ttl_minutes": 1440
},
{
"type": "URL",
"text": "Contact Support",
"url": "https://www.luckyshrub.com/support"
}
]
}
]
}
type as voice_call.| Parameter | Description | Sample Value |
|---|---|---|
typeString | Required The type of template message you are creating. In this case, you are creating a voice_call. | "voice_call" |
textString | Optional The display text on the WhatsApp calling button sent to the user. Default is “Call Now” Max length: 20 characters | "Call Now" |
ttl_minutesInteger | Optional Time to live for the CTA button in minutes. Must be between 1440 (1 day) and 43200 (30 days). You can override this value when sending the message. | 1440 |
{
"id": "<ID>",
"status": "<STATUS>",
"category": "<CATEGORY>"
}
whatsapp-business-account-idPOST/<PHONE_NUMBER_ID>/messages
| Parameter | Description | Sample Value |
|---|---|---|
<PHONE_NUMBER_ID>String | Required The business phone number which you are sending a message from. | +18762639988 |
{
"to": "14085551234",
"messaging_product": "whatsapp",
"type": "template",
"recipient_type": "individual",
"template": {
"name": "wa_voice_call",
"language": {
"code": "en"
},
"components": [
{
"type": "button",
"sub_type" : "voice_call",
"parameters": [
{
"type": "ttl_minutes",
"ttl_minutes": 100
},
{
"type": "payload",
"payload": "payload data"
}
]
}
]
}
}
| Parameter | Description | Sample Value |
|---|---|---|
ttl_minutesInteger | Optional Time to live for the CTA button in minutes. Must be between 1 and 43200 (30 days) Default value is 10080 (7 days) | 10800 |
payloadString | Optional An arbitrary string, useful for tracking. Any app subscribed to the calls webhook field on the WhatsApp Business Account can get this string, as it is included in the connect and terminate webhook payloads under the cta_payload field.Cloud API does not process this field, it just returns it as part of the webhooks. Maximum 512 characters. Payload is only available to WhatsApp client starting on version 2.25.27. | payload data |

wa.me/call/<BUSINESS_PHONE_NUMBER>
wa.me/call/<BUSINESS_PHONE_NUMBER> format is easy to copy, paste, and send, and does not require you to make a template in Business Manager.
biz_payload query string when sending the call deep link to any user (wa.me/call/<BUSINESS_PHONE_NUMBER>?biz_payload=payload).biz_payload any app subscribed to the calls webhook field on the WhatsApp Business Account can get this string, as it is included in the connect and terminate webhook payloads under the deeplink_payload field.