Cancel webhook delivery
Cancel a webhook delivery (status → cancelled); no further retries. Allowed from pending / retrying / in_progress; terminal rows → 422 cannot_cancel_terminal. Cancelling an in_progress row may still flip back to success if the worker in-flight attempt returns 2xx (re-read the row; result.in_flight_attempt_pending signals this). Pass expected_status for a CAS write (409 on mismatch). Aborts a pending delivery; state-changing.
Contract:
- MCP tool
cancel_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 cancel_webhook_log.
Optional CAS guard; rejected with 409 precondition_failed when current status differs.
pending, in_progress, retrying, success, failed, cancelled