Skip to main content
Retrieve a poll

Authorizations

Authorization
string
header
required

A Tightknit admin API key, sent as Authorization: Bearer <key>.

Path Parameters

poll_id
string
required

The poll's id.

Pattern: ^poll_[a-zA-Z0-9]{12}$

Query Parameters

expand

Repeatable. Returns the named relation inline. One of: created_by, updated_by, slack_channel.

Available options:
created_by,
updated_by,
slack_channel

Response

Success

object
enum<string>
required

Always poll.

Available options:
poll
id
string
required

Unique identifier for the object.

Example:

"poll_6r4t8y2u1iop"

created_at
string<date-time>
required

When the poll was created. A scheduled poll is created before it reaches Slack, so this is not when it was posted.

updated_at
string<date-time>
required

When the poll was last edited, closed, reopened or published. Votes do not move it.

question
string | null
required

What the poll asks.

Example:

"Which day suits the next meetup?"

description
string | null
required

Extra context shown under the question. Null for none.

allow_multiple_responses
boolean | null
required

Whether a member may choose several options, rather than their pick replacing the last one.

options
object[]
required

The options a member chooses between, in the order the poll shows them.

status
enum<string>
required

Whether the poll takes votes. One of:

  • open: posted and taking votes.
  • closed: no longer taking votes.
  • scheduled: waiting for scheduled_at to be posted.
Available options:
open,
closed,
scheduled
Example:

"open"

closed_at
string<date-time> | null
required

When the poll was closed. Reopening clears it, so it never describes an earlier close.

scheduled_at
string<date-time> | null
required

When a scheduled poll is due to post. It is kept once the poll publishes, so it reads as history rather than as something still pending.

results_visibility
enum<string>
required

Who may see the tally, and when. Fixed when the poll is created. One of:

  • public: everyone, at any time.
  • hidden: only whoever created the poll.
  • shown_when_closed: everyone once the poll closes, and only its creator before.
Available options:
public,
hidden,
shown_when_closed
voter_identity_visibility
enum<string>
required

Whether voters are named with their answers. Fixed when the poll is created. One of:

  • public: voters are named to everyone who sees the results.
  • anonymous: voters are hidden from everyone.
  • confidential: voters are named only to whoever created the poll.
Available options:
public,
anonymous,
confidential
results_visible
boolean
required

Whether this key may see the tally. False leaves votes_count and responses_count null. An API key counts as nobody, so a poll that only shows its results to its creator withholds them here.

responses_count
integer | null
required

How many responses the poll holds. A poll allowing several answers counts each one, so this is votes rather than voters. Null when results_visible is false.

Required range: x >= 0
created_by_id
string | null
required

The id of the profile that created the poll. Null when no member is recorded as its creator.

Example:

"prof_9f2b8c1d4e5a"

updated_by_id
string | null
required

The id of the profile that last changed the poll. Null until it is first changed, or when no member is recorded.

integrations
object
required

The poll's settings in connected platforms.

created_by
object | null

The profile that created the poll. Present only when created_by is expanded.

updated_by
object | null

The profile that last changed the poll. Present only when updated_by is expanded.