---
title: "List Chat Sessions"
method: GET
path: "/chat_sessions"
tags: ["chat_sessions", "Chat Sessions"]
---

# List Chat Sessions

`GET /chat_sessions`

List Chat Sessions

## Query parameters

- `cursor` string
- `per_page` integer

## Response `200`

A list of ChatSessions objects.

- ChatSessionEntity[]
  - `id` string — Chat Session ID.
  - `title` string — Short AI-generated chat title.
  - `user_id` integer — User ID.
  - `ai_task_id` integer — AI Task ID. Present when the conversation was started by an AI Task.
  - `workspace_id` integer — Workspace ID. `0` means the default workspace.
  - `last_active_at` string, date-time — Most recent chat activity date/time.
  - `created_at` string, date-time — Chat session creation date/time.
  - `messages` ChatMessageEntity[] — Visible conversation messages in this chat session. For performance reasons, this is not provided when listing chat sessions.
    - `id` integer — Chat Message ID.
    - `role` string — Message role.
    - `content` string — Message content.
    - `created_at` string, date-time — Message creation date/time.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `405` — Method Not Allowed
- `409` — Conflict
- `412` — Precondition Failed
- `422` — Unprocessable Entity
- `423` — Locked
- `429` — Too Many Requests

---

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