v1

latestOpenAPI 3.1.02026-07-14330101.9 KB

๐Ÿ“Š Send Polling

The Send Polling endpoint allows users to create and send polls to gather feedback from participants. This feature can be used in various contexts, such as gathering opinions in a group chat, conducting surveys, or making decisions based on the input of a group. By sending polling questions through the API, businesses and developers can engage with their audience, make data-driven decisions, and encourage participation in discussions or activities.

post/send-message/poll

Request body

contact_idstring required

The contact id

titlestring required

The polling title

optionsstring[] required

The polling options

is_multiple_answerboolean required

Multiple Answer ( user can choose more than one answer )

Response

200

successboolean
messagestring

Example response

{
  "success": true,
  "message": "OK",
  "data": {
    "status": "PENDING",
    "message": {
      "contact_id": "6281357541790@s.whatsapp.net",
      "poll": {
        "name": "Are you have a bachelor degree ?",
        "options": [
          {
            "optionName": "Yes"
          }
        ],
        "selectableOptionsCount": 1
      }
    },
    "timestamp": "1725942021"
  }
}