Pcornel
Automation · Webhooks

HTTP Callback

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

Back to the Topic

Answer

The concrete HTTP request used by a producer to deliver an event to a configured consumer URL.

Remember

  • TCP/TLS success ≠ callback accepted; HTTP routing, auth, signature and handler state still matter.
  • HTTP 2xx ≠ downstream processing complete; it usually means delivery acknowledgement only.
  • Timeout ≠ callback not processed; the consumer may have committed work before the producer stopped waiting.
  • Same callback URL ≠ same environment; DNS, proxy or deployment routing can change behind the name.

First checks

  • curl -sS -o /dev/null -w '%{http_code} %{time_total}' -X POST -d @sample.json <endpoint> — status and latency
  • TLS certificate valid — producer requirement
  • Timeout of producer — respond within

Verify in this order

producer POST → endpoint → 2xx within timeout

Where it usually breaks

A callback response proves only the HTTP delivery response; network timeout or server error may leave the actual processing state uncertain.

Client payload/auth → HTTP transport → endpoint validation/policy → request accepted → queued/job execution → target mutation → effective state → consumer workload.

HTTP Callback 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=5323

Confirmation

Confirm action

Continue?