đī¸ CreatorContent.net
U
User
!
-
!
-
Manage Subscription
Manage Tokens
Storage
Media Library â
Documentation
User Dashboard
Podcasts
Podcasts
Episodes
Transcriptions
Contributors
Studio
Public Profile
Public Profiles
Blog
Event Lists
Surveys
Contact Forms
Subscribers
Notifications & Shoutouts
Development
React Test
Media Library
Help Center
Admin Dashboard
Logout
Back to Documentation
Polls
Polls
File: 12-polls.md
Documentation Index
Loading documentation...
# Polls ## Overview Create public or dashboard-only polls with options and responses. Supports multiple vote policies. ## Features - Poll CRUD, options management - Public voting endpoints - Results endpoints ## Data Model - `Poll` â user_id, question, slug, is_public, allows_multiple_votes - `PollOption` â poll_id, option_text, order, votes_count - `PollResponse` â poll_id, poll_option_id, user_id (nullable) ## Key API Endpoints - Public: `/api/public/polls/{poll}/results`, `/api/public/polls/{poll}/check-vote`, `/api/public/polls/{poll}/vote` - Dashboard: `/api/polls` (CRUD, results, vote) ## Usage Examples ```javascript // Create poll const poll = await apiPost('/api/polls', { question: 'Favorite track?', slug: 'fav-track' }); // Add option await apiPost(`/api/dashboard/polls/${pollId}/options`, { option_text: 'Track A' }); // Vote (public) await apiPost(`/api/public/polls/${pollSlug}/vote`, { option_id }); ``` ## Tips - For public polls, ensure slug is unique and `is_public` is true - Use results endpoint to render charts
0
đ Page Notes
+ Add New
Add New Note
Type
âšī¸ Info
đ Bug
⨠Feature Request
đĄ Improvement
â Missing Feature
đ¨ Design Changes
Title (optional)
Note Content
đ Add Note