Skip to main content
GET
http://localhost:3000
/
environments
curl -X GET 'https://api.example.com/environments?projectId=project_api' \
  -H 'Authorization: Bearer YOUR_TOKEN'
[
  {
    "id": "environment_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
    "tenantId": "tenant_acme",
    "projectId": "project_api",
    "scopeId": "scope_env_prod",
    "name": "Production"
  },
  {
    "id": "environment_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5c",
    "tenantId": "tenant_acme",
    "projectId": "project_api",
    "scopeId": "scope_env_staging",
    "name": "Staging"
  }
]

Query Parameters

tenantId
string
Filter by tenant ID
projectId
string
Filter by project ID

Response

Returns an array of environment objects.
curl -X GET 'https://api.example.com/environments?projectId=project_api' \
  -H 'Authorization: Bearer YOUR_TOKEN'
[
  {
    "id": "environment_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
    "tenantId": "tenant_acme",
    "projectId": "project_api",
    "scopeId": "scope_env_prod",
    "name": "Production"
  },
  {
    "id": "environment_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5c",
    "tenantId": "tenant_acme",
    "projectId": "project_api",
    "scopeId": "scope_env_staging",
    "name": "Staging"
  }
]