---
title: "Get env file content"
method: GET
path: "/api/stacks/{stackName}/env"
tags: ["Stacks"]
---

# Get env file content

`GET /api/stacks/{stackName}/env`

Returns the content of an environment file. Defaults to `.env` if no `file` query parameter is specified.

## Path parameters

- `stackName` string, required

## Query parameters

- `file` string

## Headers

- `x-node-id` integer

## Response `200`

Raw env file content (KEY=VALUE format).

## Other responses

- `400` — Invalid stack name or disallowed file path.
- `404` — Env file not found.
- `500` — Internal server error.

---

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