About the Ricos Polls API

Ricos is Wix's rich content format. Wix Blog, Wix Forum, Wix Comments, and other apps use it to store formatted content, such as text, images, and polls. The Ricos Polls API manages the polls that are embedded in Ricos rich content, and the votes cast on them.

With the Ricos Polls API, you can:

  • Create, retrieve, update, and delete polls.
  • Retrieve a poll together with its voting results.
  • Cast and remove the caller's votes.
  • List the site members who voted for a poll option.

The main client of the Ricos Polls API is the Ricos poll plugin. When a Wix user adds a poll to rich content, the plugin displays it, creates the poll when the content is published, and lets visitors vote, all through this API. In most cases, you don't need to call the API yourself, because the plugin in the Ricos editor and viewer does it for you.

You can also call the API without the plugin, for example to create or display polls in your own UI. In that case, you're responsible for connecting each poll to its POLL node in the Ricos document. For details about the node and the properties it needs, see the Ricos Document reference.

Poll lifecycle

A poll is displayed on a site only when rich content references it. In the rich content, a poll is a node of type POLL, and the poll's ID is in the node's pollData.poll.id field. To find a poll in a Ricos document, look for nodes of type POLL, and specify pollData.poll.id in Get Poll.

  • The Ricos editor's poll plugin creates a poll when content that contains the poll is published, and stores the poll ID in the poll node.
  • A poll that you create with Create Poll isn't displayed anywhere until you add a poll node with its ID to the rich content. A node without a poll ID, or with the ID of a poll that doesn't exist, can't load a poll.
  • Deleting content doesn't delete its polls.
  • Deleting a poll with Delete Poll doesn't remove the poll node from the content, and the poll widget can't load the deleted poll.
  • When a site is duplicated, its polls are copied with the same IDs, without votes. createdBy of the copied polls is the new site owner.

For more information about rich content and its nodes, see the Rich Content documentation.

Results and voters

The poll's settings control what the poll widget shows to site visitors:

  • resultsVisibility controls who sees results. When the caller isn't allowed to see the results, results is omitted from the response without an error.
  • showVoteCounts controls whether vote counts are returned. percentage is returned either way.
  • showVoters controls whether voters are listed. Voters are listed only when showVoteCounts is also true.
  • votingAccess controls who can vote. If it's MEMBERS, site visitors who aren't logged in must log in as site members to vote.
resultsVisibility valueWho sees the results
PUBLICEveryone.
VOTERSCallers who voted, and the poll's creator.
CREATOROnly the poll's creator.

A Wix user who isn't the poll's creator sees results only when the visibility is PUBLIC, or VOTERS after voting.

To retrieve the voting results, specify RESULTS in fields. To find out which options the caller voted for, specify CURRENT_VOTER_VOTES in fields. currentVoterOptionIds is returned regardless of resultsVisibility. Cast Vote and Remove Vote return it, together with the updated results, instead of the full poll.

Votes of site visitors who weren't logged in are counted, but their identities aren't listed. Wix users vote with their own identity, and their votes are listed with their member or Wix user ID.

Before you begin

It's important to note the following points before starting to code:

  • Apps and Wix back-office users can't call any method. Site visitors, site members, and Wix users can call all methods.
  • Only the poll's creator can update or delete the poll. A site visitor stays the poll's creator only for as long as their visitor identity lasts, so a visitor who logs out or clears cookies can no longer update or delete the poll. To remove a poll that someone else created, delete the content that contains it.
  • A POLL node is displayed only when the poll plugin is enabled in the Ricos editor and viewer that render the content.
  • To set a poll or option image, send the image's Wix Media url (static.wixstatic.com) from the site's Media Manager.
  • The text and image of an option that already received votes can't be changed. You can still add, remove, and reorder options. Removing an option also removes its votes.

Use cases

Terminology

  • Ricos: Wix's rich content format.
  • Poll: A question with a set of options to vote on.
  • Option: One of the answers that voters can choose.
  • Voter: A site member, a Wix user, or a site visitor who voted in a poll.

Last updated: 27 November 2026

Did this help?