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.
Request headers
Section titled “Request headers”| 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.
Response behavior
Section titled “Response behavior”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. HonorRetry-After.
Use the raw request body when computing signatures. Re-serializing JSON can change whitespace and key order, producing a false mismatch.
Inbound authentication
Section titled “Inbound authentication”Set verificationMode on the endpoint to match what your sender can produce. All three shared-credential modes compare in constant time.
API key in a header
Section titled “API key in a header”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.
API key in a query parameter
Section titled “API key in a query parameter”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.
Basic Auth
Section titled “Basic Auth”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".
HMAC signing
Section titled “HMAC signing”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.
Body handling
Section titled “Body handling”- JSON bodies are parsed and stored as structured data.
application/x-www-form-urlencodedbodies are parsed into fields; a GitHub-stylepayload=<json>field is unpacked into the embedded JSON.- Any other body is stored as text and is not normalized into structured fields.
Bookmarks and replay
Section titled “Bookmarks and replay”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}/replayand adestinationId. 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.