Skip to main content
Polls are created first, then attached to poll posts when you want them to appear in a feed. The SDKs expose poll creation, voting, closing, and deletion APIs. TypeScript, iOS, and Android also expose an unvote API; the current Flutter public poll repository does not expose unvote.

Platform Surface

Parameters

Create A Poll

Create the poll first and keep the returned pollId if you need to create a poll post.

Vote And Manage A Poll

Use answer IDs from the poll object when voting. Closing and deletion use the poll ID.

Notes

  • Create a poll post separately after poll creation. Poll creation returns a poll ID; poll-post creation attaches that ID to feed content.
  • Use answerType values that match each SDK: TypeScript uses single or multiple, iOS uses .single or .multiple, Android uses AmityPoll.AnswerType, and Flutter uses AmityPollAnswerType.
  • Flutter currently exposes vote, closePoll, and deletePoll, but not an unvote method on the public poll repository.
  • Deletion and close behavior depends on server-side permissions for the current user.

Poll Posts

Attach an existing poll to a feed post

Text Posts

Create regular text posts for the same feed targets

Post Retrieval

Fetch posts that contain poll data