---
title: "Get the application's environment variables"
method: GET
path: "/v2/apps/{appId}/envs"
tags: ["Environment Variables"]
---

# Get the application's environment variables

`GET /v2/apps/{appId}/envs`

Returns the application's environment variables as a `{ key: value }` JSON object. Static applications do not support environment variables and return 400.

Requires the workspace Administrator role (or ownership) when called against a workspace-shared application.

## Path parameters

- `appId` string, required

## Response `200`

Environment variables as a `{ key: value }` map.

- object
  - `status` 'success', required
  - `response` EnvVars, required — Environment variables as an arbitrary `{ key: value }` map of strings.

## Other responses

- `400` — The application is static, or the environment variables could not be loaded.
- `401` — The Authorization header is missing, malformed, or the credentials are not valid.
- `403` — The workspace member does not have the required permission for this endpoint.
- `404` — The target application could not be found, or the caller is not a member of the workspace.
- `429` — The authenticated user or API key exceeded the global request budget.
- `500` — An unexpected error occurred while processing the request.

---

[API](https://skmtc.dev/squarecloud/apis/square-cloud-api.md) · [All operations](https://skmtc.dev/squarecloud/apis/square-cloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/squarecloud/square-cloud-api/revisions/54b7733a6b95/schema)
