Feedback

Submit Message Feedback

Changed on

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.

post/messages/{message_id}/feedbacks

Request

  • Base URL
    https://api.dify.ai/v1
  • URL
    https://api.dify.ai/v1/messages/{message_id}/feedbacks
  • Auth
    HTTP bearer

Path parameters

message_idstring uuid required

ID of the message to give feedback on. Get message IDs from List Conversation Messages.

Request body

contentstring

Optional text feedback providing additional detail.

rating'like' | 'dislike' | 'null' nullable

Feedback rating. Set to null to revoke previously submitted feedback.

userstring required

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.

Response

Operation successful.

resultstring

Operation result. Always success.

Changes

    • breaking

      for the path request parameter message_id, the format changed from no format to uuid

    • info

      added the non-success response with the status