---
title: "Get Chat History"
method: GET
path: "/chat/{session_id}/history"
tags: ["chat"]
---

# Get Chat History

`GET /chat/{session_id}/history`

## Request

- Base URL: `https://dev.whispa.net` (the document declares no server; this is the origin it was published from)
- URL: `https://dev.whispa.net/chat/{session_id}/history`
- Auth: one of:
  - OAuth 2
    - Password
    - Token URL: `auth/bearer/login`
  - API key in cookie `access_token`

Return the chat history for a session (cached or rebuilt from DB).

## Path parameters

- `session_id` string, uuid, required

## Response `200`

Successful Response

- ChatHistoryResponse
  - `session_id` string, required
  - `messages` ChatMessage[], required
    - `role` 'user' | 'assistant', required
    - `content` string, required
    - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/whispa/apis/whispa-api.md) - [All operations](https://skmtc.dev/whispa/apis/whispa-api/llms.txt) - [OpenAPI document](https://skmtc.dev/whispa/apis/whispa-api/revisions/12c2e4aca43c?raw)
