Start Run
Work Orders
Start Run
Start a new run for an existing work order
POST
Start Run
Start Run
Starts a new run for an existing work order. This is useful for retrying failed work orders or re-running successful ones.The work order must be in
queued or failed status to start a new run. Running or completed work orders cannot have new runs started.Request
The work order ID (e.g.,
wo_abc123)Response
Indicates if the request was successful
Run information
Example Response
Error Responses
Work Order Not Found
Invalid Status
Returns 409 Conflict if the work order is not in a runnable state.Insufficient Credits
Returns 402 Payment Required if credits are insufficient.Status Requirements
| Work Order Status | Can Start Run? |
|---|---|
queued | ✅ Yes |
failed | ✅ Yes (retry) |
running | ❌ No |
succeeded | ❌ No |
canceled | ❌ No |
Use Cases
Retry a Failed Work Order
Monitor the New Run
After starting a run, you can monitor its progress:Run Lifecycle
When you start a run:- Request received - Run ID is generated
- Status: queued - Run is queued for execution
- Status: building - Workspace is being prepared
- Status: running - Agent is executing
- Status: succeeded/failed - Run completes
Related
- Get Run - Monitor run progress
- List Runs - List all runs for a work order
- Cancel Run - Cancel a running run