---
title: "Get version history for a report"
method: GET
path: "/v2/reports/{reportId}/version-history"
tags: ["Reports"]
---

# Get version history for a report

`GET /v2/reports/{reportId}/version-history`

## Request

- Base URL: `https://api.sigmacomputing.com`
- URL: `https://api.sigmacomputing.com/v2/reports/{reportId}/version-history`
- Auth: HTTP bearer

Get version history for a report given the reportId. If the version history contains any tagged versions, the response includes information about those tags.

### Usage notes
- Retrieve the **reportId** by calling the [/v2/reports](https://help.sigmacomputing.com/reference/list-reports) endpoint.

### Usage scenarios
- **Audit and compliance**: Demonstrate the history of changes to a report for audit and compliance purposes.
- **Restoring previous versions**: Locate a prior version to compare against or restore after an unwanted change.

### Best practices
- Validate the **reportId** before making a request to avoid invalid requests.

## Path parameters

- `reportId` string, required

## Query parameters

- `pageToken` string
- `pageSize` integer

## Response `200`

The response body.

- ReportsGetReportVersionHistoryResponse200
  - `entries` V2ReportsReportIdVersionHistoryGetResponsesContentApplicationJsonSchemaEntriesItems[], required: Array of results returned by the endpoint
    - `version` number, double, required
    - `publishedAt` string, date-time, required
    - `publishedBy` string, required
    - `tags` V2ReportsReportIdVersionHistoryGetResponsesContentApplicationJsonSchemaEntriesItemsTagsItems[]
      - `versionTagId` string, required
      - `taggedAt` string, date-time, required
      - `taggedBy` string, required
  - `nextPageToken` string: A string that can be passed to the `pageToken` parameter in the next request to fetch the next page of results. Not present in the last page of results. **Must be treated as an opaque string.**

---

[API](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api.md) - [All operations](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/revisions/fb6036208c49?raw)
