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
Example request
{
"anonymous_id": "2bk8sjc6g1l2k1q",
"comment": "This would be really useful!",
"feature_id": 123,
"subscribe": true,
"turnstile_token": "0.ABC123..."
}Response
Successful Response
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.