Sending · POST
sendInteractiveButtons
Send a message with reply buttons, links, call or copy-code buttons.
Endpoint
POST https://flowapi.pro/waInstance{idInstance}/sendInteractiveButtons/{apiTokenInstance}Request body
{
"chatId": "972501234567@c.us",
"header": "",
"body": "Confirm your order?",
"footer": "",
"buttons": [
{
"buttonId": "1",
"type": "reply",
"buttonText": "Yes"
},
{
"buttonId": "2",
"type": "reply",
"buttonText": "No"
}
]
}Example
curl -X POST "https://flowapi.pro/waInstance{idInstance}/sendInteractiveButtons/{apiTokenInstance}" \
-H "Content-Type: application/json" \
-d '{"chatId":"972501234567@c.us","header":"","body":"Confirm your order?","footer":"","buttons":[{"buttonId":"1","type":"reply","buttonText":"Yes"},{"buttonId":"2","type":"reply","buttonText":"No"}]}'Response
{
"idMessage": "3EB0C1A7F2D4E8B91C"
}Notes
- Button support depends on the WhatsApp version of the recipient; always keep the message readable without them.
More sending methods
Try it on your own number
7 days free, no credit card. Then $10 per number per month.