Skip to main content
POST
/
v1
/
public
/
feedback-votes.info
curl --location --request POST 'https://api.yourapp.com/v1/public/feedback-votes.info' \
--header 'Authorization: Bearer SUBSCRIBER_JWT_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
  "feedbackId": "feedback-uuid"
}'
{
  "data": {
    "count": 42,
    "feedbackId": "feedback-uuid",
    "hasVoted": true,
    "voteId": "vote-uuid"
  }
}

Authentication

Authorization: Bearer YOUR_API_KEY
For checking user’s vote status, use subscriber JWT token:
Authorization: Bearer SUBSCRIBER_JWT_TOKEN

Request Body

feedbackId
string
required
The feedback ID to get vote information for

Response

data
object
Vote information
curl --location --request POST 'https://api.yourapp.com/v1/public/feedback-votes.info' \
--header 'Authorization: Bearer SUBSCRIBER_JWT_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
  "feedbackId": "feedback-uuid"
}'
{
  "data": {
    "count": 42,
    "feedbackId": "feedback-uuid",
    "hasVoted": true,
    "voteId": "vote-uuid"
  }
}

Use Cases

  • Display Vote Count: Show number of votes on feedback
  • Vote Button State: Determine if vote button should be active/inactive
  • User Engagement: Track which feedback user has voted on

Notes

  • hasVoted and voteId only populated with subscriber authentication
  • Vote count always returned regardless of authentication
  • One vote per subscriber per feedback