Send poll (poll) to a contact or group
| Property | Type | Required | Description |
|---|---|---|---|
sessionId | string | ✅ Yes | Authenticated session ID that will send the poll |
jid | string | ✅ Yes | Recipient identifier (WhatsApp JID). Format: [email protected] for contacts or [email protected] for groups |
poll | object | ✅ Yes | Object containing the poll information |
poll.name | string | ✅ Yes | Poll question or title |
poll.options | array | ✅ Yes | Array of strings with the answer options (minimum 2 options) |
poll.multipleAnswers | boolean | ❌ No | Defines whether multiple answers are allowed (default: false) |
200 - Poll sent successfully400 - Invalid parameters401 - Unauthorized session404 - Session not foundYour Wappfy API key (get it at dash.wappfy.com.br)
Chat ID (WhatsApp JID)
Object containing the poll information
Session name (instanceName)
"my-session"
Message ID you want to reply to
null