Pcornel
Automation · Webhooks

Event Payload

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

Back to the Topic

Answer

The structured webhook representation carrying event identity, type, occurrence time, resource references, version and event-specific data.

Remember

  • Payload parsed ≠ event trusted; signature/authentication must bind the received bytes or canonical representation.
  • Event timestamp ≠ delivery time; retries can arrive much later than occurrence.
  • Snapshot data ≠ current resource state; the resource may have changed again before processing.
  • Missing field ≠ false/default automatically; payload versions and optional fields need explicit handling.

First checks

  • jq . sample-payload.json — inspect payload
  • Event type and ID fields — routing/dedup
  • Schema validation — structure

Verify in this order

payload → type/ID → handler

Where it usually breaks

A well-formed payload proves only the transmitted event representation; it does not prove source authenticity or current resource state.

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

Event Payload 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=5322

Confirmation

Confirm action

Continue?