curl --location --request POST 'https://api.yourapp.com/v1/public/topic-votes.info' \ --header 'Authorization: Bearer SUBSCRIBER_JWT_TOKEN' \ --header 'Content-Type: application/json' \ --data-raw '{ "id": "topic-uuid-123" }'
{ "data": { "count": 156, "isSubscriberVoted": true } }
Get vote count and subscriber’s vote status for a topic.
# Optional subscriber authentication to check vote status Authorization: Bearer YOUR_API_KEY # Or: Authorization: Bearer SUBSCRIBER_JWT_TOKEN
Show properties
isSubscriberVoted: false
Was this page helpful?