---
title: "List chats"
method: GET
path: "/ai/chats/list"
tags: ["AI - Chats"]
---

# List chats

`GET /ai/chats/list`

List all chat sessions

## Query parameters

- `agentUuid` string, uuid — Filter chats by agent identifier.
- `releaseUuid` string, uuid — Filter chats by release identifier.
- `userUuid` string, uuid — Filter chats by user identifier.
- `triggerType` 'connector' | 'draft' | 'web_extension' | 'app' | 'workflow' — Filter chats by trigger type.
- `messageStatuses` string[] — Filter chats by their last message status.
- `name` string — Filter chats by name (partial match).
- `createdAfter` string — Filter chats created after this ISO date.
- `createdBefore` string — Filter chats created before this ISO date.
- `limit` string — Maximum number of chats to return.
- `offset` string — Number of chats to skip.

## Response `200`

Successful response

- object
  - `chats` object[], required — List of chats.
    - `uuid` string, required
    - `slug` string, required
    - `workspaceUuid` string, required
    - `userUuid` string, nullable, required
    - `agentUuid` string, nullable, required
    - `releaseUuid` string, nullable, required
    - `name` string, nullable, required
    - `trigger` unknown, required
    - `heartbeat` object, nullable, required
      - `intervalMinutes` integer, required
      - `maxMessages` integer, required
      - `prompt` string, nullable, required
    - `evaluator` object, nullable, required
      - `rubric` string, required
      - `threshold` number, required
    - `activeStreamUuid` string, nullable, required
    - `creditsUsedCount` number, required
    - `createdAt` string, required
    - `updatedAt` string, required
    - `deletedAt` string, nullable, required
    - `lastMessage` object, nullable, required
      - `uuid` string, required
      - `workspaceUuid` string, required
      - `agentUuid` string, nullable, required
      - `releaseUuid` string, nullable, required
      - `chatUuid` string, required
      - `userUuid` string, nullable, required
      - `status` 'pending' | 'generating' | 'success' | 'error' | 'cancelling' | 'cancelled', required
      - `errorMessage` string, nullable, required
      - `type` 'user' | 'assistant', required
      - `createdAt` string, required
      - `updatedAt` string, required
      - `finishedAt` string, nullable, required
      - `deletedAt` string, nullable, required

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Not found
- `500` — Internal server error

---

[API](https://skmtc.net/getcargo/apis/cargo-api.md) · [All operations](https://skmtc.net/getcargo/apis/cargo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getcargo/cargo-api/revisions/1d5a19e01d83/schema)
