---
title: "Download State Version"
method: GET
path: "/state-versions/{state_version}/download"
tags: ["state-versions"]
---

# Download State Version

`GET /state-versions/{state_version}/download`

## Request

- Base URL: `https://example.scalr.io/api/iacp/v3`
- URL: `https://example.scalr.io/api/iacp/v3/state-versions/{state_version}/download`
- Auth: HTTP bearer

Download the `terraform.tfstate`

## Path parameters

- `state_version` string, required

## Response `200`

## Other responses

- `302`: The location of the temporary download link.
- `404`: State version not found or user unauthorized to perform action.
- `422`: The state version is not uploaded yet.
- `4XX`: Client error.
- `5XX`: Server error.

---

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