v48

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-275867561.6 MB
fleet threads

Stream a thread run

Start a run on a thread and stream its output as Server-Sent Events. The connection stays open until the run completes; the client is responsible for closing it.

post/v1/fleet/threads/{thread_id}/runs/stream

Path parameters

thread_idstring required

Thread ID

Request body

agent_idstring uuid
stream_modestring[]
stream_subgraphsboolean
user_timezonestring

Example request

{
  "messages": [
    {
      "content": "what is your name?",
      "role": "user"
    }
  ]
}

Response

SSE event stream

string required