---
title: "List chat sessions with pagination"
method: GET
path: "/api/v1/chat/sessions"
tags: ["Open API"]
---

# List chat sessions with pagination

`GET /api/v1/chat/sessions`

List chat sessions for the specified username.

## Query parameters

- `page` integer
- `page_size` integer
- `platform_id` string
- `username` string, required

## Response `200`

OK

- ApiResponseChatSessions
  - `status` string
  - `message` string, nullable
  - `data` object
    - `sessions` ChatSessionItem[]
      - `session_id` string
      - `platform_id` string
      - `creator` string
      - `display_name` string, nullable
      - `is_group` integer
      - `created_at` string, date-time
      - `updated_at` string, date-time
    - `page` integer
    - `page_size` integer
    - `total` integer

## Other responses

- `401` — Unauthorized
- `403` — Forbidden

## Changes

- **2026-03-09** `3d43cee2622a` — 7 breaking, 11 info
  - the `query` request parameter `username` became required
  - for the `query` request parameter `page_size`, the max was decreased from `200.00` to `100.00`
  - the response property `message` became nullable for the status `200`
  - the response property `data` became optional for the status `200`
  - …14 more

[Change history](https://skmtc.dev/astrbotdevs/apis/astrbot-openapi-v1/changes/api/v1/chat/sessions/get.md)

---

[API](https://skmtc.dev/astrbotdevs/apis/astrbot-openapi-v1.md) · [All operations](https://skmtc.dev/astrbotdevs/apis/astrbot-openapi-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/astrbotdevs/astrbot-openapi-v1/revisions/3d43cee2622a/schema)
