curl --request GET \
--url https://api.example.com/api/environments/list \
--header 'Authorization: <authorization>'{
"data": {
"environments": [
{
"id": 1,
"project_id": 42,
"slug": "production",
"name": "Production",
"playwright_projects_match": ["*"],
"playwright_projects_ignore": [],
"is_disabled": false,
"env_files": [],
"scheduled_trigger": null,
"created_at": "2025-01-15T10:30:00Z",
"updated_at": "2025-02-01T14:20:00Z"
},
{
"id": 2,
"project_id": 42,
"slug": "staging",
"name": "Staging",
"playwright_projects_match": ["chromium"],
"playwright_projects_ignore": ["mobile-*"],
"is_disabled": false,
"env_files": [],
"scheduled_trigger": "0 9 * * 1-5",
"created_at": "2025-01-15T10:35:00Z",
"updated_at": "2025-01-20T11:00:00Z"
}
]
}
}
Returns all environments for a project
curl --request GET \
--url https://api.example.com/api/environments/list \
--header 'Authorization: <authorization>'{
"data": {
"environments": [
{
"id": 1,
"project_id": 42,
"slug": "production",
"name": "Production",
"playwright_projects_match": ["*"],
"playwright_projects_ignore": [],
"is_disabled": false,
"env_files": [],
"scheduled_trigger": null,
"created_at": "2025-01-15T10:30:00Z",
"updated_at": "2025-02-01T14:20:00Z"
},
{
"id": 2,
"project_id": 42,
"slug": "staging",
"name": "Staging",
"playwright_projects_match": ["chromium"],
"playwright_projects_ignore": ["mobile-*"],
"is_disabled": false,
"env_files": [],
"scheduled_trigger": "0 9 * * 1-5",
"created_at": "2025-01-15T10:35:00Z",
"updated_at": "2025-01-20T11:00:00Z"
}
]
}
}
Bearer <your-api-key>project_repo_name is not provided.project_id is not provided.false to return only enabled environments.Show properties
Show item properties
{
"data": {
"environments": [
{
"id": 1,
"project_id": 42,
"slug": "production",
"name": "Production",
"playwright_projects_match": ["*"],
"playwright_projects_ignore": [],
"is_disabled": false,
"env_files": [],
"scheduled_trigger": null,
"created_at": "2025-01-15T10:30:00Z",
"updated_at": "2025-02-01T14:20:00Z"
},
{
"id": 2,
"project_id": 42,
"slug": "staging",
"name": "Staging",
"playwright_projects_match": ["chromium"],
"playwright_projects_ignore": ["mobile-*"],
"is_disabled": false,
"env_files": [],
"scheduled_trigger": "0 9 * * 1-5",
"created_at": "2025-01-15T10:35:00Z",
"updated_at": "2025-01-20T11:00:00Z"
}
]
}
}
curl -X GET \
"https://dash.empirical.run/api/environments/list?project_id=42" \
-H "Authorization: Bearer $EMPIRICALRUN_KEY"
curl -X GET \
"https://dash.empirical.run/api/environments/list?project_id=42&is_disabled=false" \
-H "Authorization: Bearer $EMPIRICALRUN_KEY"
Was this page helpful?