Concepts
korb is a receive-side webhook gateway. Vendors — Stripe, GitHub, Shopify, Trello, or your own code — POST events to a korb URL. korb verifies each request, stores it, fans it out to your services with retries, and lets you inspect and replay anything, ever after.
You point each vendor at korb once. From then on, what happens to those events — where they go, what's retried, what's kept — is entirely on your side of the wall.
The vocabulary
Webhook / event
A webhook is a vendor's way of telling you something happened: an HTTP POST to a URL you registered, with a JSON body describing the event. An event is one such request, accepted by korb — headers and raw body preserved byte-for-byte, labeled with its event type (checkout.session.completed, pull_request.opened, …) so you can find and filter by it.
Source
A source is one vendor feed. It owns:
- the ingest URL —
https://korb.sh/<token>, shown once; the URL itself is the credential (unguessable token in the path). Rotate it any time; the previous URL keeps accepting for 24 h while you re-point the vendor. - a preset — which vendor this is, which teaches korb that vendor's verification scheme and where the event type lives (catalog). No preset needed: generic accepts any POST.
- an optional secret — set it and korb enforces the vendor's signature scheme on every request (see Signatures).
Destination
A destination is your side: the HTTPS endpoint that should receive events (your API, a worker, a queue's ingress). It goes live immediately — no handshake — and delivers there with retries and per-attempt logs. Two dials tune delivery (set at create or edit, blank keeps the default):
- rate / s — a spacing target for deliveries to this endpoint (default 5; higher ceilings on paid plans). A target, not a hard guarantee — bursts can slightly exceed it.
- timeout s — how long korb waits for your endpoint to answer before the attempt counts as failed (5–60, default 30).
To authenticate korb's calls, give the destination an auth header (a shared secret korb attaches to every delivery). A destination that keeps failing suspends itself (and alerts you) instead of burning retries forever; resuming it replays everything that piled up.
Route (pipeline)
A route is the wire from a source to a destination, with an optional event-type filter (only deliver invoice.* to billing, say).
Same thing, two words: the dashboard's Pipelines page shows each route joined with its two ends as one row — that assembly is called a pipeline. The API object underneath is a route. stripe → billing is one pipeline in the UI, one route in the API.
Fan-out is just multiple routes from one source: an event to 3 destinations = 3 deliveries.
Event-type filters
A filter is a list of event-type patterns. An event delivers on the route only when its type matches at least one pattern; a source without filters delivers everything to all its routes.
- Exact pattern —
checkout.session.completedmatches only that type. - Prefix pattern — one trailing
*:invoice.*matchesinvoice.paid,invoice.payment_failed, and anything else starting withinvoice.. - Patterns may contain letters, digits,
.,_,-— plus the single trailing*. No other wildcards. - Up to 20 patterns per route, each at most 100 characters.
The type being matched is the event type korb extracts from the payload (the same label the inbox shows — Stripe's type field, GitHub's event
- action, Shopify's topic). Filters are therefore available on preset sources with type extraction; the API rejects a filter on a source that has no type to match.
Two guarantees worth knowing:
- An event with no extractable type still delivers — a filter never eats events because a vendor changed their payload shape.
- Filtered-out events aren't billed — a fan-out skipped by a filter doesn't count against your cap.
Set filters in the dashboard (Pipelines ⋮ menu → filter…), via the API (filter field on POST/PATCH /api/routes), and see them in the CLI (korb routes shows a FILTER column). Explicit actions you take yourself — replaying one event to a specific destination, or sending a test event — ignore the filter: you asked for that delivery.
Delivery
A delivery is one event sent to one destination — the unit everything is quoted in, including your plan's cap. Deliveries are at-least-once, unordered (the same guarantee Stripe and GitHub give you directly): retries and replays are free, and every attempt carries korb's headers — korb-event-id to dedupe, korb-seq to reorder if you care.
Signature / verification
Two different surfaces:
- Inbound — korb verifies the vendor's signature on arrival when a secret is set (each preset knows its vendor's scheme natively). Forged or replayed requests die at the edge.
- Outbound — deliveries to your destinations carry identification headers (dedupe/reorder) and can carry an auth header you configure, so your handlers can reject anything that isn't korb.
Details: Signatures.
Replay & test events
Any stored event can be replayed — re-delivered to its destinations, marked korb-replay: 1, free. Every source can fire its preset's bundled test event — a sample vendor payload through the real pipeline, marked korb-test: 1, free — so you can prove the pipe before the vendor sends anything real. See Test events.
The lifecycle, end to end
- Create a pipeline — dashboard: Pipelines → + new pipeline (source + destination + route in one step); or
POST /api/pipelines. - Point the vendor at the ingest URL shown once. Preset pages carry the per-vendor glue (presets).
- Events flow — verified, stored, labeled, delivered with retries; set a secret to turn verification on.
- Watch and iterate — inbox for what landed,
korb forwardto live-tail to localhost while you build, replay the one event that broke your handler.
Where next: Quickstart does all of this in 5 minutes.