---
title: "Fetches the stack file for an EdgeStack"
method: GET
path: "/edge_stacks/{id}/file"
tags: ["edge_stacks"]
---

# Fetches the stack file for an EdgeStack

`GET /edge_stacks/{id}/file`

**Access policy**: administrator

## Path parameters

- `id` integer, required

## Response `200`

OK

- EdgestacksStackFileResponse
  - `StackFileContent` string

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error
- `503` — Edge compute features are disabled

---

[API](https://skmtc.net/portainer/apis/portainerce-api.md) · [All operations](https://skmtc.net/portainer/apis/portainerce-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/portainer/portainerce-api/versions/c0b0975cd11b/schema)
