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: 5511999999999@s.whatsapp.net for contacts or 120363XXXXX@g.us 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)