Send Poll Message
Send Poll Messages¶
This endpoint allows you to send different types of messages—including text, media, location, and polls—to a specific WhatsApp group by providing the group's JID.
Parameters¶
| Name | Type | Required | Description |
|---|---|---|---|
group_id |
string | Yes | The WhatsApp group JID (example: 12345@g.us). |
message_type |
string | Yes | Type of message to send. Supported: poll. |
poll_name |
string | Yes | Title of the poll (required when message_type = poll). |
poll_options |
array | Yes | List of poll options (required for poll messages). |
allow_multiple_answers |
boolean | Yes | Whether users can select more than one answer in the poll. |
API Endpoint¶
Header¶
Body¶
{
"group_id": "120363424945384312@g.us",
"message_type": "poll",
"poll_name": "Best color?",
"poll_options": ["Red", "Blue", "Green"],
"allow_multiple_answers": false
}
Response:¶
{
"success": true,
"message_type": "text",
"message_id": "3EB0FAC204D805F0E22293",
"to": "XXXXXXXXXXXXX"
}
💡 Tip: Keep your Device Key secure. Never share it publicly.