Skip to main content

Send poll message

Endpoint: {{baseUrl}}/message/poll

Method: POST
Category: Send message


📝 Description

This endpoint is used to send poll message. You must include a valid access_token in the headers.


🔐 Headers

  • Authorization: Bearer {{access_token}}
  • Content-Type: application/json

📥 Request Parameters

  • phone: required, type str
  • name: required, type str
  • selectable: required, type int
  • values: required, type list
  • instance_id: required, type str

📦 Example Request Body

{
"phone": "{{phoneNumber}}",
"name": "Main text of the poll",
"selectable": 0,
"values": [
"Question 1",
"Question 2",
"Question 3"
],
"instance_id": "{{instanceId}}"
}