Conversations
Submit User Quality Feedback on Agent Response
POST
/api/conversations/{conversation_id}/messages/{message_id}/feedbackOverview
Records user rating (thumbs up / thumbs down) and qualitative comments for RLHF and observability benchmarking.
Authentication & Headers
- Auth: Bearer Token
- Required Header:
API-Version: 1
Parameters & Request Body Fields
conversation_id(path, string, required): UUID of the conversation session.message_id(path, string, required): UUID of the assistant message being rated.rating(integer, required): 1 for thumbs up, -1 for thumbs down.comment(string, optional): Detailed feedback notes.
Parameters
Path
conversation_idstringrequiredUnique UUID of the conversation session / thread.
message_idstringrequiredUnique UUID of the specific message within the conversation.
Request body
application/json
is_positivebooleanrequiredcommentstring | null{
"is_positive": true,
"comment": "string"
} Responses
200 Feedback recorded
400 Bad Request - The request parameters or headers are invalid (e.g. unsupported API-Version).
401 Unauthorized - Missing, invalid, or expired JWT Bearer token.
403 Forbidden - Insufficient role permissions or resource access denied by RBAC policy.
404 Not Found - The requested resource ID was not found.
422 Validation Error
detailobject[]detail[].locstring | integer[]requireddetail[].msgstringrequireddetail[].typestringrequireddetail[].inputobjectdetail[].ctxobject{
"detail": [
{
"loc": [
null
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Example
curl -X POST "$PINTER_URL/api/conversations/018f3a55-234b-76b9-b8d1-561b34e2a101/messages/msg_018f3a55234b/feedback" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"is_positive":true,"comment":"string"}'