---
title: "Get all environment variables for a service-project pair"
method: GET
path: "/external-services/{id}/projects/{project_id}/environment"
tags: ["External Services"]
---

# Get all environment variables for a service-project pair

`GET /external-services/{id}/projects/{project_id}/environment`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/external-services/{id}/projects/{project_id}/environment`
- Auth: none declared

Returns an object mapping each variable name the service provides to the
project to `***`: this bulk read never returns values. Read one value
through `GET /external-services/{id}/projects/{project_id}/environment/{var_name}`,
which is audit-logged and says whether the variable is sensitive.

## Path parameters

- `id` integer, required
- `project_id` integer, required

## Response `200`

Map of variable name to its masked value (`***`)

- object

## Other responses

- `400`: The service's stored configuration cannot be used to build its variables
- `404`: Service or project not found
- `500`: Internal server error

## Changes

- **2026-11-25** `cd6cbc9c9868`: 1 breaking, 1 info
  - the response's body type changed from `array` to `object` for status `200`
  - added 'propertyNames' constraint to the response body for the status `200`
- **2026-11-04** `aa6ea92a9415`: 1 info
  - added the non-success response with the status `400`

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/external-services/:id/projects/:project_id/environment/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
