---
title: "List Site Environments"
method: GET
path: "/v0/sites/{site_id}/environments"
tags: ["sites"]
---

# List Site Environments

`GET /v0/sites/{site_id}/environments`

## Request

- Base URL: `https://api.pantheon.io`
- URL: `https://api.pantheon.io/v0/sites/{site_id}/environments`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/pantheon/apis/pantheon-public-api-service/docs/v0/sites/:site_id/environments/get.ts> (a function with typed inputs; its response is checked against the schema)

Lists all environments for a specific Pantheon site.

Returns a map of environments keyed by environment ID (e.g., "dev", "test", "live").
This format matches the old API for Terminus compatibility.

## Path parameters

- `site_id` string, required

## Response `200`

EnvironmentMapResponse represents a successful response containing environment map

- EnvironmentMap: EnvironmentMap represents site environments as a map keyed by environment ID This format matches the old API and is required for Terminus compatibility

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error
- `503`: Service Unavailable

---

[API](https://skmtc.dev/pantheon/apis/pantheon-public-api-service.md) - [All operations](https://skmtc.dev/pantheon/apis/pantheon-public-api-service/llms.txt) - [OpenAPI document](https://skmtc.dev/pantheon/apis/pantheon-public-api-service/revisions/5d158d59f4c3?raw)
