---
title: "Create a new chat message in a thread"
method: POST
path: "/api/v5/ai-chat/feedbacks/"
tags: ["Ai Chat Feedbacks"]
---

# Create a new chat message in a thread

`POST /api/v5/ai-chat/feedbacks/`

## Request body

- BodyAiChatMessagesFeedbacksCreateApiV5AiChatFeedbacksPost
  - `feedback` AiChatMessageFeedbackInCreate, required
    - `aiChatMessageId` integer, required — ID of the associated chat message
    - `rating` integer, required — The message rating
    - `comment` string, required — The comment on the message

## Response `201`

Successful Response

- AiChatMessageFeedbackInResponse
  - `feedback` AiChatMessageFeedback, required
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
    - `deletedAt` string, date-time
    - `id` integer
    - `aiChatMessageId` integer, required — ID of the associated chat message
    - `rating` integer, required — The message rating
    - `comment` string, required — The comment on the message

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/pavlok/apis/pavlok-api-v5.md) · [All operations](https://skmtc.net/pavlok/apis/pavlok-api-v5/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pavlok/pavlok-api-v5/versions/3d192098b1ac/schema)
