Stop a running thread execution (e.g. when the user clicks stop in the chat). Optionally wait for the run to fully stop or rollback.
Project API key. Create and manage keys in the dashboard under Project → API Keys. Send as header: x-api-key:
Thread ID
"b737d8af-a9e0-4251-9714-3fdc1126e5fb"
Run ID to cancel
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Operation completed successfully