---
title: "Reveal a service's basic environment variables in plaintext, before it is linked to any project. Used by the new-project wizard to fill a detected variable (e.g. `DATABASE_URL`) from a service the user just picked or created — every successful reveal is recorded, matching the audited single-variable reveal used once a service is project-linked."
method: GET
path: "/external-services/{id}/environment"
tags: ["External Services"]
---

# Reveal a service's basic environment variables in plaintext, before it is linked to any project. Used by the new-project wizard to fill a detected variable (e.g. \`DATABASE_URL\`) from a service the user just picked or created — every successful reveal is recorded, matching the audited single-variable reveal used once a service is project-linked.

`GET /external-services/{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}/environment`
- Auth: none declared

## Path parameters

- `id` integer, required

## Response `200`

Service environment variables in plaintext

- object

## Other responses

- `400`: The service's stored configuration cannot be used to build its variables
- `403`: Caller cannot access a project linked to this service
- `404`: Service not found
- `500`: Internal server error

## Changes

- **2026-11-04** `aa6ea92a9415`: 1 info
  - added the non-success response with the status `400`
- **2026-09-07** `38e97c3c35dd`: 1 info
  - endpoint added
- **2026-09-07** `f7404eb7ac98`: 1 breaking
  - api path removed without deprecation
- **2026-08-11** `c24b47a04260`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/external-services/: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)
