Automation

Atomically claim one exact case revision

Consumes the exact unhandled-case receipt into one bounded lease. The lease token is returned only to the exact claimant and exact idempotent replay.

post/v1/cases/{case_id}/claims

Request

  • Base URL: https://api.agentry.sh
  • URL: https://api.agentry.sh/v1/cases/{case_id}/claims
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Path parameters

case_idstring required

Headers

Idempotency-Keystring required

Stable 8-500 character command key. Preserve it only when replaying the exact same request; use a new key for a distinct command.

Request body

automation_idstring required
trigger_receipt_idstring required
claimed_bystring required
lease_secondsinteger

Response

OK

idstring required
project_idstring required
case_idstring required
case_revisioninteger required
automation_idstring required
trigger_receipt_idstring required
contract_revisioninteger
contract_etagstring
attemptinteger required
claimed_bystring required
credential_idstring nullable
acquired_atinteger required
expires_atinteger required
run_idstring nullable
released_atinteger nullable
release_reasonstring nullable
lease_tokenstring
idempotent_replayboolean
next_actionstring

Changes

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