---
title: "GET /api/customer-context/rooms/{roomId}/aggregate"
method: GET
path: "/api/customer-context/rooms/{roomId}/aggregate"
tags: ["CustomerContext"]
---

# GET /api/customer-context/rooms/{roomId}/aggregate

`GET /api/customer-context/rooms/{roomId}/aggregate`

## Path parameters

- `roomId` integer, required

## Query parameters

- `accountId` integer
- `departmentId` integer

## Response `200`

OK

- CustomerContextAggregateDto — Aggregated customer-context response assembled by the Infoset API for the AI customer-context service. JSON is camelCase, consumed by the AI-side schema.
  - `hasContact` boolean
  - `accountId` integer
  - `roomId` integer
  - `contactId` integer, nullable
  - `profile` ProfileDto — Contact profile facts. Plan was dropped from scope.
    - `tenureMonths` integer, nullable
  - `openTicketCount` integer
  - `openTickets` OpenTicketDto[], nullable
    - `subject` string, nullable
    - `ageDays` integer
  - `lastTicket` TicketBriefDto — Brief summary of the most recent ticket, including its status.
    - `subject` string, nullable
    - `ageDays` integer
    - `status` string, nullable
  - `longOpenTicket` LongOpenTicketDto — The longest-open ticket, with its subject and age in days.
    - `subject` string, nullable
    - `ageDays` integer
  - `intentHistory` IntentFreqDto[], nullable
    - `label` string, nullable
    - `count` integer
  - `tone` ToneDto — The contact's recent tone, with the age of the observation in days.
    - `category` string, nullable
    - `ageDays` integer

## Other responses

- `401` — Unauthorized

---

[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)
