---
title: "GET /v1/ai/workflow/chat/sessions"
method: GET
path: "/v1/ai/workflow/chat/sessions"
---

# GET /v1/ai/workflow/chat/sessions

`GET /v1/ai/workflow/chat/sessions`

List chat sessions for the current organization

## Query parameters

- `limit` integer
- `offset` integer

## Request body

- object

## Response `200`

OK

- ListChatSessionsSuccessResponse
  - `code` integer
  - `data` PaginatedDataSchemasChatSession
    - `hasMore` boolean
    - `items` ChatSession[]
      - `contextType` string — ContextType indicates whether this is a "session" or "workflow" chat
      - `firstMessageAt` string — FirstMessageAt is when the first message was sent
      - `lastMessageAt` string — LastMessageAt is when the last message was sent
      - `messageCount` integer — MessageCount is the total number of messages in this session
      - `preview` string — Preview is the content of the first user message (truncated)
      - `sessionId` string — SessionID for create-page sessions (client-generated, e.g., session_1234567890_abc)
      - `workflowId` string — WorkflowID for edit-page sessions (server-generated UUID)
      - `workflowName` string — WorkflowName is the name of the associated workflow (if available)
    - `limit` integer
    - `offset` integer
  - `message` string
  - `requestId` string

## Other responses

- `400` — Bad Request
- `403` — Forbidden

---

[API](https://skmtc.net/b3-fun/apis/b3os-workflow-api.md) · [All operations](https://skmtc.net/b3-fun/apis/b3os-workflow-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/b3-fun/b3os-workflow-api/versions/5a750a5a9596/schema)
