---
title: "POST /api/sentiment/detected"
method: POST
path: "/api/sentiment/detected"
tags: ["Sentiment"]
---

# POST /api/sentiment/detected

`POST /api/sentiment/detected`

## Request body

- ChatSentimentRequestDto — Wire envelope for the future `POST /api/sentiment/detected` internal endpoint. Mirrors the Kafka `ChatSentimentEvent` contract (zod `ChatSentimentEventSchema` in the infoset-ai-intent repo); JSON is camelCase.
  - `correlationId` string, nullable
  - `accountId` integer
  - `roomId` integer
  - `chatId` integer, nullable
  - `contactId` integer, nullable
  - `messageId` string, nullable
  - `sentiment` ChatSentimentDto — Sentiment classification result (category + confidence) carried by Infoset.Types.Models.InternalApi.ChatSentimentRequestDto. Confidence is an integer 0–100.
    - `category` string, nullable
    - `confidence` integer
  - `detectedAt` string, nullable

## Response `204`

No Content

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found

---

[API](https://skmtc.dev/infoset/apis/infoset-rest-api.md) · [All operations](https://skmtc.dev/infoset/apis/infoset-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infoset/infoset-rest-api/revisions/f5bc39a1ac15/schema)
