---
title: "getEnvironmentVars"
method: GET
path: "/platform/environments/{id}/vars"
tags: ["Platform"]
---

# getEnvironmentVars

`GET /platform/environments/{id}/vars`

## Request

- Base URL: `https://api.imprezahost.com/v1`
- URL: `https://api.imprezahost.com/v1/platform/environments/{id}/vars`
- Auth: API key in header `X-API-Key` and API key in header `X-API-Secret`

Read scope. The environment's variable group, same read shape as the project group; the environment group wins per name over the project group at deploy time. The read carries revision, a counter that goes up on every write; send it back as base_revision on the PUT.

## Path parameters

- `id` string, required

## Response `200`

Variable group read shape

## Other responses

- `400`: Invalid input
- `403`: Required scope missing
- `404`: Resource or current ownership unavailable
- `409`: Conflicting association or active operation
- `503`: Storage unavailable; read before retrying

---

[API](https://skmtc.dev/imprezahost/apis/impreza-host-public-api.md) · [All operations](https://skmtc.dev/imprezahost/apis/impreza-host-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/imprezahost/apis/impreza-host-public-api/revisions/db86511f604f?raw)
