Automation

Record the draft PR created from one grant

Consumes the matching one-time action token and records the exact draft PR URL. It does not attest provider state; trusted CI proof remains mandatory.

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

Request

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

Path parameters

run_idstring required

Headers

X-Agentry-Action-Tokenstring required

One-time draft-PR action token returned by the matching authorization grant.

X-Agentry-Lease-Tokenstring required

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

Request body

grant_idstring required
pr_urlstring uri required

Absolute HTTPS URL without embedded username or password credentials.

Response

OK

idstring required
project_idstring required
automation_idstring required
case_idstring nullable required
case_revisioninteger nullable required
trigger_kind'alert' | 'unhandled_cases' | 'schedule' required
trigger_receipt_idstring required
request_hashstring required
attemptinteger required
status'queued' | 'claimed' | 'running' | 'draft_pr_opened' | 'awaiting_approval' | 'verifying' | 'succeeded' | 'failed' | 'escalated' | 'cancelled' required
started_atinteger nullable required
finished_atinteger nullable required
created_atinteger required
updated_atinteger required
idempotent_replayboolean
next_actionstring

Changes

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