Automation

Request approval for one immutable action subject

Approval cannot add an action absent from allowed_actions. The request freezes the exact subject hash and blocks the gated action.

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

Request

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

Path parameters

run_idstring required

Headers

X-Agentry-Lease-Tokenstring required

One-time case lease token returned to the exact claimant. Keep it only in runner memory.

Request body

action'draft_pr' required
reasonstring required

Response

OK

idstring required
project_idstring required
automation_idstring required
run_idstring required
action'draft_pr' required
status'pending' | 'approved' | 'rejected' | 'expired' | 'cancelled' required
requested_bystring required
decided_bystring nullable required
subject_hashstring required
run_urlstring required
requested_atinteger required
decided_atinteger nullable required
expires_atinteger required

Changes

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