curl --request GET \
--url https://dash.empirical.run/api/test-cases/v2/{id} \
--header 'Authorization: Bearer <token>'{
"data": {
"test_case": {
"id": "a30a6eba6312f6b87ea5-55e241fbe3f4b8ae61ee",
"name": "search works",
"file_path": "search.spec.ts",
"suites": ["Search"],
"playwright_project": "chromium",
"tags": ["smoke"],
"created_at": "2026-01-15T10:30:00Z",
"updated_at": "2026-03-20T14:00:00Z",
"first_seen_commit_sha": "abc1234",
"last_seen_commit_sha": "def5678"
}
}
}
Returns a single test case by its Playwright test ID
curl --request GET \
--url https://dash.empirical.run/api/test-cases/v2/{id} \
--header 'Authorization: Bearer <token>'{
"data": {
"test_case": {
"id": "a30a6eba6312f6b87ea5-55e241fbe3f4b8ae61ee",
"name": "search works",
"file_path": "search.spec.ts",
"suites": ["Search"],
"playwright_project": "chromium",
"tags": ["smoke"],
"created_at": "2026-01-15T10:30:00Z",
"updated_at": "2026-03-20T14:00:00Z",
"first_seen_commit_sha": "abc1234",
"last_seen_commit_sha": "def5678"
}
}
}
pw_test_id).
{
"data": {
"test_case": {
"id": "a30a6eba6312f6b87ea5-55e241fbe3f4b8ae61ee",
"name": "search works",
"file_path": "search.spec.ts",
"suites": ["Search"],
"playwright_project": "chromium",
"tags": ["smoke"],
"created_at": "2026-01-15T10:30:00Z",
"updated_at": "2026-03-20T14:00:00Z",
"first_seen_commit_sha": "abc1234",
"last_seen_commit_sha": "def5678"
}
}
}
curl -X GET \
https://dash.empirical.run/api/test-cases/v2/a30a6eba6312f6b87ea5-55e241fbe3f4b8ae61ee \
-H "Authorization: Bearer $EMPIRICALRUN_KEY"
Was this page helpful?