Skip to main content
POST
/
backend
/
chat
/
vote
/
:message_id
url -X 'POST' \
  'https://api-v2.opencopilot.so/backend/chat/vote/:message_id' \
  -H 'accept: application/json' \
  -H 'X-Bot-Token: token'
{
  "message": "Vote counted successfully"
}
This endpoint allows you to upvote or downvote an AI response. It is used to calculate the quality of the AI response and to provide feedback on the AI response. If the message has already been voted on, it will be downvoted and the other way around.

Body

message_id
integer
The ID of the message to vote on

Headers

header
string
application/json
header
string
The bot token (to not be confused with the Auth token or the copilot/organization ID) — you can get this from the dashboard -> settings -> Token

Response

message
string
Indicates whether the call was successful.
url -X 'POST' \
  'https://api-v2.opencopilot.so/backend/chat/vote/:message_id' \
  -H 'accept: application/json' \
  -H 'X-Bot-Token: token'
{
  "message": "Vote counted successfully"
}