Event Payload
Cheat sheet · https://pcornel.dk/topic.php?topic=5322
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
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Source / delivery | Event, subscription, delivery ID and attempt metadata are attributable | Missing source event, stale subscription, wrong callback or delivery history gap |
| Trust / acknowledgement | Auth/signature and schema checks occur before safe acknowledgement | Unverified payload, slow handler, 2xx before durable receipt or replay weakness |
| Processing / proof | Durable dedupe/worker evidence matches downstream target state | Duplicate side effect, worker failure hidden by 2xx or no target reconciliation |
| Troubleshooting | First failed boundary is preserved, changed minimally and retested | Blind 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