Runs

Create Run, Stream Output

Create a run in existing thread. Stream the output.

post/threads/{thread_id}/runs/stream

Path parameters

thread_idstring uuid required

The ID of the thread.

The ID of the thread.

Request body

sandbox_environment_idstring uuid

Sandbox environment ID to force using the specified container.

metadataobject

Metadata to assign to the run.

webhookstring uri

Webhook to call after LangGraph API call is done.

stream_subgraphsboolean

Whether to stream output from subgraphs.

on_disconnect'cancel' | 'continue'

The disconnect mode to use. Must be one of 'cancel' or 'continue'.

feedback_keysstring[]

Feedback keys to assign to run.

multitask_strategy'reject' | 'rollback' | 'interrupt' | 'enqueue'

Multitask strategy to use. Must be one of 'reject', 'interrupt', 'rollback', or 'enqueue'.

if_not_exists'create' | 'reject'

How to handle missing thread. Must be either 'reject' (raise error if missing), or 'create' (create new thread).

after_secondsinteger

The number of seconds to wait before starting the run. Use to schedule future runs.

Response

Success

{"stackTrail":"paths:/threads/{thread_id}/runs/stream:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes