POST /message/sendPoll/{instance}

Send a poll

Request body

number string · 34600000000 required
name string · Best pizza? required
values array · ["Margherita","Pepperoni"] required

cURL example

curl -X POST https://{name}.eai.menustudioai.com/message/sendPoll/{instance} \
  -H "apikey: YOUR_INSTANCE_TOKEN" \
  -d '{"number":"34600000000","name":"Best pizza?","values":["Margherita","Pepperoni"]}'

Try it live

requests are proxied by Weai — your token never hits the browser
.eai.menustudioai.com
POST/message/sendPoll/{instance}

Sent as the JSON request body.

Response

example response — run a test to see live data
{
  "key": {
    "remoteJid": "[email protected]",
    "fromMe": true,
    "id": "3EB0C85D5A1B2C3F"
  },
  "message": {
    "pollCreationMessage": {
      "name": "Best pizza?",
      "options": [
        {
          "optionName": "Margherita"
        },
        {
          "optionName": "Pepperoni"
        }
      ]
    }
  },
  "messageType": "pollCreationMessage"
}