APIRuns
Cancel a run
Request cancellation of an in-flight run. Idempotent and best-effort: returns success even when the run has already reached a terminal status. A queued follow-up is withdrawn from the thread's queue and never runs; the run in flight ahead of it is not touched. Cancelling a run that has ended never stops a later run on the same thread.
POST https://api.sazabi.com/v1/runs/{runId}/cancel
Path Parameters
runId*string
Run ID of the in-flight run to request cancellation for.
Format
uuidResponse Body
application/json
curl -X POST "https://example.com/runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel"{ "success": true}