userportal-public

Anonymous Vote

Cast an anonymous vote on a feature.

This endpoint allows users to vote without logging in. Requires Turnstile verification (unless disabled in dev mode). Uses a cookie-based anonymous_id (KSUID) to prevent duplicate votes.

The anonymous_id should be stored in a cookie (f1_anon_id) by the frontend. If not provided, a new one will be generated and returned.

post/userportal/votes/anonymous

Request

  • Base URL: https://api.feedback1.ai/api/v1
  • URL: https://api.feedback1.ai/api/v1/userportal/votes/anonymous
  • Auth: none declared

Query parameters

accessstring nullable

Access token for token-protected roadmaps

Headers

F1-Productstring

Request body

feature_idinteger required

Feature pub_id to vote on

anonymous_idstring nullable

Anonymous user KSUID from cookie (f1_anon_id)

turnstile_tokenstring nullable

Cloudflare Turnstile verification token

commentstring nullable

Optional comment with the vote

subscribeboolean

Subscribe to feature updates to receive notifications when feature becomes available

Example request

{
  "anonymous_id": "2bk8sjc6g1l2k1q",
  "comment": "This would be really useful!",
  "feature_id": 123,
  "subscribe": true,
  "turnstile_token": "0.ABC123..."
}

Response

Successful Response

successboolean required

Whether the vote was recorded

anonymous_idstring required

Anonymous user KSUID (store in cookie)

feature_idinteger required

Feature pub_id that was voted on

votes_countinteger required

Updated vote count for the feature

user_votedboolean required

Whether the user has voted for this feature

messagestring nullable

Optional message (e.g., 'Vote removed')

Example response

{
  "anonymous_id": "2bk8sjc6g1l2k1q",
  "feature_id": 123,
  "success": true,
  "user_voted": true,
  "votes_count": 42
}

Changes

No recorded changes to this operation across all 1 revision of this API.