Skip to main content
POST
Vote on message

Authorizations

Authorization
string
header
required

Session token (snat_…) minted by POST /v1/token. Carries the organization and the end user; safe in a browser.

Body

application/json
messageId
string
required

The ID of the message to vote on

Example:

"msg_9c41b0e7"

user_rating
enum<string>
required

The rating: -1 (thumbs down), 0 (neutral), 1 (thumbs up)

Available options:
-1,
0,
1
user_comment
string

Optional comment about the rating

Example:

"Answered the wrong order"

Response

Vote recorded successfully

success
boolean
message
string
data
object