cURL
curl --request POST \ --url https://yppncslmsswqydhhgygz.supabase.co/functions/v1/get-post-votes \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "post_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }'
{ "success": true, "upvotes": 123, "downvotes": 123, "user_vote": "upvote" }
Get the authenticated user’s votes on multiple posts. Useful for showing vote status on feed items.
JWT token or API key
Successful response
upvote
downvote