---
updatedAt: 2026-05-28T08:16:45.000Z
agentTools:
  projectIndex: https://docs.scalr.io/llms.txt
---

# Sanitized JSON Output

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

# OpenAPI definition

```json
{
  "components": {
    "securitySchemes": {
      "API-Key": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "Scalr IACP API",
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0"
    },
    "title": "Scalr IACP API",
    "version": "unversioned"
  },
  "openapi": "3.0.0",
  "paths": {
    "/plans/{plan}/sanitized-json-output": {
      "get": {
        "description": "Download plan file in machine-readable format with sanitized sensitive values.",
        "operationId": "get_sanitized_json_output",
        "parameters": [
          {
            "description": "The ID of the plan. Obtain it from the\n[Get a Run](get_run) endpoint.",
            "in": "path",
            "name": "plan",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Format of the response.",
            "in": "query",
            "name": "format",
            "required": false,
            "schema": {
              "enum": [
                "text",
                "gzip"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Sanitized terraform json plan."
          },
          "204": {
            "description": "Plan has not yet completed or can't be served."
          },
          "307": {
            "description": "Redirects to JSON Output if the API server is not sure\nthat the plan can be correctly sanitized and a user permissions\nallow to read sensitive plan values."
          },
          "404": {
            "description": "Plan not found or user unauthorized to perform action or Blob object not found."
          },
          "422": {
            "description": "The JSON plan cannot be sanitized: it is either too large or empty."
          },
          "4XX": {
            "description": "Client error."
          },
          "5XX": {
            "description": "Server error."
          }
        },
        "summary": "Sanitized JSON Output",
        "tags": [
          "plans"
        ],
        "x-resource": "Plan",
        "x-service": "tf-api"
      }
    }
  },
  "security": [
    {
      "API-Key": []
    }
  ],
  "servers": [
    {
      "url": "https://{Domain}/api/iacp/v3",
      "variables": {
        "Domain": {
          "default": "example.scalr.io",
          "description": "Domain where Scalr is hosted"
        }
      }
    }
  ]
}
```

# Sibling pages

* [Get a Plan](https://docs.scalr.io/scalr/reference/get_plan.md)
* [JSON Output](https://docs.scalr.io/scalr/reference/get_json_output.md)
* [Plan Log](https://docs.scalr.io/scalr/reference/get_plan_log.md)