Automation

Report monotonic bounded run usage

Reports a monotonic sequence, turns, and optional cost; crossing the immutable budget escalates and closes the run.

post/v1/automation-runs/{run_id}/usage

Request

  • Base URL: https://api.agentry.sh
  • URL: https://api.agentry.sh/v1/automation-runs/{run_id}/usage
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Path parameters

run_idstring required

Headers

X-Agentry-Lease-Tokenstring

Required for a case-linked run. Omit only for schedule/alert runs that have no case claim.

Request body

sequenceinteger required
turns_usedinteger required
cost_usdnumber

Response

OK

run_idstring required
statusstring required
sequenceinteger required
turns_usedinteger required
cost_usdnumber required
idempotent_replayboolean
next_actionstring required

Changes

No recorded changes to this operation across all 1 revision of this API.