---
title: "Submit Message Feedback"
method: POST
path: "/messages/{message_id}/feedbacks"
tags: ["Feedback"]
---

# Submit Message Feedback

`POST /messages/{message_id}/feedbacks`

**Available for**: Chatflow, Chatbot, 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.

## Path parameters

- `message_id` string, uuid, required

## Request body

- MessageFeedbackRequest — Request body for submitting message feedback.
  - `rating` 'like' | 'dislike' | 'null', nullable — Feedback rating. Set to `null` to revoke previously submitted feedback.
  - `user` string, 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](/en/api-reference/guides/end-user-identity).
  - `content` string — Optional text feedback providing additional detail.

## Response `200`

Operation successful.

- object
  - `result` string — Operation result. Always `success`.

## Other responses

- `400` — `invalid_param` : The required `user` field is omitted, or `rating` is `null` but there is no existing feedback to revoke.
- `404` — `not_found` : Message does not exist.

---

[API](https://skmtc.net/langgenius/apis/dify-service-api.md) · [All operations](https://skmtc.net/langgenius/apis/dify-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/langgenius/dify-service-api/revisions/e49b3db72bad/schema)
