cURL
curl --request POST \ --url https://api.flowmod.ai/message/sendPoll/{instanceName} \ --header 'Content-Type: application/json' \ --header 'apikey: <api-key>' \ --data @- <<EOF { "number": "5511999999999", "name": "What's your favorite color?", "selectableCount": 1, "values": [ "Red", "Blue", "Green", "Yellow" ] } EOF
{ "status": 201, "error": false, "response": { "key": { "id": "<string>", "fromMe": true, "remoteJid": "<string>" }, "message": {}, "messageTimestamp": 123, "status": "PENDING", "pushName": "<string>" } }
Send a poll message with multiple options for voting
Organization-specific API key for Evolution API access
"5511999999999"
Poll question
"What's your favorite color?"
Number of options users can select
1
Poll options
["Red", "Blue", "Green", "Yellow"]
Poll message sent successfully
201
false
Show child attributes
Unique message identifier
Whether message was sent by the instance
WhatsApp JID of recipient/group
Message content object
Unix timestamp of message
Message delivery status
PENDING
SENT
RECEIVED
READ
Display name of sender