What is a webhook gateway? Definition and features

A webhook gateway is a service that sits between the systems sending webhooks and the endpoints that process them. It gives providers one stable URL, verifies and stores every incoming webhook, then delivers it to one or more destinations with retries, rate limiting, filtering, transformation and logs. Your application receives clean, reliable deliveries and doesn't have to solve delivery problems itself.

Stripe ─┐                                   ┌──▶ billing service      (retries, 30 days)
GitHub ─┼──▶ webhook gateway ──store──route─┼──▶ localhost / on-prem   (via agent)
Shopify ┘    verify · log · throttle        └──▶ Slack #alerts         (transformed)

What a webhook gateway does

CapabilityWhat it solves
Stable ingestion URLProviders point at the gateway once. You move or add backends without touching their settings.
PersistenceEach webhook is stored before delivery, so a crash or outage on your side doesn't lose it.
Retries with backoffFailed deliveries are retried with exponential backoff on a schedule you control, not the provider's.
AuthenticationVerify each provider's signature at the edge and drop forged requests.
Fan-out and routingDeliver one event to several destinations, or route by event type. See webhook fan-out.
ThrottlingRelease events at a rate or concurrency your endpoint can handle, so bursts don't turn into 429s or 503s.
Transformation and filteringReshape the payload for the destination, or drop events nobody needs.
Observability and replayOne log of every request and response, with replay after an incident.

Webhook gateway vs API gateway vs reverse proxy

Reverse proxyAPI gatewayWebhook gateway
TrafficAny HTTPSynchronous API callsAsynchronous events
Stores requestsNoNoYes
Retries laterNoNoYes, for hours or days
Fan-outNoRarelyYes
Response to callerYour server'sYour server'sUsually an immediate acknowledgement
Examplesnginx, Caddy, TraefikKong, AWS API Gateway, ApigeeWebhook Relay, Hookdeck, Convoy

A reverse proxy or API gateway in front of your webhook endpoint helps with TLS and routing, but if your service is down, the request fails with a 502 or 504 and you depend on the provider to try again. A webhook gateway accepts the event and takes over responsibility for delivering it.

When you need one

  • Lost webhooks are expensive. Payments, orders, provisioning and security alerts.
  • Provider retry windows are too short. GitHub doesn't retry automatically, and many providers give up after minutes or a few days.
  • Several services need the same events, but the provider allows one URL.
  • The receiver has no public IP: on-prem systems, Kubernetes clusters, CI servers or a developer laptop.
  • Bursts overload the endpoint during sales, batch jobs or replays.
  • You want one place to debug instead of a dashboard per provider.

If you only receive a handful of low-stakes webhooks on a public server that's always up, a gateway is optional. An idempotent endpoint that queues events may be enough.

Inbound vs outbound gateways

An inbound webhook gateway receives webhooks from third parties for your systems. An outbound gateway, often called webhooks as a service, sends your events to your customers' endpoints, handling signing (often with Standard Webhooks), per-customer retries, endpoint health and replay. Webhook Relay does both: the webhook gateway for inbound, and the Outbound Gateway for sending.

Webhook Relay as a webhook gateway

Webhook Relay persists every event the moment it arrives and retries with exponential backoff for up to 30 days (durable retries). It can verify signatures, throttle delivery, deliver one webhook to up to 200 destinations, reshape payloads with transform functions, and log every delivery with one-click resend and replay. Its distinguishing feature is delivery to internal servers: relay forward runs an agent that opens an outbound connection, so webhooks reach localhost, on-prem and private Kubernetes services with no public IP or open port. See receiving webhooks on localhost to try it, or the webhook gateway overview for the full feature set and a comparison with other gateways.

Frequently asked questions

What is a webhook gateway?

A webhook gateway is a service that sits between the systems sending webhooks and the endpoints that process them. It gives providers a stable URL, verifies and stores each incoming webhook, then delivers it to one or more destinations with retries, rate limiting, filtering, transformation and logging, so your application code doesn't have to handle delivery concerns.

What is the difference between a webhook gateway and an API gateway?

An API gateway handles synchronous request and response traffic: it authenticates callers, routes the request and returns your service's response immediately. A webhook gateway handles asynchronous events: it acknowledges the sender, stores the event, and delivers it later with retries, fan-out and replay. API gateways generally don't persist and redeliver requests.

When do I need a webhook gateway?

When webhooks matter enough that losing one is a problem, when several services need the same events, when the receiving server is on a private network or localhost, when bursts overwhelm your endpoint, or when you want one place to see and replay every webhook instead of each provider's dashboard.

Is a webhook gateway the same as webhooks as a service?

They are mirror images. An inbound webhook gateway receives webhooks from providers and delivers them to your systems. Webhooks as a service, or an outbound webhook gateway, sends your own events to your customers' endpoints with signing, retries and per-customer endpoint management. Some products, Webhook Relay among them, do both.