---
title: "POST /api/intent/detected"
method: POST
path: "/api/intent/detected"
tags: ["Intent"]
---

# POST /api/intent/detected

`POST /api/intent/detected`

## Request body

- ChatIntentRequestDto — Wire envelope for the future `POST /api/intent/detected` internal endpoint. Mirrors the Kafka `ChatIntentEvent` contract (zod `ChatIntentEventSchema` 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
  - `intent` ChatIntentDto — Intent classification result (label + confidence) carried by Infoset.Types.Models.InternalApi.ChatIntentRequestDto. Confidence is an integer 0–100.
    - `label` 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)
