POST
Send Button
Send an interactive button message. Up to 3 buttons: quick reply, URL, or call. Requires the Interactive messages plan feature.
Only delivers if the customer messaged you within the last 24 hours. Outside that window, use Meta Templates.
API endpoint
https://api.waclient.com/sendQuick reply buttons
curl -X POST \
'https://api.waclient.com/send' \
-H 'Content-Type: application/json' \
--data '{
"number": "201234567890",
"type": "button",
"message": {
"caption": "How can we help?",
"footer": "Choose one",
"templateButtons": [
{
"index": 1,
"quickReplyButton": {
"display_text": "Support"
}
},
{
"index": 2,
"quickReplyButton": {
"display_text": "Sales"
}
}
]
},
"instance_id": "META68B6ED90CXXXX",
"access_token": "EMCUH3NQQK8YXXXX"
}'Response
{
"status": "success",
"message": "Success",
"message_payload": {
"messaging_product": "whatsapp",
"messages": [
{
"id": "wamid.xxx",
"message_status": "accepted"
}
]
}
}URL + Call buttons with image
curl -X POST \
'https://api.waclient.com/send' \
-H 'Content-Type: application/json' \
--data '{
"number": "201234567890",
"type": "button",
"message": {
"caption": "Visit our store or call us",
"footer": "Optional footer",
"image": {
"url": "https://example.com/banner.jpg"
},
"templateButtons": [
{
"index": 1,
"urlButton": {
"display_text": "Visit",
"url": "https://example.com"
}
},
{
"index": 2,
"callButton": {
"display_text": "Call",
"phone_number": "+201234567890"
}
}
]
},
"instance_id": "META68B6ED90CXXXX",
"access_token": "EMCUH3NQQK8YXXXX"
}'| Parameter | Description |
|---|---|
| number | Phone with country code (e.g. 201234567890) |
| type | Must be button |
| message | JSON with caption, optional footer / image, and templateButtons |
| instance_id | Meta Cloud instance ID |
| access_token | Your access token |