---
title: "Get test run"
method: GET
path: "/api/v1/test-runs/{id}"
tags: ["Project"]
---

# Get test run

`GET /api/v1/test-runs/{id}`

## Request

- Base URL: `https://app.gaffer.sh`
- URL: `https://app.gaffer.sh/api/v1/test-runs/{id}`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Returns detailed information about a specific test run.

## Path parameters

- `id` string, required

## Response `200`

Test run details

- object
  - `testRun` TestRun: Summary of a test run (excludes full test results for performance).
    - `id` string, required
    - `uniqueId` string, required: Deduplication key for idempotent uploads (format: sessionId:filename)
    - `sourceFile` string, nullable: Original filename from the uploaded report
    - `branch` string, nullable
    - `commitSha` string, nullable
    - `framework` string, nullable: Detected test framework (e.g., playwright, vitest, jest, junit, pytest, rspec, ctrf, trx)
    - `tags` object, nullable
    - `summary` TestSummary, required
      - `passed` integer, required
      - `failed` integer, required
      - `skipped` integer, required
      - `total` integer, required
      - `durationMs` integer, nullable: Total duration in milliseconds
    - `createdAt` string, date-time, required
    - `projectId` string, required
    - `updatedAt` string, date-time, required

## Other responses

- `401`: Missing or invalid API key
- `404`: Resource not found

---

[API](https://skmtc.dev/gaffer/apis/gaffer-api.md) · [All operations](https://skmtc.dev/gaffer/apis/gaffer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/gaffer/apis/gaffer-api/revisions/d742ab303118?raw)
