---
title: "Create a poll"
method: POST
path: "/meetings/{meeting_id}/active-session/poll"
tags: ["Active session"]
---

# Create a poll

`POST /meetings/{meeting_id}/active-session/poll`

Creates a new poll in an active session for the given meeting ID.

## Path parameters

- `meeting_id` string, required

## Request body

- object
  - `question` string — Question of the poll
  - `options` string[] — Different options for the question
  - `anonymous` boolean — if voters on a poll are anonymous
  - `hide_votes` boolean — if votes on an option are visible before a person votes

## Response `201`

response for creating a poll

- object
  - `success` boolean
  - `data` object
    - `action` string
    - `poll` Poll
      - `id` string, required — ID of the poll
      - `question` string, required — Question asked by the poll
      - `options` object[], required — Answer options
        - `text` string, required — Text of the answer option
        - `count` number, required
        - `votes` object[], required
          - `id` string, required
          - `name` string, required
      - `anonymous` boolean
      - `hide_votes` boolean
      - `created_by` string
      - `voted` string[]

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/dyte-io/apis/dyte-rest-apis.md) · [All operations](https://skmtc.net/dyte-io/apis/dyte-rest-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dyte-io/dyte-rest-apis/revisions/f62d3edd92ae/schema)
