Documentation
Hooklayer improves webhook reliability by separating “receive and persist” from “deliver to your systems”. This page focuses on concepts and recommended operating patterns.
Overview
Hooklayer receives inbound webhooks at dedicated ingress endpoints. It verifies authenticity (signatures and/or IP allowlists), stores events durably, then delivers them to one or more destinations you control. Each delivery attempt is recorded with status codes, timing, and response body snippets for debugging.
Ingress endpoints
An ingress endpoint is the public URL you give to webhook senders. Hooklayer responds fast after verification and storage, decoupling sender latency from your downstream systems.
Keep the inbound payload exactly as received. Hooklayer’s goal is reliability and traceability, not payload transformation.
Verification
Verification can include signature checks (recommended) and optional IP allowlisting. If verification fails, Hooklayer returns an error and the event is not stored.
Delivery model
Hooklayer forwards each stored event to one or more destinations you configure. Delivery attempts are isolated and tracked individually. Destinations should respond quickly (ideally < 2 seconds). If your processing is slow, enqueue internally and respond 2xx.
- Validate idempotency using an event id header.
- Do minimal work inline; enqueue heavy processing.
- Return 2xx only after safely persisting/queuing.
Retries & backoff
Retries trigger on network errors, timeouts, and non-2xx responses according to policy. Backoff spreads attempts to avoid amplifying outages and prevents retry storms.
Replay
Replay lets you re-deliver events after fixes, migrations, or temporary outages. Replays are explicit actions, not automatic retries. You can replay an individual event or a filtered set (by time range or type).
Observability
The inbox provides searchable event history and delivery attempts. Key metrics include success rate, latency, retry counts, and the size of the dead-letter queue.
- Delivery success rate per destination
- Spike detection on ingress volume
- Increase in retries / timeouts
- Dead-letter growth
Dead-letter
Events that exceed the maximum retry attempts are placed into a dead-letter state. They remain available for inspection and can be replayed once the issue is resolved.
Rate-limit shielding
Hooklayer can smooth bursts and apply per-destination throughput limits to prevent your systems from being overwhelmed. This reduces 429 responses and protects internal queues.
Security notes
- Always verify signatures using the raw body (avoid JSON re-serialization).
- Use TLS everywhere and rotate signing secrets periodically.
- Log redaction: avoid storing secrets in webhook payloads where possible.
- Apply least privilege to destinations and restrict outbound access where feasible.