---
title: "Submit thumbs feedback for a chat"
method: POST
path: "/api/chats/{chatId}/feedback"
tags: ["Chat"]
---

# Submit thumbs feedback for a chat

`POST /api/chats/{chatId}/feedback`

## Request

- Base URL: `https://app.cotool.ai`
- URL: `https://app.cotool.ai/api/chats/{chatId}/feedback`
- Auth: HTTP bearer

Records a thumbs up/down for a chat if the user has access to it.

## Path parameters

- `chatId` string, uuid, required

## Request body

- object
  - `agentId` string, uuid
  - `label` 'up' | 'down', required
  - `chatEventId` string, uuid
  - `comment` string

## Response `200`

Successful response - no content

## Other responses

- `400`: Bad request — input validation failed or the request was malformed
- `401`: Unauthorized — missing or invalid API key / session
- `403`: Forbidden — the authenticated user lacks the required permissions
- `500`: Internal server error

---

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