Retry webhook delivery
Manually re-arm a webhook delivery row: flips status to pending, sets scheduled_at=now(), increments retry_count. error_message is preserved (cleared only on the next successful terminal outcome). Allowed from pending / retrying / failed / success; rejected on cancelled (422), on a soft-deleted / disabled parent webhook (422), and while the worker holds the row (409 lease_in_progress). Pass expected_status for a CAS write (409 on mismatch). Re-delivers to the integrator; state-changing.
Contract:
- MCP tool
retry_webhook_log, registry packagemcp.orchestration/webhook_logs, mountorchestration.webhooks. - Operation
action, response envelopeaction. - Flags: dangerous: the MCP layer gates it behind a preview/commit token, and the effect cannot be undone through this API.
Authorizations
Access token issued by gtm.service.id. Its access_identity claim carries team_sid, actor_sid and actor_type, and that team scope is authoritative.
Team scope for tokens that do not carry one. Ignored when the token already names a team.
Path Parameters
Webhook log (delivery) sid (wh_lg_…).
18^wh_lg_Body
Request body of retry_webhook_log.
Optional CAS guard; retry only succeeds when current status equals this (else 409 precondition_failed).
pending, in_progress, retrying, success, failed, cancelled