sites

List Site Environments

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.

get/v0/sites/{site_id}/environments

Path parameters

site_idstring required

The ID of the site

Response

EnvironmentMapResponse represents a successful response containing environment map

EnvironmentMap required

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