Skip to main content

Webhook Ingress

The ingress endpoint is the main entry point for receiving webhooks from external services.

POST /hooks/:slug​

Receive and process a webhook event.

Path Parameters​

ParameterTypeDescription
slugstringThe unique endpoint slug

Headers​

HeaderRequiredDescription
Content-TypeYesMust be application/json
X-Hub-Signature-256ConditionalGitHub/Bitbucket HMAC-SHA256 signature (sha256= prefix)
X-Dispatch-SignatureConditionalCustom HMAC-SHA256 signature
X-Slack-SignatureConditionalSlack signature (with X-Slack-Request-Timestamp)
X-Gitlab-TokenConditionalGitLab secret token
Linear-SignatureConditionalLinear HMAC-SHA256 signature
Stripe-SignatureConditionalStripe webhook signature (t= + v1=)
AuthorizationConditionalJira/Confluence JWT Bearer token, or Bearer dsp_<api-key>
X-GitHub-EventNoGitHub event type (auto-detected)
X-Gitlab-EventNoGitLab event type (auto-detected)
X-Event-TypeNoCustom event type header

At least one authentication header is required (signature or API key).

Limits​

LimitValue
Maximum payload size10 MiB
Rate limit100 requests/sec per IP address (per /64 network for IPv6)
Maximum event type length120 characters (truncated, not rejected)

Request Body​

Any valid JSON object.

{
"action": "push",
"repository": {
"full_name": "owner/repo"
},
"sender": {
"login": "username"
}
}

Response​

202 Accepted — Event received and queued for delivery.

{
"event_id": "550e8400-e29b-41d4-a716-446655440000"
}

An inactive (paused) source also answers 202 Accepted, with {"message": "endpoint is disabled"}, but doesn't store or deliver the request. A repeated delivery (same idempotency key) also answers 202, with the same event_id as the original.

Error Responses​

StatusDescription
400 Bad RequestInvalid JSON body
401 UnauthorizedInvalid signature or API key, or the source has no signing secret and the request carries no valid API key
403 ForbiddenThe request's IP address isn't in the source's allowed IPs
404 Not FoundThe source doesn't exist or was just removed
410 GoneThe source is archived
413 Payload Too LargeThe payload exceeds your plan's size limit
429 Too Many RequestsToo many requests — the per-IP limit, or the source's ingress rate limit; see the Retry-After header
503 Service UnavailableTemporarily unavailable — for example, a new source's first delivery couldn't be recorded, or the queue is unavailable. Retry the request

Processing Pipeline​

  1. Endpoint lookup — find active endpoint by slug
  2. Authentication — verify signature or API key
  3. Payload validation — ensure valid JSON
  4. Slack challenge — if Slack URL verification, respond immediately
  5. Event type extraction — provider headers, then the configured header/path, then X-Event-Type, then typing rules; extracted values are capped at 120 characters
  6. Header collection — store all request headers
  7. Usage check — verify org hasn't exceeded event limits
  8. Event storage — persist the event
  9. Filter evaluation — if blocked, mark as filtered and stop
  10. Fan-out — create delivery jobs for all active linked destinations
  11. Queue — enqueue jobs for async delivery

Slack URL Verification​

When Slack sends a URL verification challenge, Dispatch responds immediately:

// Incoming
{
"type": "url_verification",
"challenge": "abc123"
}

// Response (200 OK)
{
"challenge": "abc123"
}

This is handled before event storage, so no event is created for verification requests.

Response Headers​

HeaderDescription
X-Request-IDUnique request ID for tracing