Skip to main content
POST
/
get-livestream-votes
Get livestream vote counts
curl --request POST \
  --url https://yppncslmsswqydhhgygz.supabase.co/functions/v1/get-livestream-votes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "livestream_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
  "success": true,
  "upvotes": 123,
  "downvotes": 123
}

Authorizations

Authorization
string
header
required

JWT token or API key

Body

application/json
livestream_id
string<uuid>
required

Response

Successful response

success
boolean
required
upvotes
number
required
downvotes
number
required