End a run
Gracefully ends the run. If the current step is the last step, it is
finished and the run state is set to finished. If the run ends before
the last step, remaining steps are failed and the run state is failed.
Authorizations
Service-to-service API key
Headers
Required API key permission: valid (informational only -- enforced server-side)
Path Parameters
UUID of the workflow run
Response
Run ended
Workflow run record (from WorkflowRunModel.to_dict())
Run UUID
Workflow type (e.g., sage, sage-nc)
Current state of the workflow run:
queued-- created but not yet startedrunning-- actively executing stepsfinished-- all steps completed successfullyfailed-- a step failed or out-of-order transitioncanceled-- manually cancelled
queued, running, finished, failed, canceled Progress percentage
0 <= x <= 100ID of the currently running step (null when ended)
When the run was created
When the run ended (null if still running)
Total run duration in milliseconds
Total number of steps in this run
Run result data
Error details (e.g., {"message": "Run canceled"})
Navigation metadata for the run