---
title: "Get Ask Caspr chat history for a section or subsection"
method: GET
path: "/api/v1/ask-caspr/chat-history"
tags: ["Ask Caspr"]
---

# Get Ask Caspr chat history for a section or subsection

`GET /api/v1/ask-caspr/chat-history`

## Request

- Base URL: `https://backend.caspr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://backend.caspr.ai/api/v1/ask-caspr/chat-history`
- Auth: OAuth 2
  - Password
  - Token URL: `token`

Retrieve the Ask Caspr chat conversation for a specific section or subsection. If report_version_id is omitted, returns the latest chat (current version). If report_version_id is provided, returns the chat that was valid at that report version by matching against card_version.

## Query parameters

- `report_id` string, required: ID of the report
- `section_id` string, required: Business card_id (section identifier)
- `subsection_id` string, nullable: Subsection ID. Omit for section-level chat.
- `report_version_id` string, nullable: ReportVersion ID. Omit to get the latest chat.

## Response `200`

Successful Response

- AskCasprChatHistoryResponse
  - `success` boolean, required
  - `entry_id` string, nullable
  - `chat` unknown[], nullable
    - unknown
  - `version` integer, nullable
  - `card_version` integer, nullable
  - `created_at` string, nullable
  - `message` string, nullable
  - `error` string, nullable

## Other responses

- `401`: Unauthorized
- `404`: Not Found
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

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