---
title: "List training runs"
method: GET
path: "/v1/workspaces/{workspace_id}/training-runs"
tags: ["Training"]
---

# List training runs

`GET /v1/workspaces/{workspace_id}/training-runs`

List a workspace's training runs, newest first, filterable by reference set and state.

## Path parameters

- `workspace_id` string, uuid, required — Id of the workspace that owns the resource.

## Query parameters

- `reference_set_id` string, uuid, nullable — Filter to one reference set.
- `status_filter` 'any' | 'in_progress' | 'terminal_success' | 'terminal_failure' — Filter by coarse run state.
- `limit` integer — Maximum number of results to return.
- `cursor` string, nullable — Cursor from a previous response to fetch the next page.

## Response `200`

Successful Response

- ListTrainingRunsResponse
  - `runs` TrainingRunSummary[], required
    - `training_run_id` string, uuid, required
    - `reference_set_id` string, uuid, required
    - `state` 'in_progress' | 'terminal_success' | 'terminal_failure', required
    - `raw_status` string, required
    - `progress` number, required — Training progress in [0, 1]; 1.0 when complete.
    - `started_at` string, date-time, nullable
  - `pagination` PaginationOutput, required
    - `next_cursor` string, nullable — Cursor to use to get the next page
    - `has_more_results` boolean, required — If there are more results to page through
    - `total_count` integer, nullable — Total number of results matching the query

## Other responses

- `401` — Unauthenticated — missing or invalid Bearer token.
- `403` — Forbidden — insufficient permissions, or the access token lacks the scope the operation requires.
- `404` — Resource not found.
- `409` — The request with this `Idempotency-Key` is still running — retry after the number of seconds in `Retry-After`.
- `422` — Invalid input parameters, or an `Idempotency-Key` reused for a different request.
- `429` — Rate limited — retry after the number of seconds in `Retry-After`.
- `500` — Internal server error.

---

[API](https://skmtc.dev/layer/apis/layer-rest-api.md) · [All operations](https://skmtc.dev/layer/apis/layer-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/layer/layer-rest-api/revisions/fafc779f9ba2/schema)
