WA Client
POST

Send Poll

Send a poll message. Supported for contacts and groups (not channels). Requires the Message templates plan feature.

API endpoint
https://waclient.com/api/send
Example:
curl -X POST \
  'https://waclient.com/api/send' \
  -H 'Content-Type: application/json' \
  --data '{
    "chat_id": "[email protected]",
    "type": "poll",
    "message": {
        "name": "Favorite?",
        "values": [
            "A",
            "B"
        ],
        "selectableCount": 1
    },
    "instance_id": "6A4B02A1XXXX",
    "access_token": "EMCUH3NQQK8YXXXX"
}'
Response
{
    "status": "success",
    "message": "Success",
    "message_payload": {
        "key": {
            "remoteJid": "[email protected]",
            "fromMe": true,
            "id": "ABC123"
        },
        "status": "PENDING"
    }
}
ParameterDescription
number / chat_idRecipient phone number (e.g. 20100981XXXX) or chat_id (group: [email protected], channel: xxxx@newsletter)
typeMust be poll
message / templateProvide either JSON message (custom poll) or template ID (Dashboard)
instance_idYour instance ID
access_tokenYour access token

Command Palette

Search documentation endpoints.

Esc