Skip to content
Browse documentation

Start here

Receive events

How Hooks accepts inbound webhooks: unique endpoint URLs, provider verification modes, signature checks, deduplication, and payload storage.

Hooks accepts JSON and form-encoded payloads over HTTPS. It records the raw body and headers before applying verification rules, so you can inspect exactly what arrived.

Header Description
X-Hooks-Signature Timestamp and HMAC signature for the raw body. Verify this before processing.
X-Hooks-Event Unique event ID, useful for logging and support.
X-Hooks-Delivery Unique delivery ID. Reuse it as an idempotency key at your destination.
Content-Type application/json or application/x-www-form-urlencoded.

Provider-specific headers are preserved on the event as well, for example X-GitHub-Event, Stripe-Signature, or Linear-Delivery.

Hooks returns 202 as soon as the event is persisted. It does not wait for downstream services.

  • 202 Accepted — the event was stored and queued for fan-out.
  • 4xx — the request was rejected and no event was created. Check the endpoint’s verification rules and signature configuration.
  • 429 — the endpoint’s ingest rate limit was exceeded. Honor Retry-After.

Use the raw request body when computing signatures. Re-serializing JSON can change whitespace and key order, producing a false mismatch.

Set verificationMode on the endpoint to match what your sender can produce. All three shared-credential modes compare in constant time.

Use shared-secret with sourceConfig.secretHeader:

{
"verificationMode": "shared-secret",
"sourceConfig": { "secretHeader": "x-api-key" }
}

The sender includes x-api-key: <secret>. The default header is x-webhook-token when secretHeader is omitted. Header values are redacted from stored event headers and the console.

Low-code tools that cannot set headers can put the key in the URL instead:

{
"verificationMode": "shared-secret",
"sourceConfig": { "secretLocation": "query", "secretParam": "token" }
}

The sender calls https://hooks.events/in/<publicId>?token=<secret>. secretParam defaults to token. Hooks reads the parameter before storing the event and never writes it to the event record, so it does not appear in the console or API payloads.

Use basic with the password stored as the endpoint secret and the username in config:

{
"verificationMode": "basic",
"secret": "<password>",
"sourceConfig": { "basicUsername": "acme" }
}

The sender sends Authorization: Basic base64("acme:<password>"). Wrong or missing credentials return 401 with WWW-Authenticate: Basic realm="Hooks".

Use hmac when the sender can sign each request with the endpoint secret:

{
"verificationMode": "hmac",
"secret": "<signing secret>"
}

The sender sends x-hooks-timestamp, x-hooks-delivery, and x-hooks-signature — the lowercase hex HMAC-SHA256 of <timestamp>.<deliveryId>.<raw body>, keyed with the secret. Requests older than five minutes, tampered bodies, and wrong secrets all return 401. The full signing script is in Verify signatures.

Provider endpoints (github, stripe, …) keep their native signature schemes; these modes are for generic endpoints.

  • JSON bodies are parsed and stored as structured data.
  • application/x-www-form-urlencoded bodies are parsed into fields; a GitHub-style payload=<json> field is unpacked into the embedded JSON.
  • Any other body is stored as text and is not normalized into structured fields.

An event stays queryable only until the workspace retention window ends. To keep one payload longer, open the event and choose Save bookmark: Hooks copies the raw body and inbound headers into the bookmark, so the copy is independent of the event and survives cleanup.

  • Replay a bookmark from Bookmarks in the console or with POST /v1/bookmarks/{id}/replay and a destinationId. Any active destination in the workspace is a valid target.
  • Replays go through the normal pipeline: signing, retries, transforms, filters and lifecycle hooks all apply.
  • Rename and delete bookmarks from the console; deleting removes the saved payload too.
  • The number of bookmarks per workspace is capped by the plan. See Limits.