POST
/messages/{message_id}/feedbacksSubmit Message Feedback
Available for: Chatflow, Chatbot, Legacy Agent, Text Generator apps.
Records a like or dislike rating, plus an optional comment, on a message. Submitting null for rating revokes the message's existing feedback.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
message_idstringrequired
ID of the message to give feedback on. Get message IDs from [List Conversation Messages](/en/api-reference/conversations/list-conversation-messages).
contentstringoptional
Optional text feedback providing additional detail.
ratingstringoptional
Feedback rating. Set to `null` to revoke previously submitted feedback.
userstringrequired
End-user identifier, defined by your app and unique within it. Must match the `user` that received the message, since feedback is scoped to that end user. See [End User Identity](/en/api-reference/guides/end-user-identity).
200Operation successful.
resultstringoptional
Operation result. Always `success`.
400`invalid_param` : The required `user` field is omitted, or `rating` is `null` but there is no existing feedback to revoke.
One documented failure
invalid_paramArg user must be provided.
invalid_param
404`not_found` : Message does not exist.
One documented failure
not_foundMessage Not Exists.
not_found
Error handling
A 400 is returned: invalid_param : The required user field is omitted, or rating is null but there is no existing feedback to revoke. A 404 is returned: not_found : Message does not exist.