---
title: "List the user's chats"
method: GET
path: "/v1/chats"
tags: ["Chats"]
---

# List the user's chats

`GET /v1/chats`

## Request

- Base URL: `https://docs.grepr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.grepr.ai/v1/chats`
- Auth: one of:
  - API key in header `GREPR-API-KEY`
  - OpenID Connect (`https://grepr-prod.us.auth0.com/.well-known/openid-configuration`)

Returns one page of the authenticated user's chats within their org, most-recently-updated first. Metadata only (id, title, timestamps); turn content is read per-chat. Page backwards with the response's nextCursor.

## Query parameters

- `cursor` string
- `pageSize` integer

## Response `200`

Chats retrieved successfully

- ChatList
  - `chats` ChatSummary[]
    - `chatId` string
    - `createdAt` string, date-time
    - `title` string
    - `updatedAt` string, date-time
  - `nextCursor` string

## Other responses

- `401`: Unauthorized

---

[API](https://skmtc.dev/grepr/apis/grepr-api.md) - [All operations](https://skmtc.dev/grepr/apis/grepr-api/llms.txt) - [OpenAPI document](https://skmtc.dev/grepr/apis/grepr-api/revisions/2a5ce03a0bf0?raw)
