v1
latestOpenAPI 3.0.02026-07-26300209.6 KBRuns
Cancel run by ID
Cancel a run by ID. Only runs created via /v1/automation/run-async or /v1/automation/run-sse can be cancelled. Runs created via the synchronous /v1/automation/run endpoint cannot be cancelled.
post/v1/runs/{id}/cancel
Path parameters
idstring required
Run ID
Example:a1b2c3d4-e5f6-7890-abcd-ef1234567890
Run ID
Response
Run cancelled successfully, or already in terminal state (idempotent)
Example response
{
"run_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "CANCELLED",
"cancelled_at": "2026-01-14T10:30:55Z",
"message": "Run already cancelled"
}