Cancel Run Endpoint
Cancel or interrupt a running execution.
Use action=cancel to hard-cancel the run immediately, or
action=interrupt to cooperatively interrupt (the graph can handle the
interrupt and save partial state). Set wait=1 to wait up to 10 seconds
for the background task to settle before returning the updated run. The
response may still report pending or running if the timeout expires.
Without wait=1, a live-owned run is cancelled asynchronously, so the
response may still report pending or running.
Query Parameters
Set to 1 to wait up to 10 seconds for the run task to settle before returning.
0 <= x <= 1Cancellation strategy: 'cancel' for hard cancel, 'interrupt' for cooperative interrupt.
cancel, interrupt Response
Successful Response
Run entity model
Status values: pending, running, error, success, timeout, interrupted
Unique identifier for the run.
Thread this run belongs to.
Assistant that is executing this run.
Identifier of the user who owns this run.
Timestamp when the run was created.
Timestamp when the run was last updated.
Current run status: pending, running, error, success, timeout, or interrupted.
Input data provided to the run. None for checkpoint-only resume.
Final output produced by the run, or null if not yet complete.
Error message if the run failed.
Configuration passed to the graph at runtime.
Context variables available during execution.