List

  • GET
  • /workspaces
  • /:workspace
  • /projects
  • /:project_name
  • /environments

Returns all environments from the specified project.

Request

REQUIRED SCOPES
WORKSPACE, ENVIRONMENT_INFO
URL PARAMETERS
workspacerequired string
The workspace domain.
project_namerequired string
The name ID of the project.

Last modified on Mar 3, 2025

Example:

CURL
curl -X GET "https://api.buddy.works/workspaces/:workspace/projects/:project_name/environments" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "Content-Type: application/json"
EXAMPLE RESPONSE
{ "url": "https://api.buddy.works/workspaces/buddy", "html_url": "https://app.buddy.works/buddy/company-website/environments", "environments": [ { "url": "https://api.buddy.works/workspaces/buddy/projects/company-website/environments/xo4pbVrE", "html_url": "https://app.buddy.works/buddy/company-website/environments/environment/xo4pbVrE", "id": "xo4pbVrE", "name": "Staging environment", "identifier": "stage_env", "type": "STAGE", "tags": [ "tag1", "staging" ], "public_url": "http://staging.com", "all_pipelines_allowed": false } ] }
STATUS
200 OK
LIMITS
X-Rate-Limit-Limit: 1 X-Rate-Limit-Remaining: 999