Skip to main content
POST
/
get-votes
Get vote counts and aggregates
curl --request POST \
  --url https://yppncslmsswqydhhgygz.supabase.co/functions/v1/get-votes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "content_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "content_type": "token",
  "limit": 20,
  "offset": 0
}'
{
  "success": true,
  "votes": [
    "<any>"
  ]
}

Authorizations

Authorization
string
header
required

JWT token or API key

Body

application/json
content_id
string<uuid>
required
content_type
enum<string>
required
Available options:
token,
post,
livestream
limit
integer
default:20
Required range: 1 <= x <= 100
offset
integer
default:0
Required range: x >= 0

Response

Successful response

success
boolean
required
votes
(any | null)[]
required