Skip to content
POST/posts/{postId}/vote

Toggle vote on a post

Vote or unvote on a post (toggle)

Parameters

NameInTypeDescription
postIdrequiredpathstringPost ID

Response

Vote toggled

FieldTypeDescription
votedrequiredbooleanWhether the post is now voted
voteCountrequirednumberCurrent vote count

Errors

401Unauthorized
404Post not found

Example request

curl \
  -X POST \
  "https://feedback.quackback.io/api/v1/posts/:postId/vote" \
  -H "Authorization: Bearer qb_your_api_key_here"