---
title: "Set Feedback"
method: POST
path: "/api/chats/{chat_id}/messages/{message_id}/feedback"
tags: ["chats"]
---

# Set Feedback

`POST /api/chats/{chat_id}/messages/{message_id}/feedback`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/api/chats/{chat_id}/messages/{message_id}/feedback`
- Auth: none declared

Upsert a thumbs-up/down vote. Sending the same vote again removes it.

TOS-2165: a downvote carrying a ``reason`` also schedules an immediate
refactor evaluation for the answering agent instead of waiting on the batch
gate. It runs as a background task so the model call never sits inside the
user's click, and on its own session so a failure cannot roll back the vote.

## Path parameters

- `chat_id` string, uuid, required
- `message_id` string, uuid, required

## Headers

- `x-impersonate-identity-id` string, nullable

## Request body

- FeedbackRequest
  - `vote` string, required
  - `reason` string, nullable

## Response `200`

Successful Response

- FeedbackResponse
  - `vote` string, nullable
  - `reason` string, nullable
  - `evaluation_queued` boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/thinqos/apis/thinqos-api.md) · [All operations](https://skmtc.dev/thinqos/apis/thinqos-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thinqos/apis/thinqos-api/revisions/5fdd1072e877?raw)
