Record Vote
Endpoints
Record Vote
Record a vote (upvote or downvote) on a question
POST
Record Vote
Record a user’s vote on a specific question. Multiple votes can be submitted for the same question, with each new vote overwriting the previous one. Downvotes can include optional feedback.Documentation Index
Fetch the complete documentation index at: https://docs.gurubase.ai/llms.txt
Use this file to discover all available pages before exploring further.
Important: Feedback (votes) can only be given for normal answers. Simple interactions and clarifications cannot receive votes. Attempting to vote on these question types will return a 400 error. You can check whether a question can receive feedback by checking the
can_receive_feedback field returned by the Ask Question endpoint.Path Parameters
The type/slug of the Guru
Headers
Your API key for authentication. You can obtain your API key from the Gurubase dashboard.
Body Parameters
The slug identifier of the question to vote on
Optional binge session identifier. Can be None
The type of vote to record. Must be either “upvote” or “downvote”
Optional feedback text for downvotes. Maximum 200 characters
Response
The recorded vote type (“upvote” or “downvote”)
The feedback provided with the vote (if any)
Error message or status message
Notes
- Multiple votes can be submitted for the same question. Each new vote overwrites the previous vote.
- Feedback (votes) can only be given for normal answers. Simple interactions and clarifications cannot receive votes.
- Feedback is optional but limited to 200 characters
- The
binge_idparameter can be null, empty string, or “None” and will be treated as null - Only “upvote” and “downvote” are valid vote types