---
title: "Send Poll"
method: POST
path: "/message/sendPoll/{instance}"
tags: ["Message Controller"]
---

# Send Poll

`POST /message/sendPoll/{instance}`

Send Poll

## Path parameters

- `instance` string, required

## Request body

- object
  - `number` string, required — {{remoteJid}}
  - `name` string, required — Main text of the poll
  - `selectableCount` number, required — Ex: 1
  - `values` string[], required — Values for question
  - `delay` integer — Presence time in milliseconds before sending message
  - `linkPreview` boolean — Shows a preview of the target website if there's a link within the message
  - `mentionsEveryOne` boolean — Mentioned everyone when the message send
  - `mentioned` string[] — Numbers to mention
  - `quoted` object
    - `key` object
      - `id` string — Quoted message ID
    - `message` object
      - `conversation` string — Quoted message content

## Response `201`

Created

- object
  - `key` object — The key of the message, which identifies the message in the chat.
    - `remoteJid` string — The remote Jid.
    - `fromMe` boolean — Indicates whether the message was sent by the user.
    - `id` string — The ID of the message.
  - `message` object — The message content, which may include various types of messages like text, images, poll creation, etc.
    - `messageContextInfo` object — Information about the context of the message.
      - `messageSecret` string — The secret of the message context.
    - `pollCreationMessage` object — Details of the poll creation message.
      - `name` string — The name of the poll.
      - `options` object[] — The options available in the poll.
        - `optionName` string — The name of the poll option.
      - `selectableOptionsCount` integer — The number of options that can be selected in the poll.
  - `messageTimestamp` string — The timestamp of the message, represented as a string.
  - `status` string — The status of the message, such as sent, received, or pending.

## Changes

- **2024-10-29** (v2) `f4f5817334cd` — 1 warning, 5 info
  - removed the request property `options`
  - added the new optional request property `delay`
  - added the new optional request property `linkPreview`
  - added the new optional request property `mentioned`
  - …2 more
- **2024-10-21** (v2) `4b6b368ab3a0` — 3 breaking, 2 warning, 4 info
  - added the new required request property `name`
  - added the new required request property `selectableCount`
  - added the new required request property `values`
  - removed the request property `options/presence`
  - …5 more
- **2024-10-14** (v2) `c153448703e5` — 3 breaking, 6 info
  - added the new required request property `number`
  - added the new required request property `pollMessage`
  - removed the success response with the status `200`
  - api operation id `sendPoll` was added
  - …5 more
- **2024-09-09** (v2) `0c4620ca5ed5` — 1 breaking, 8 warning, 5 info
  - removed the success response with the status `201`
  - removed the request property `delay`
  - removed the request property `mentioned`
  - removed the request property `mentionsEveryOne`
  - …10 more
- **2024-06-13** (v2) `996acfdb07ce` — 3 breaking, 2 warning, 4 info
  - added the new required request property `name`
  - added the new required request property `selectableCount`
  - added the new required request property `values`
  - removed the request property `options`
  - …5 more

[Change history](https://skmtc.dev/evolution-foundation/apis/openapi/changes/message/sendPoll/:instance/post.md)

---

[API](https://skmtc.dev/evolution-foundation/apis/openapi.md) · [All operations](https://skmtc.dev/evolution-foundation/apis/openapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/evolution-foundation/openapi/revisions/153363ee7f38/schema)
