Vote on Poll
Feature Not SupportedSubmit a poll vote request for a stored poll message (Unsupported).
POSThttps://api.waplix.io/api/v1/messages/poll-vote
Authentication
Authorization: Bearer YOUR_API_KEY Parameters Specification
| Parameter | Type | Required | Description |
|---|---|---|---|
| instance_id | string | Required | Required Waplix instance id |
| poll_message_id | string | Required | Required target poll message id |
| option_names | array | Required | Required array with one or more option labels |
instance_id
stringReq Required Waplix instance id
poll_message_id
stringReq Required target poll message id
option_names
arrayReq Required array with one or more option labels
Usage Notes
Programmatic poll voting is unsupported by design. Poll vote tracking works when a contact votes manually in WhatsApp and Waplix delivers a poll_vote_update webhook.
Request Payload Example
Request
curl -X POST "https://api.waplix.io/api/v1/api/v1/messages/poll-vote" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"instance_id": "demo_instance",
"poll_message_id": "POLL_DEMO_001",
"option_names": [
"Yes"
]
}'Success Response
Response · 200 OK
{
"success": false,
"error": {
"code": "UNSUPPORTED_OPERATION",
"message": "Programmatic poll voting is unsupported by design."
}
} Was this page helpful?