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.
API key for authentication. Get your key from the API Keys page.
Run ID
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Run cancelled successfully, or already in terminal state (idempotent)
Response from cancel run endpoint
The unique identifier of the run
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
The current status of the run. Returns actual status for idempotent responses (e.g., COMPLETED if run already finished)
CANCELLED, COMPLETED, FAILED "CANCELLED"
ISO 8601 timestamp when the run was cancelled, or null if not cancelled
"2026-01-14T10:30:55Z"
Additional context about the cancellation result (e.g., "Run already cancelled", "Run already finished")
"Run already cancelled"