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

# GET /v1/ai/workflow/chat/history

`GET /v1/ai/workflow/chat/history`

Get chat history for a workflow or session

## Query parameters

- `workflowId` string
- `sessionId` string
- `limit` integer

## Request body

- object

## Response `200`

OK

- GetChatHistorySuccessResponse
  - `code` integer
  - `data` GithubComB3FunB3MonoServicesB3osWorkflowInternalPkgEntityChatMessage[]
    - `content` string
    - `createdAt` string
    - `id` string
    - `imageUrls` string[]
    - `organizationId` string
    - `role` string
    - `sessionId` string
    - `tokensUsed` integer
    - `workflowId` string
  - `message` string
  - `requestId` string

## Other responses

- `400` — Bad Request

---

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