Pcornel
Automation · Webhooks

Webhook Fundamentals

Cheat sheet · https://pcornel.dk/topic.php?topic=5319

Back to the Topic

Answer

Push-based event notification where a producer delivers an HTTP callback to a consumer endpoint with explicit delivery and processing semantics.

Remember

  • Webhook delivered ≠ event processed; receiver acknowledgement and downstream handling are separate boundaries.
  • Webhook ≠ message queue; many providers use best-effort or bounded retry rather than durable broker semantics.
  • HTTP 2xx ≠ business side effect completed; consumers often acknowledge before asynchronous processing.
  • Real-time ≠ exactly-once; duplicates, delay and reordering must be expected unless the provider explicitly guarantees otherwise.

First checks

  • curl -sS -X POST -H 'Content-Type: application/json' -d @sample.json https://<endpoint> — test delivery
  • Endpoint returns 2xx quickly — ack
  • Async processing queue — decoupling

Verify in this order

event → HTTP POST → ack → async processing

Where it usually breaks

A successful webhook delivery proves transport to the receiver response path; it does not prove exactly-once processing or the final business effect.

Webhook Fundamentals webhook boundary map

BoundaryHealthy evidenceSuspicious evidence
Source / deliveryEvent, subscription, delivery ID and attempt metadata are attributableMissing source event, stale subscription, wrong callback or delivery history gap
Trust / acknowledgementAuth/signature and schema checks occur before safe acknowledgementUnverified payload, slow handler, 2xx before durable receipt or replay weakness
Processing / proofDurable dedupe/worker evidence matches downstream target stateDuplicate side effect, worker failure hidden by 2xx or no target reconciliation
TroubleshootingFirst failed boundary is preserved, changed minimally and retestedBlind retries, credential rotation, replay or payload edits before evidence is captured

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5319

Confirmation

Confirm action

Continue?