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
Changes
No recorded changes to this operation across all 1 revision of this API.