v1
latestOpenAPI 3.0.02026-07-174565114.3 KBv1
Create run on existing thread (SSE)
Starts a streaming run on an existing thread. Returns an SSE stream of AG-UI events.
post/v1/threads/{threadId}/runs
Path parameters
threadIdstring required
Example:thr_abc123xyz
Thread ID
Request body
Example request
{
"message": {
"role": "user",
"content": [
{
"type": "text",
"text": "Hello, world!"
}
]
},
"availableComponents": [
{
"name": "WeatherCard",
"description": "Displays weather information for a location",
"propsSchema": {
"type": "object",
"properties": {
"temperature": {
"type": "number"
},
"location": {
"type": "string"
},
"unit": {
"type": "string",
"enum": [
"celsius",
"fahrenheit"
]
}
},
"required": [
"temperature",
"location"
]
}
}
],
"tools": [
{
"name": "get_weather",
"description": "Get the current weather for a location",
"inputSchema": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "City name"
},
"unit": {
"type": "string",
"enum": [
"celsius",
"fahrenheit"
]
}
},
"required": [
"location"
]
},
"maxCalls": 1
}
],
"model": "gpt-4o"
}Response
SSE stream of AG-UI events. Each event is sent as 'data: <json>\n\n' where <json> is a BaseEvent object.