The Votes API lets visitors and members express feedback on comments by casting upvotes and downvotes.
With the Votes API, you can:
Use the Comments API to retrieve the comments displayed alongside your voting controls.
A vote belongs to the identity that cast it. Casting the opposite vote changes the existing vote's type. Repeating the same vote doesn't undo it; the request can still update the record and emit a vote event. Use Remove Vote to clear a vote.
Keep the vote ID returned in vote.voteId separately from the comment ID. Removing a vote requires the vote ID. A visitor and a signed-in member are distinct identities; don't assume votes transfer on sign-in.
It's important to note the following points before starting to code:
contextData.appDefId and contextData.contextId for the comment's app and context. Include contextData.contextType when the integration uses a context type. Use the same context across vote operations.resourceId is the comment ID, and resourceFqdn is wix.comments.v2.comment. Don't substitute the containing post ID for the comment ID.createdBy.identityType: ANONYMOUS in responses. This describes a visitor identity, not an unauthenticated request.Last updated: 10 September 2026