---
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.
  - `reflection_profile_id` string, nullable — LLM provider profile id used for GEPA reflection/proposal, when selected.
  - `reflection_model_id` string, nullable — Model id used for GEPA reflection/proposal, when selected.
  - `raw_trace_export_path` string, nullable — Full raw trace export path, when present.
  - `distilled_trace_bundle_path` string, nullable — Distilled GEPA trace evidence bundle path, when present.
  - `prompt_snapshot_path` string, nullable — Prompt snapshot or diff artifact path, when present.
  - `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

---

[API](https://skmtc.net/qredence/apis/fleet-rlm.md) · [All operations](https://skmtc.net/qredence/apis/fleet-rlm/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/qredence/fleet-rlm/versions/62e8c152aa18/schema)
