Submit feedback on a conversation
API Reference
Submit Feedback
Submit or replace the rating and/or comment on the conversation’s latest answer. The feedback is stored on the answer exactly like the in-app rating, so API and in-app feedback are interchangeable. The conversation must be COMPLETED. The call is idempotent: a repeat call fully replaces prior feedback. At least one of rating or comment is required.
PUT
Submit feedback on a conversation
Submit or replace feedback — a thumbs rating and/or a free-text comment — on a conversation’s
latest answer. The feedback is stored on the answer exactly like the in-app 👍 / 👎, so
feedback left through the API and through the ClarityQ app are interchangeable and appear in the
same places.
You only pass the
conversation_id: the server resolves which answer to rate from the
conversation’s latest message. The conversation must be completed — submitting before the
answer is ready returns 409.
The call is idempotent: submitting again fully replaces the previous feedback for that
answer. Provide at least one of rating or comment; send "rating": null to clear a rating.
Example request
Example response
Authorizations
API key obtained from the ClarityQ dashboard.
Body
application/json
Response
Successful Response
The feedback stored on an answer (its metadata.rating).