---
title: "List chats"
method: GET
path: "/v1/chat"
tags: ["Chat"]
---

# List chats

`GET /v1/chat`

Returns a paginated list of chats for the authenticated project.

## Query parameters

- `limit` integer — Maximum number of chats to return (default: 20, max: 100)
- `after` string — Cursor for pagination - use the nextCursor value from a previous response
- `sortBy` 'createdAt' | 'startTimestamp' | 'endTimestamp' | 'duration' | 'title' — Field to sort by (default: createdAt)
- `sortDirection` 'asc' | 'desc' — Sort direction (default: desc)
- `searchText` string — Search text to filter chats by id, title, summary, message text, or note content
- `simulationRunPlanJobId` string, uuid — Filter by simulation run plan job ID to get all chats from a specific simulation batch

## Response `200`

List of chats

- object
  - `data` object[], required
    - `id` string, uuid, required — Unique identifier for the chat
    - `projectId` string, uuid, required — ID of the project this chat belongs to
    - `organizationId` string, uuid, required — ID of the organization this chat belongs to
    - `title` string, nullable — Auto-generated title for the chat based on content
    - `summary` string, nullable — Auto-generated summary of the chat conversation
    - `startTimestamp` string, required — Timestamp when the chat started
    - `endTimestamp` string, required — Timestamp when the chat ended
    - `durationMs` number, required — Duration of the chat in milliseconds
    - `createdAt` string, nullable — Timestamp when the chat record was created
    - `updatedAt` string, nullable — Timestamp when the chat record was last updated
    - `simulationJobId` string, uuid, nullable — ID of the simulation job if this chat was generated by a simulation
    - `simulationRunPlanJobId` string, uuid, nullable — ID of the simulation run plan job that this chat belongs to (if applicable)
    - `agents` object[], nullable — Agent information
      - `id` string, uuid, required
    - `customers` object[], nullable — Customer information
      - `phoneNumberE164` string, nullable
      - `label` string, nullable
    - `properties` object, nullable — Custom properties associated with the chat
    - `policyIds` string[], nullable — IDs of metric policies that have been applied to this chat
    - `externalId` string, nullable — Caller-supplied correlation ID echoed back from the create request, if any was provided
  - `pagination` object, required
    - `total` number, required — Total number of items
    - `hasMore` boolean, required — Whether there are more items to fetch
    - `nextCursor` string, nullable, required — Cursor for the next page of items

## Other responses

- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.dev/roarkhq/apis/roark-analytics-api.md) · [All operations](https://skmtc.dev/roarkhq/apis/roark-analytics-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/roarkhq/roark-analytics-api/revisions/1d61b68e9429/schema)
