PLEXICHATNarrative Docs
Polls
Guides, route-group overviews, and live schema entry points for the Plexichat backend.
REST http://api.plexichat.com/api/v1Gateway ws://api.plexichat.com/gatewayVersion a.1.0-49
Poll Routes
Polls are message-attached interactive objects that support voting and result inspection.
Routes
POST /pollsGET /polls/{poll_id}GET /polls/{poll_id}/resultsPOST /polls/{poll_id}/votePOST /polls/{poll_id}/closeDELETE /polls/{poll_id}
Purpose
Use these routes to create polls attached to a message, cast votes, fetch aggregate results, and close or delete a poll.
Expected Rules
- poll creation is submitted to
/pollsand includes the targetmessage_idin the request body - voting permissions follow normal channel/message visibility rules
- closed polls stop accepting new votes
- result visibility may depend on poll settings and server policy
Client Guidance
- fetch poll details after vote mutations if you need authoritative totals
- handle duplicate-vote or closed-poll failures cleanly
- render poll state from server responses instead of local assumptions