cURL
curl --request POST \ --url https://yppncslmsswqydhhgygz.supabase.co/functions/v1/get-poll \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "poll_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }'
{ "success": true, "poll": "<any>" }
Get poll details including options, vote counts, and user’s vote if authenticated.
JWT token or API key
Successful response