Skip to content

Twitch ​

EventSub channel/stream events. This is korb's Twitch webhook preset — how korb verifies Twitch deliveries, the setup glue for pointing them at your ingest URL, and the gotchas that bite when you receive Twitch events directly.

korb is a receive-side webhook gateway: every event is verified at the edge, stored byte-for-byte, fanned out to your HTTPS handlers with retries, and replayable whenever you need it again. No preset lock-in — any HTTP POST works; presets just make verification and labeling native.

Vendor documentation ↗

Verification ​

ModeHMAC — signature header Twitch-Eventsub-Message-Signature
Timestamp headerTwitch-Eventsub-Message-Timestamp
Tolerance±600s
SecretThe secret YOU set when creating the subscription (EventSub createSubscription secret field) — 10–100 ASCII characters
Event typeheader Twitch-Eventsub-Subscription-Type

Turn verification on: set the secret on the source (dashboard Sources → open the source, or POST /api/sources/:id/secret) and korb checks every event's signature in the scheme above. No secret set = events are still accepted, unverified. Rotate any time — the previous secret keeps verifying for 24 h.

Endpoint ownership: Twitch verifies endpoints with a handshake before events flow — korb answers it automatically.

Setup ​

  1. Create the EventSub subscription via Twitch's API with transport.method = webhook, callback = your korb ingest URL, and a secret (10–100 ASCII chars) (docs: https://dev.twitch.tv/docs/eventsub/handling-webhook-events) — the callback verification challenge is answered automatically.
  2. Paste the SAME secret into korb: source → secret.

Test the pipe before the first real event ​

Don't wait for Twitch to send something — every korb source can fire this preset's bundled sample event: a shortened but shape-accurate copy of a real Twitch webhook body (same fields, same event type, trimmed to the essentials). The bundled sample here is a channel.follow event.

Two ways to send it:

  • Dashboard — open the source → send test event. The modal pre-loads the sample; edit it freely to exercise your handler with your own values.
  • CLI — korb test <source> (name or id).

The sample flows through your real pipeline — routes, route filters, destinations, delivery logs, the inbox — so you can prove the whole pipe end-to-end before the vendor is even connected.

What marks it as synthetic:

  • Every test delivery carries a korb-test: 1 header, so your handler can acknowledge it without running side effects. Real traffic never carries it — there is nothing to filter out later.
  • Test events never count against your cap, and they never touch the source's heartbeat tracking — a silent-source alert is never silenced by synthetic traffic.

See test events.