---
title: "Get Terraform plan output (self-hosted)"
method: GET
path: "/self-hosted/terraform/plans/{key}/output"
tags: ["Self-Hosted Runners"]
---

# Get Terraform plan output (self-hosted)

`GET /self-hosted/terraform/plans/{key}/output`

Gets a Terraform plan output in raw bytes (`[]byte`) from S3.  
The response body is sent as `application/octet-stream`.

## Path parameters

- `key` string, required

## Response `200`

Plan output retrieved successfully

## Other responses

- `400` — Bad Request Error
- `401` — Unauthorized Error
- `403` — Insufficient permissions
- `404` — Not Found Error
- `500` — Internal Server Error

---

[API](https://skmtc.net/firefly/apis/api-gateway.md) · [All operations](https://skmtc.net/firefly/apis/api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/firefly/api-gateway/revisions/eea119b4113f/schema)
