Use it when designing, operating or troubleshooting the webhook boundary around Consumer. Keep producer event, delivery identity, source verification, acknowledgement, durable processing and downstream state separate.
Consumer
The receiver endpoint that authenticates a webhook, acknowledges delivery and performs or queues downstream processing.
1. The consumer receives and processes webhooks.
2. Verify signature and timestamp.
3. Validate payload.
4. Idempotent handling.
5. Monitor errors and latency.
POST → verify → validate → enqueue → handle
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
HTTP request → source verification → schema validation → event persistence/dedupe → acknowledgement → worker processing → downstream effect → completion evidence
Healthy evidence: source verification precedes trust, event IDs are persisted, acknowledgements are bounded and worker outcomes are separately observable.
Step 2 Failure modes and next checks Narrow the fault
Suspicious evidence: slow synchronous handler, no durable queue, no dedupe, validation after side effects or 2xx emitted before the event is safely recorded.
Step 3 Common mistakes Narrow the fault
- Doing long work before responding, causing sender timeouts and retries.
- No signature verification.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- HTTP endpoint reachable ≠ consumer ready; signature validation, schema handling, queue capacity or dependencies can still fail.
- 2xx acknowledgement ≠ processing complete; many handlers acknowledge before worker execution.
- Handler executed ≠ side effect unique; duplicate delivery can trigger the same logic again.
- Consumer log entry ≠ producer event authentic; source verification and replay protection remain required.
- Consumer endpoint logs — received events
- Signature check implementation — security
- Processing queue depth — backlog
ReferenceWhat it is1 section · depth on demand
Core model
The receiver endpoint that authenticates a webhook, acknowledges delivery and performs or queues downstream processing.
ReferenceWhy it matters1 section · depth on demand
What it is
A webhook consumer is the HTTP endpoint that receives event callbacks. It should verify the signature, respond quickly (2xx), and process the event asynchronously.
ReferenceImportant terms & boundaries3 sections · depth on demand
What this shows and what it does not
A 2xx from the consumer shows its HTTP response path completed, but it does not show durable queueing or downstream action succeeded.
In depth
A webhook consumer is the service that receives HTTP callbacks from other systems and turns them into actions. It must be reachable by the sender, authenticate requests, respond quickly and process reliably.
Consumer checklist:
| Concern | Implementation |
|---|---|
| Authentication | Verify HMAC signature or token header |
| Quick response | Return 2xx immediately; process asynchronously via a queue |
| Idempotency | Deduplicate by delivery/event ID |
| Validation | Check payload structure and event type |
| Observability | Log delivery ID, event type, outcome |
| Exposure | TLS, allow-list sender IPs where published |
sig = hmac.new(SECRET, request.body, hashlib.sha256).hexdigest()
if not hmac.compare_digest(f"sha256={sig}", request.headers["X-Hub-Signature-256"]):
abort(401)
Example
sig = hmac.new(secret, request.body, hashlib.sha256).hexdigest()
if not hmac.compare_digest(sig, request.headers["X-Signature"]):
return 401
queue.put(request.json); return 202
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Webhooks > Consumer. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.github.com/en/webhooks/using-webhooks/validating-webhook-deliveries · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Consumer webhook boundary map
Fast request/delivery, trust, processing and verification boundaries for Consumer.
| 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 |