---
title: "Sanitized JSON Output"
method: GET
path: "/plans/{plan}/sanitized-json-output"
tags: ["plans"]
---

# Sanitized JSON Output

`GET /plans/{plan}/sanitized-json-output`

## Request

- Base URL: `https://example.scalr.io/api/iacp/v3`
- URL: `https://example.scalr.io/api/iacp/v3/plans/{plan}/sanitized-json-output`
- Auth: HTTP bearer

Download plan file in machine-readable format with sanitized sensitive values.

## Path parameters

- `plan` string, required

## Query parameters

- `format` 'text' | 'gzip'

## Response `200`

Sanitized terraform json plan.

## Other responses

- `204`: Plan has not yet completed or can't be served.
- `307`: Redirects to JSON Output if the API server is not sure that the plan can be correctly sanitized and a user permissions allow to read sensitive plan values.
- `404`: Plan not found or user unauthorized to perform action or Blob object not found.
- `422`: The JSON plan cannot be sanitized: it is either too large or empty.
- `4XX`: Client error.
- `5XX`: Server error.

## Changes

- **2026-11-03** `d3e1dc85657a`: 1 info
  - added the non-success response with the status `422`

[Operation history](https://skmtc.dev/scalr/apis/scalr-iacp-api/changes/plans/:plan/sanitized-json-output/get.md)

---

[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)
