---
title: "Get Report Version History"
method: GET
path: "/api/v1/report-version-history/{report_id}"
tags: ["Chat"]
---

# Get Report Version History

`GET /api/v1/report-version-history/{report_id}`

## 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/report-version-history/{report_id}`
- Auth: OAuth 2
  - Password
  - Token URL: `token`

Get version history for a report.
Returns all versions with their generated outputs status.
Used by frontend to populate the version history dropdown.

## Path parameters

- `report_id` string, required

## Response `200`

Successful Response

- ReportVersionHistoryResponse: Response for the version history dropdown API
  - `success` boolean, required
  - `report_id` string, required
  - `s3_base_path` string, required
  - `versions` VersionInfo[], required
    - `report_version_id` string, required
    - `version` integer, required
    - `is_current` boolean, required
    - `is_modified` boolean, required
    - `label` string, required
    - `created_at` string, nullable
    - `generated_outputs` object, required

## Other responses

- `401`: Unauthorized
- `404`: Not Found
- `422`: Validation Error
- `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)
