---
title: "Get Chat History"
method: GET
path: "/chat/{chat_id}"
---

# Get Chat History

`GET /chat/{chat_id}`

Retrieve the message history for a chat conversation.

Args:
    chat_id: Identifier of the conversation whose history should be loaded.
    auth: Authentication context used to verify access to the conversation.
    redis: Redis connection where chat messages are stored.

Returns:
    A list of :class:`ChatMessage` objects or an empty list if no history
    exists.

## Path parameters

- `chat_id` string, required

## Headers

- `authorization` string

## Response `200`

Successful Response

- ChatMessage[]
  - `role` 'user' | 'assistant', required
  - `content` string, required
  - `timestamp` string
  - `agent_data` object, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/morphik-org/apis/fastapi.md) · [All operations](https://skmtc.dev/morphik-org/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/morphik-org/fastapi/revisions/9ade02dd7b1d/schema)
