---
title: "Submit Chat Feedback"
method: POST
path: "/api/v1/chat/feedback"
tags: ["chat"]
---

# Submit Chat Feedback

`POST /api/v1/chat/feedback`

Receives and processes feedback for a specific chat message via the ChatService.

Args:
    request: The feedback request data.
    chat_service: The ChatService instance (dependency).

Returns:
    A confirmation response.

Raises:
    HTTPException: 400 if saving feedback fails (e.g., invalid data).
    HTTPException: 500 for unexpected errors.

## Request body

- ChatFeedbackRequest — Schema for chat feedback requests.
  - `message_id` string, required — The ID of the message being rated.
  - `feedback_type` 'positive' | 'negative', required — Type of feedback ('positive' or 'negative').
  - `feedback_text` string, nullable — Optional free text feedback.
  - `project_id` string, nullable — Optional project ID.

## Response `200`

Successful Response

- ChatFeedbackResponse — Schema for chat feedback responses.
  - `status` string
  - `message` string

## Other responses

- `422` — Validation Error

---

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