---
title: Submit Chat Feedback
protocol: rest
method: POST
endpoint: /v1/projects/{projectId}/chat/feedback/{messageId}
description: "Submit thumbs up/down feedback on an AI assistant answer."
---

# Submit Chat Feedback

Record visitor feedback on a specific AI assistant answer. Feedback feeds the AI insights dashboard and helps identify low-quality answers and documentation gaps.

<Endpoint method="POST" path="/v1/projects/{projectId}/chat/feedback/{messageId}" />

## Path Parameters

<ParamField path="projectId" type="string" required>
  The project ID.
</ParamField>

<ParamField path="messageId" type="string" required>
  The ID of the assistant message being rated (provided in the chat stream's final event).
</ParamField>

## Request Body

<ParamField body="feedback" type="string" required>
  Either `thumbs_up` or `thumbs_down`.
</ParamField>

## Example

```bash
curl -X POST https://api.syntext.dev/v1/projects/prj_abc123/chat/feedback/msg_456 \
  -H "Content-Type: application/json" \
  -d '{ "feedback": "thumbs_down" }'
```

### Response

```json
{ "ok": true }
```
