List

  • GET
  • /workspaces
  • /:workspace
  • /environments

Returns all environments from the workspace.

Request

REQUIRED SCOPES
ENVIRONMENT_INFO
URL PARAMETERS
workspacerequiredstring
The workspace name.

Last modified on Jan 20, 2026

Request example

CURL
curl -X GET "https://api.buddy.works/workspaces/:workspace/environments" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "Content-Type: application/json" \

Response

EXAMPLE RESPONSE
{ "url": "https://api.buddy.works/workspaces/buddy/environments", "html_url": "https://app.buddy.works/buddy/environments", "environments": [ { "url": "https://api.buddy.works/workspaces/buddy/environments/xo4pbVrE", "html_url": "https://app.buddy.works/buddy/environments/environment/xo4pbVrE", "id": "xo4pbVrE", "name": "Staging environment", "identifier": "stage_env", "scope": "WORKSPACE", "icon": "rocket", "tags": [ "tag1", "staging" ], "public_url": "http://staging.com", "base_only": false, "all_pipelines_allowed": false, "all_environments_allowed": false } ] }