Skip to main content

Webhook Endpoints (Sources)

A webhook endpoint is the entry point for incoming webhooks. Each endpoint has a unique slug that forms its URL: POST /hooks/:slug.

Adding a Source​

When you add a source, Dispatch generates:

  • Slug — a URL-safe identifier (e.g., my-github-webhooks)
  • Signing Secret — an HMAC secret for verifying request authenticity

Configuration Options​

FieldDescription
NameDisplay name for the endpoint
SlugURL path segment (auto-generated, can be customized)
Signing SecretSecret used to verify incoming request signatures
Event Type PathDot-notation path to extract event type from the payload body (e.g., action or event.type)
ProviderOptional: the integration the source belongs to (e.g. github, gitlab, bitbucket, slack, jira, linear, stripe) for provider-specific behavior, or rss for an RSS feed
Is ActiveToggle to enable/disable the endpoint

RSS feed sources​

An RSS feed source works the other way around: instead of waiting for a service to post to its URL, Dispatch checks the feed on a schedule and creates an rss.item.new event for each new item. A feed source has no webhook URL to share and no signing secret, and requests sent to its URL are refused.

Ingress Throughput​

Dispatch beats Hookdeck's flat 5 events/sec base rate at every plan. Caps apply per second and are enforced in two scopes — per endpoint URL and per project (sum across endpoints):

PlanPer-URLPer-Project
Free60/sec180/sec
Team120/sec360/sec
Growth600/sec1,800/sec

These limits apply to every source that receives webhooks, including sources created from an integration. On the Free plan, a request over a cap gets 429 Too Many Requests with a Retry-After header. Team and Growth plans never reject — overages are accepted and logged for visibility. See the API reference for response headers.

Event Type Extraction​

Dispatch determines the event type from (in order of priority):

  1. Provider-specific extraction — headers like X-GitHub-Event, X-Gitlab-Event, and Linear-Event, or payload fields like Stripe's type (e.g., payment_intent.succeeded) and Slack's event.type
  2. The endpoint's configured event type header (a custom request header name)
  3. The endpoint's configured event type path (dot-notation path into the JSON body)
  4. The generic X-Event-Type header — honored on any endpoint, no configuration needed
  5. The endpoint's typing rules — conditions over the payload and headers that assemble a type from literal and payload-path parts; the first rule that matches and derives a non-empty value wins (up to 10 rules per endpoint)

Explicit endpoint configuration (2–3) outranks the X-Event-Type convention, so a configured header or path always wins over what a sender happens to include.

The event type is stored with the event and can be used for filtering destinations by event type. Typing rules apply at ingest to new events only — already-stored events keep their type. Extracted event types are capped at 120 characters regardless of source; longer values are truncated, keeping their distinguishing prefix.

Signature Verification​

All incoming requests must be authenticated using one of these methods:

HMAC Signature (Default)​

Include an HMAC-SHA256 signature of the request body in one of these headers:

  • X-Hub-Signature-256 (GitHub-compatible)
  • X-Dispatch-Signature

Format: sha256=<hex-encoded-hmac>

# Generate signature
SIGNATURE=$(echo -n "$BODY" | openssl dgst -sha256 -hmac "$SIGNING_SECRET" | cut -d' ' -f2)

curl -X POST https://api.dispatch.tech/hooks/my-slug \
-H "Content-Type: application/json" \
-H "X-Dispatch-Signature: sha256=$SIGNATURE" \
-d "$BODY"

Slack Signature​

For Slack endpoints (provider = slack), Dispatch verifies the X-Slack-Signature header using the format:

v0:{timestamp}:{body}

The timestamp must be within 5 minutes of the current time to prevent replay attacks.

GitLab Token​

For GitLab endpoints (provider = gitlab), Dispatch checks the X-Gitlab-Token header for a literal match against the endpoint's signing secret:

X-Gitlab-Token: your-signing-secret

Linear Signature​

For Linear endpoints (provider = linear), Dispatch verifies the Linear-Signature header, which contains an HMAC-SHA256 hex digest of the request body:

Linear-Signature: <hex-encoded-hmac>

Stripe Signature​

For Stripe endpoints (provider = stripe), set the endpoint's signing secret to your Stripe webhook signing secret (begins with whsec_). Dispatch verifies the Stripe-Signature header:

Stripe-Signature: t=...,v1=...

To get the signing secret, copy the Webhook signing secret from your Stripe Dashboard webhook endpoint configuration.

Jira / Confluence JWT​

For Jira endpoints (provider = jira), Dispatch verifies the Authorization: Bearer <JWT> header included automatically by Jira when sending webhooks. When connecting via OAuth, Dispatch manages this automatically.

API Key​

Include a project API key in the Authorization header:

Authorization: Bearer dsp_your-api-key

An endpoint can be linked to multiple destinations. Each link can have:

  • An optional message template for formatting
  • Routing rules for conditional template selection
  • A JSONata transform applied before formatting

See Destinations, Templates, and Transforms for details.

Regenerating the Signing Secret​

You can regenerate a custom endpoint's signing secret from the dashboard: open Edit Source and click Regenerate Secret. Dispatch asks you to confirm first, because this immediately invalidates the old secret — update your external service configuration before the next webhook is sent.

Integration sources work differently:

  • GitHub, GitLab, Bitbucket, and PostHog sources can regenerate too, after the same confirmation. Dispatch updates the webhook at the provider for you and keeps the old secret working for a while, so deliveries keep verifying while the provider switches. If the provider refuses the change outright, Dispatch switches back to your current secret. If Dispatch can't confirm every update (or couldn't switch back), it shows you the new secret so you can finish the change at the provider. A source whose webhook was changed at the provider to point somewhere else is left alone; to rotate its secret, add it again as a new source.
  • Stripe, Shopify, Sentry, OpenAI, Vercel, and PayPal sources verify with a value the provider issues. When it changes at the provider, paste the new value into Edit Source and click Save.
  • Other integration sources have no Regenerate: the source's signing secret was set up with the provider when you connected it, and Dispatch checks every delivery against it. Slack, Jira, and Confluence deliveries are verified with Dispatch's app credentials instead.

See Managing Sources for details. An integration source whose setup you never finished is cleaned up for you; see Unfinished setups.

For zero-downtime rotation of a custom source, rotate the secret through the API instead: the rotation request accepts an overlap window during which webhooks signed with either the previous or the new secret are accepted. The overlap works for any source type, but rotate GitHub, GitLab, Bitbucket and PostHog sources with Regenerate in the dashboard instead: an API rotation doesn't update the provider.

Deactivating an Endpoint​

Setting an endpoint to inactive stops it accepting events: requests to that slug are acknowledged with 202 Accepted but not stored or delivered. Existing events and delivery history are preserved.