ZapGate icon

ZapGate

Interaja com a API ZapGate — WhatsApp gateway self-hosted

Actions1511

Histórico → Enviar Enquete

AI-generated

Summary

Create and send a poll to a recipient

Inputs

  • to (required) — Phone number or JID of the recipient (required).
  • name (required) — Question text of the poll.
  • pollOptions (required) — Poll options, one per line (e.g., "Option A|1\nOption B|2").

Output shape

a single JSON object representing the created poll message

The response contains the poll ID and status; on failure the error is thrown unless continueOnFail is enabled.

Examples

Example 1: Send a poll to a group chat

resource = Histórico, operation = Enviar Enquete; set 'to' to group JID, 'name' to question, 'pollOptions' to options separated by newlines.

Example 2: Send a poll to an individual contact

resource = Histórico, operation = Enviar Enquete; configure 'to' with phone number, provide question and options.

Links

Discussion