---
title: "Get Run"
method: GET
path: "/api/v1/optimization/runs/{run_id}"
tags: ["optimization"]
---

# Get Run

`GET /api/v1/optimization/runs/{run_id}`

Get a single optimization run by ID.

## Path parameters

- `run_id` string, required — Identifier of the optimization run to fetch.

## Response `200`

Successful Response

- OptimizationRunResponse — A single optimization run record.
  - `id` string, required — Unique run identifier.
  - `status` string, required — Run status: running, completed, or failed.
  - `module_slug` string, nullable — Module slug when server-side dispatch was used.
  - `program_spec` string, required — DSPy program specification that was optimized.
  - `optimizer` string, required — Optimizer backend that was used.
  - `auto` string, nullable — Optimization intensity level.
  - `train_ratio` number — Train/validation split ratio.
  - `dataset_path` string, nullable — Path to the dataset used.
  - `train_examples` integer, nullable — Number of training examples used.
  - `validation_examples` integer, nullable — Number of validation examples used.
  - `validation_score` number, nullable — Validation score from the optimized program.
  - `output_path` string, nullable — Filesystem path where the optimized program was saved.
  - `manifest_path` string, nullable — Filesystem path to the optimization manifest.
  - `error` string, nullable — Error message when the run failed.
  - `phase` string, nullable — Current phase of the optimization run.
  - `started_at` string, required — ISO timestamp when the run started.
  - `completed_at` string, nullable — ISO timestamp when the run completed.

## Other responses

- `401` — Authentication is required or the provided token is invalid.
- `404` — Run not found.
- `422` — Validation Error

## Changes

- **2026-04-18** `1f45411d7556` — 1 breaking, 1 info
  - the `id` response's property type changed from `integer` to `string` for status `200`
  - for the `path` request parameter `run_id`, the type was generalized from `integer` to `string`
- **2026-04-14** `08de6302fd74` — 1 info
  - endpoint added
- **2026-03-19** `78507b29ed8f` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/qredence/apis/fleet-rlm/changes/api/v1/optimization/runs/:run_id/get.md)

---

[API](https://skmtc.dev/qredence/apis/fleet-rlm.md) · [All operations](https://skmtc.dev/qredence/apis/fleet-rlm/llms.txt) · [OpenAPI document](https://skmtc.dev/qredence/apis/fleet-rlm/revisions/d82643b26c96?raw)
