---
title: "Anonymous Vote"
method: POST
path: "/userportal/votes/anonymous"
tags: ["userportal-public"]
---

# Anonymous Vote

`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

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.

## Query parameters

- `access` string, nullable: Access token for token-protected roadmaps

## Headers

- `F1-Product` string

## Request body

- AnonymousVoteRequest: Request schema for anonymous voting on a feature.
  - `feature_id` integer, required: Feature pub_id to vote on
  - `anonymous_id` string, nullable: Anonymous user KSUID from cookie (f1_anon_id)
  - `turnstile_token` string, nullable: Cloudflare Turnstile verification token
  - `comment` string, nullable: Optional comment with the vote
  - `subscribe` boolean: Subscribe to feature updates to receive notifications when feature becomes available

## Response `200`

Successful Response

- AnonymousVoteResponse: Response schema for anonymous voting.
  - `success` boolean, required: Whether the vote was recorded
  - `anonymous_id` string, required: Anonymous user KSUID (store in cookie)
  - `feature_id` integer, required: Feature pub_id that was voted on
  - `votes_count` integer, required: Updated vote count for the feature
  - `user_voted` boolean, required: Whether the user has voted for this feature
  - `message` string, nullable: Optional message (e.g., 'Vote removed')

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/feedback1/apis/feedback1-public-api.md) · [All operations](https://skmtc.dev/feedback1/apis/feedback1-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/feedback1/apis/feedback1-public-api/revisions/e7626420f622?raw)
