Skip to main content
Use runs.end when the workload finishes. Ending the run releases unused reservation funds and locks the final run status.
The reservations helper already calls this from reservation.settle() and reservation.release(). Call runs.end yourself only when you drive the run through the runs operations directly.

Request

string
required
The budgeted run ID.
"completed" | "canceled" | "failed"
Final status for the run. Defaults to completed.

Response

Returns the final budget run summary after unused reservation funds are released. If provider work has completed but settlement is unconfirmed, retry runs.settle with the same idempotency key. Do not release the funds as error cleanup while that usage still needs accounting.