---
title: "List Test Runs"
method: GET
path: "/v1/test-runs"
tags: ["Evaluation"]
---

# List Test Runs

`GET /v1/test-runs`

## Request

- Base URL: `https://api.confident-ai.com`
- URL: `https://api.confident-ai.com/v1/test-runs`
- Auth: none declared
- TypeScript: <https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/docs/v1/test-runs/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves a paginated list of test runs for the authorized project. Results can be filtered and sorted by status, dates, conversational (multi-turn) or metrics. Pagination is controlled with `page` and `pageSize`. Filtering and sorting options include `status`, `multiTurn`, `sortField`, and `ascending`.

## Response `200`

A paginated list of test runs and total count.

- object
  - `success` boolean, required
  - `data` object, required
    - `testRuns` object[]
      - `id` string: Test run unique identifier.
      - `createdAt` string, datetime
      - `identifier` string, nullable: Optional test run identifier.
      - `status` 'COMPLETED' | 'ERRORED' | 'IN_PROGRESS' | 'CANCELLED'
      - `multiTurn` boolean: Whether the test run is conversational.
      - `testsPassed` integer, nullable
      - `testsFailed` integer, nullable
      - `totalTests` integer, nullable
      - `metricsScores` object[]
        - `metric` string
        - `scores` number[], nullable
        - `passes` integer, nullable
        - `fails` integer, nullable
        - `errors` integer, nullable
      - `runDuration` number, nullable
      - `evaluationCost` number, nullable
      - `datasetAlias` string, nullable
      - `testFile` string, nullable
      - `summary` object, nullable
        - `topicSummaries` object[]
          - `topic` string
          - `testCaseIds` union[]
            - union
              - …
          - `summaryPoints` object[]
            - `grade` number
            - `content` string
            - `testCaseIds` union[]
              - …
        - `summaryOverview` object
          - `summary` string[]
          - `actionItems` string[]
    - `totalTestRuns` integer: Total number of test runs matching filters.
    - `page` integer: Current page number.
    - `pageSize` integer: Page size.

---

[API](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api.md) - [All operations](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/revisions/95cdde71b65e?raw)
