---
title: "Create Run Stream Route"
method: POST
path: "/api/threads/{thread_id}/runs/stream"
tags: ["run"]
---

# Create Run Stream Route

`POST /api/threads/{thread_id}/runs/stream`

Creates a new run and streams the results.

## Path parameters

- `thread_id` string, uuid, required

## Request body

- RunCreateInput
  - `model` 'gpt-4o'
  - `instructions` string, nullable
  - `additional_instructions` string, nullable
  - `knowledge_base_id` string, uuid, nullable
  - `assistant_id` string, uuid, required
  - `additional_messages` MessageCreate[]
    - `thread_id` string, uuid, required
    - `role` 'user' | 'assistant', required
    - `content` string, required
    - `metadata` MessageMetadata, required
      - `trustworthiness_score` number, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2024-11-01** `36e7c2cdfead` — 1 warning
  - removed the request property `tools`
- **2024-10-17** `855f9ee2331d` — 1 info
  - added the new optional request property `tools/anyOf[subschema #1]/items/function/parameters/anyOf[subschema #1: FunctionParameters]/additionalProperties`
- **2024-10-16** `ef07edf2d4ac` — 1 info
  - added the new optional request property `tools`

[Change history](https://skmtc.dev/cleanlab/apis/agility/changes/api/threads/:thread_id/runs/stream/post.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/36e7c2cdfead/schema)
