Skip to content

Webhooks

View Markdown

Mark an inbound webhook route and it becomes a monitored service with its own uptime line.

Auto-detection sees the calls your app makes. A webhook is the reverse — a provider calling you — so mark the route explicitly and it becomes a monitored service with its own uptime line.

Mark a webhook route

Wrap the handler with the webhook() middleware and give it the provider's name. It shows up branded in your System status.

Express / Connect
import { webhook } from '@everock/sdk/node';

app.post('/webhooks/stripe', webhook('stripe'), stripeHandler);
app.post('/webhooks/github', webhook('github'), githubHandler);

How health is decided

  • Up — your handler responds with a non-5xx status.
  • Down — the handler responds 5xx, or hangs past the timeout.

The default timeout is 10 seconds. Raise it for slow handlers:

custom timeout
app.post('/webhooks/slow', webhook('slow', { timeoutMs: 30000 }), handler);