flow api
Sending · POST

sendInteractiveButtons

Send reply buttons. On numbers with Interactive menus turned on (Beta), they are delivered as a tap-to-choose menu, because current WhatsApp apps hide classic buttons sent through unofficial APIs.

Video walkthrough: sendInteractiveButtons · 20 seconds · click the bar to jump to a step

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": "3EB0…"
}

Notes

  • Turn it on in the console: open the number → Settings → Interactive menus (the number re-links once; token and settings stay the same).
  • Up to 10 reply buttons. Link, call and copy buttons are not supported; put links or phone numbers in the text.
  • A tap arrives as incomingMessageReceived with typeMessage buttonsResponseMessage: selectedButtonId is your buttonId.
Green API compatible. sendInteractiveButtons uses the same name, request body and response as Green API, so existing code works after you change the host to flowapi.pro. Errors: 401 wrong instance or token, 402 trial ended or number not covered by your plan, 429 rate limit reached (wait the seconds in the Retry-After header), 400 with a message for anything else.

More sending methods

Try it on your own number

7 days free, no credit card. Then $10 per number per month.

Start free trial