Skip to main content
GET
/
api
/
test-cases
/
v2
/
{id}
Get Test Case
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 (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"
    }
  }
}

Example

curl -X GET \
  https://dash.empirical.run/api/test-cases/v2/a30a6eba6312f6b87ea5-55e241fbe3f4b8ae61ee \
  -H "Authorization: Bearer $EMPIRICALRUN_KEY"

Authorizations

Authorization
string
header
required

API key from the Empirical dashboard.

Path Parameters

id
string
required

Playwright test ID (pw_test_id).

Response

Test case details.

data
object
required