---
title: "Get Run Route"
method: GET
path: "/api/threads/{thread_id}/runs/{run_id}"
tags: ["run"]
---

# Get Run Route

`GET /api/threads/{thread_id}/runs/{run_id}`

Get a run by ID.

## Path parameters

- `run_id` string, uuid, required
- `thread_id` string, uuid, required

## Response `200`

Successful Response

- Run
  - `model` 'gpt-4o'
  - `instructions` string, nullable
  - `additional_instructions` string, nullable
  - `knowledge_base_id` string, uuid, nullable
  - `context_limit` integer, nullable — The maximum number of context chunks to include.
  - `codex_access_key` string, nullable
  - `hard_coded_queries` HardCodedQuery[], nullable
    - `query` string, required
    - `response` string, required
    - `context` string[], nullable
    - `prompt` string, nullable
    - `messages` object[], nullable
  - `codex_as_cache` boolean, nullable
  - `thread_id` string, uuid, required
  - `assistant_id` string, uuid, required
  - `id` string, uuid, required
  - `status` 'pending' | 'in_progress' | 'completed' | 'failed' | 'canceled' | 'expired', required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `deleted_at` string, date-time, nullable
  - `usage` RunUsage
    - `completion_tokens` integer, required
    - `prompt_tokens` integer, required
    - `total_tokens` integer, required
  - `last_error` string, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2025-08-05** `9e6009a931b6` — 2 warning, 2 info
  - removed the optional property `response_validation_config` from the response with the `200` status
  - removed the optional property `tools` from the response with the `200` status
  - added the optional property `codex_as_cache` to the response with the `200` status
  - added the optional property `hard_coded_queries` to the response with the `200` status
- **2025-04-15** `f22c2d6c16f0` — 1 info
  - added the optional property `response_validation_config` to the response with the `200` status
- **2025-04-14** `b890eea39144` — 1 info
  - added the optional property `codex_access_key` to the response with the `200` status
- **2025-01-22** `2aa38a4bc52c` — 1 warning, 3 info
  - removed the optional property `tools/anyOf[subschema #1]/items/anyOf[subschema #2: NoOpTool]/name` from the response with the `200` status
  - added the optional property `tools/anyOf[subschema #1]/items/anyOf[subschema #2: NoOpTool]/type` to the response with the `200` status
  - added `#/components/schemas/CodexV0Tool` to the `tools/anyOf[subschema #1]/items/` response property `anyOf` list for the response status `200`
  - removed `#/components/schemas/AlphaV0Tool` from the `tools/anyOf[subschema #1]/items/` response property `anyOf` list for the response status `200`
- **2025-01-02** `60c8c820f2cb` — 1 info
  - added the optional property `tools` to the response with the `200` status

[Full history](https://skmtc.dev/cleanlab/apis/agility/changes/api/threads/:thread_id/runs/:run_id/get.md)

---

[API](https://skmtc.dev/cleanlab/apis/agility.md) · [All operations](https://skmtc.dev/cleanlab/apis/agility/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cleanlab/agility/revisions/9e6009a931b6/schema)
