Description
This endpoint allows you to send a poll (survey) to individual contacts or groups on WhatsApp. You can create polls with multiple options and configure whether to allow multiple answers or just one answer.Body
Body Parameters
| 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) |
Status Codes
200- Poll sent successfully400- Invalid parameters401- Unauthorized session404- Session not found
Usage Example
Authorizations
Your Wappfy API key (get it at dash.wappfy.com.br)
Body
application/json
Chat ID (WhatsApp JID)
Example:
Object containing the poll information
Session name (instanceName)
Example:
"my-session"
Message ID you want to reply to
Example:
null
