List Environments
- GET
- /workspaces
- /:workspace
- /environments
Get all environments in the workspace
Request example
CURLcurl -X GET "https://api.buddy.works/workspaces/:workspace/environments" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "Content-Type: application/json"
EXAMPLE RESPONSE[ { "url": "https://api.buddy.works/workspaces/my-workspace/environments/123", "html_url": "https://my-workspace.buddy.works/environments/123", "id": "3a4KbBQl", "name": "Production Environment", "identifier": "prod-env", "tags": [ "production", "stable" ], "scope": "PROJECT" }, { "url": "https://api.buddy.works/workspaces/my-workspace/environments/456", "html_url": "https://my-workspace.buddy.works/environments/456", "id": "wPjWOjpE", "name": "Staging Environment", "identifier": "staging-env", "tags": [ "staging", "testing" ], "scope": "WORKSPACE" } ]
STATUS200 OK