---
title: "Returns the ticket's conversation thread ({subject, messages[]}, oldest-first) for the AI summary-service. Same shared-secret auth as the config endpoint (class-level attribute; the absolute route below only overrides the class route TEMPLATE, not the auth filter). Hard caps enforced by Infoset.Service.Hubs.Ticket.Service.ITicketThreadService: private notes excluded, last 50 logs, 2000 chars per message, 24000 chars total. A ticket that does not exist in the account — including a foreign-tenant ticket id, since every query is ACCOUNT_ID-scoped — yields 404."
method: GET
path: "/api/copilot/tickets/{ticketId}/thread"
tags: ["CopilotConfig"]
---

# Returns the ticket's conversation thread ({subject, messages\[\]}, oldest-first) for the AI summary-service. Same shared-secret auth as the config endpoint (class-level attribute; the absolute route below only overrides the class route TEMPLATE, not the auth filter). Hard caps enforced by Infoset.Service.Hubs.Ticket.Service.ITicketThreadService: private notes excluded, last 50 logs, 2000 chars per message, 24000 chars total. A ticket that does not exist in the account — including a foreign-tenant ticket id, since every query is ACCOUNT_ID-scoped — yields 404.

`GET /api/copilot/tickets/{ticketId}/thread`

## Path parameters

- `ticketId` integer, required

## Query parameters

- `accountId` integer
- `departmentId` integer

## Response `200`

OK

- TicketThreadDto — Ticket conversation thread response for `GET /api/copilot/tickets/{ticketId}/thread?accountId=`, consumed by the AI summary-service. Messages are ordered oldest-first; the first message is the ticket creation body. Ticket analog of Infoset.Types.Models.InternalApi.ConversationThreadDto.
  - `subject` string, nullable
  - `accountName` string, nullable
  - `departmentName` string, nullable
  - `messages` TicketThreadMessageDto[], nullable
    - `author` string, nullable
    - `text` string, nullable
    - `at` string, nullable

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