Automation

Authorize exactly one provider-managed auto-merge request

Only after trusted CI readiness proof for the exact ready PR. The server derives the immutable subject from that proof; the caller supplies no subject. It never grants direct merge, force merge, bypass, deploy, rollback, or direct push.

post/v1/automation-runs/{run_id}/actions/auto-merge/authorize

Request

  • Base URL: https://api.agentry.sh
  • URL: https://api.agentry.sh/v1/automation-runs/{run_id}/actions/auto-merge/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

object required

Response

OK

grant_idstring required
action'auto_merge' 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.