Automation

Authorize exactly one bounded draft PR

Validates path, change-type, line, file, test, approval, and PR budgets before issuing a short-lived one-time action token. It never grants merge, deploy, rollback, or direct push.

post/v1/automation-runs/{run_id}/actions/draft-pr/authorize

Request

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

Path parameters

run_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.

X-Agentry-Lease-Tokenstring required

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

Request body

Response

OK

grant_idstring required
action'draft_pr' required
action_tokenstring required
subject_hashstring required
expires_atinteger required
idempotent_replayboolean
next_actionstring required

Changes

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