Cancel a run
cancel_runStops a run that is queued, held at the spend gate, or running. A run cancelled at the gate was never charged. Example: {"run_id": "…"}. Returns the run receipt with status cancelled. A run that already finished cannot be cancelled and says so — read get_run rather than retrying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | ||
| expected_version | No |