Send Poll API

Api Docs Sending Poll Messages

Method : POST | GET

Endpoint: {{ url('/') }}/send-poll

Request Body : (JSON If POST)

Parameter Type Required Description
api_key string Yes API Key
sender string Yes Number of your device
number string Yes Recipient number ex 72888xxxx | 62888xxxx
name string Yes Name or poll question
option array Yes Values of poll message
countable string (1 or 0) Yes 1 = allow one option only, 0 = allow multiple
full number No Show full response from WhatsApp

Example Without full

JSON Request

{
    "sender": "081222xxxxxx",
    "api_key": "123456789",
    "number": "201111xxxxxx",
    "countable": "1",
    "name": "what color do you like?",
    "option": ["red","blue","yellow"]
}

URL Request

{{ url('/') }}/send-poll?sender=081222xxxxxx&api_key=123456789&number=201111xxxxxx&name=what color do you like&option=red,blue,yellow&countable=1

JSON Response

{
    "status": true,
    "msg": "Message sent successfully!"
}

Example With full

JSON Request

{
    "sender": "081222xxxxxx",
    "api_key": "123456789",
    "number": "201111xxxxxx",
    "countable": "1",
    "name": "what color do you like?",
    "option": ["red","blue","yellow"],
    "full": 1
}

URL Request

{{ url('/') }}/send-poll?sender=081222xxxxxx&api_key=123456789&number=201111xxxxxx&name=what color do you like&option=red,blue,yellow&countable=1&full=1

JSON Response

{
  "status": true,
  "data": {
    "key": {
      "remoteJid": "201111xxxxxx@c.us",
      "fromMe": true,
      "id": "3EB0416D89587XXXXXXXX"
    },
    "message": {
      "messageContextInfo": {
        "messageSecret": "9q9Co188HnKBbsz8JrZBNzYlVXXGXXXXXXXXXXXXXqq4="
      },
      "pollCreationMessageV3": {
        "name": "what color do you like",
        "options": [
          { "optionName": "red" },
          { "optionName": "blue" },
          { "optionName": "yellow" }
        ],
        "selectableOptionsCount": 1
      }
    },
    "messageTimestamp": "1755628143"
  }
}