---
title: "List chats"
method: GET
path: "/api/public/organizations/{orgId}/chats"
tags: ["Chats"]
---

# List chats

`GET /api/public/organizations/{orgId}/chats`

## Request

- Base URL: `https://charts.basedash.com`
- URL: `https://charts.basedash.com/api/public/organizations/{orgId}/chats`
- Auth: HTTP bearer

Lists chats created through the API, newest first. Only chats the API key owner has access to are returned.

## Path parameters

- `orgId` string, required: Organization ID

## Query parameters

- `limit` integer: Maximum number of items to return (1-100, default 50)
- `cursor` string: Cursor for pagination (ID of the last item from previous page)

## Response `200`

Chats retrieved successfully

- PublicChatListResponse
  - `data` PublicChat[], required
    - `id` string, required: Chat ID
    - `organizationId` string, required: Organization ID
    - `name` string, required: Chat name, generated automatically from the first message
    - `status` 'generating' | 'finished', required: `generating` while the assistant is responding, `finished` otherwise
    - `source` 'api', required: Chat creation source
    - `memberId` string, nullable, required: Creating member ID
    - `createdAt` string, date-time, required: Creation timestamp
    - `updatedAt` string, date-time, required: Last update timestamp
  - `pagination` PaginationMeta, required
    - `nextCursor` string, nullable, required: Cursor for the next page (null if no more pages)
    - `hasMore` boolean, required: Whether there are more items after this page

## Other responses

- `401`: Unauthorized - Missing or invalid API key
- `404`: Not found - Organization not found or no member access
- `429`: Rate limit exceeded - Too many requests
- `500`: Internal server error

---

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