WasenderApi - Low Cost WhatsApp API for Developers Send Poll Message - API Documentation - WasenderApi - Low Cost WhatsApp API for Developers
WasenderApi API

API Documentation

WasenderApi WhatsApp API

Send Poll Message

Messages

POST/api/send-message

Sends a message containing a poll with multi select support.

Send Poll Message

Send a message that lets recipients vote on a question. Put the poll’s question and answer options inside the poll object, and (if needed) set multiSelect to allow voters to pick more than one option.

Parameters

NameTypeRequiredDescription
tostringYesRecipient phone number in E.164 format or, Group JID.
pollobjectYesPoll object.
pool.multiSelectbooleanNoAllow multiple options to be selected by the user (default false)
pool.questionstringYesThe question you want to ask in the poll
pool.optionsstring[]YesArray of answer options for the poll (min:2 - max:12)

Code Examples

curl -X POST "https://www.wasenderapi.com/api/send-message" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "to": "+1234567890",
      "poll": {
          "question": "What is your favorite color?",
          "options": [
              "Blue",
              "Green",
              "Red",
              "Yellow"
          ],
          "multiSelect": false
      }
  }'

Response Examples

{
  "success": true,
  "data": {
    "msgId": 100000,
    "jid": "+123456789",
    "status": "in_progress"
  }
}