curl -X GET \ "https://dash.empirical.run/api/test-runs" \ -H "Authorization: Bearer $EMPIRICALRUN_KEY"
{ "data": { "test_runs": { "items": [ { "id": 456, "state": "ended", "total_count": 50, "success_count": 48, "failed_count": 2, "skipped_count": 0, "flaky_count": 1, "duration": 120000, "test_run_branch": "main", "environment_slug": "production", "environment_name": "Production", "build_url": "https://app.example.com", "build_branch": "main", "commit": "abc123", "created_at": "2024-01-15T10:30:00.000Z" }, { "id": 455, "state": "ended", "total_count": 50, "success_count": 50, "failed_count": 0, "duration": 115000, "test_run_branch": "main", "environment_slug": "production", "environment_name": "Production", "created_at": "2024-01-14T10:30:00.000Z" } ], "total": 150, "limit": 20, "offset": 0 } } }
Retrieve a paginated list of test runs with filtering options
Bearer <your-api-key>
pending
queued
started
ended
error
cancelled
cancelling
passed
failed
Show properties
Show test run properties
Was this page helpful?