Get

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

Returns the details of a single environment.

Request

REQUIRED SCOPES
ENVIRONMENT_INFO
URL PARAMETERS
workspacerequiredstring
The workspace name.
environment_idrequiredstring
The unique string ID of the desired environment.

Last modified on Jan 20, 2026

Request example

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

Response

EXAMPLE RESPONSE
{ "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, "base_environments": [], "all_pipelines_allowed": false, "allowed_pipelines": [ { "project": "company-website", "pipeline": "deploy-prod" } ], "all_environments_allowed": false, "allowed_environments": [ { "project": "company-website", "environment": "development" } ], "variables": [ { "id": 1912258, "key": "myVar2", "value": "myValue2", "type": "VAR", "settable": true, "run_only_settable": true, "description": "some variable2" }, { "id": 1912257, "key": "myVar1", "value": "myValue1", "type": "VAR", "settable": true, "run_only_settable": true, "description": "some variable1" } ], "permissions": { "others": "DENIED", "users": [ { "id": 1, "access_level": "MANAGE" } ], "groups": [ { "id": 422, "access_level": "USE_ONLY" } ] } }