---
title: "Retrieve user chats"
method: GET
path: "/chat"
---

# Retrieve user chats

`GET /chat`

## Query parameters

- `limit` integer
- `start_after` integer
- `collection_id` string
- `agent_id` string
- `include_empty` boolean

## Response `200`

A list of chats.

- object
  - `ok` boolean
  - `chats` Chat[]
    - `id` string, required
    - `userId` string, required
    - `createdAt` integer
    - `updatedAt` integer
    - `agentId` string
    - `collectionId` string
    - `status` string
    - `current` object[]
    - `auto` object
    - `tools` Tool[]
      - `id` string
      - `checked` boolean — Set to true if you want to include the tool as a plugin to the LLM call

---

[API](https://skmtc.net/openindex/apis/openindex-ai-api.md) · [All operations](https://skmtc.net/openindex/apis/openindex-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openindex/openindex-ai-api/versions/c3a8b22ba407/schema)
