---
title: "POST /api/customer-context/detected"
method: POST
path: "/api/customer-context/detected"
tags: ["CustomerContext"]
---

# POST /api/customer-context/detected

`POST /api/customer-context/detected`

## Request body

- ChatCustomerContextRequestDto — Wire envelope for the `POST /api/customer-context/detected` internal endpoint. Mirrors the Kafka `ChatCustomerContextEvent` contract (zod `ChatCustomerContextEventSchema` in the infoset-ai-customer-context repo); JSON is camelCase.
  - `correlationId` string, nullable
  - `accountId` integer
  - `roomId` integer
  - `chatId` integer, nullable
  - `contactId` integer, nullable
  - `messageId` string, nullable
  - `context` CustomerContextPayloadDto — Generated customer context (summary + recommendation) carried by Infoset.Types.Models.InternalApi.ChatCustomerContextRequestDto.
    - `summary` string, nullable
    - `recommendation` string, nullable
  - `generatedAt` 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)
