Skip to content
Browse documentation

Start here

Quickstart

Send your first webhook in minutes: create an endpoint, point it at a destination, and watch the delivery log confirm each event end to end.

Hooks receives webhooks on a stable HTTPS ingress URL, verifies the signature, stores the raw request, and forwards the event to one or more destinations. Most integrations are live in under five minutes.

  1. Create an endpoint. Pick a provider (GitHub, Stripe, Slack, Linear, or generic HMAC) and copy its ingestion URL.
  2. Verify the signature. Confirm the request really came from the source before trusting the payload.
  3. Add a destination. Forward verified events to an HTTPS endpoint or an agent target.

POST JSON to the endpoint’s ingestion URL. Endpoints in the default verification mode accept unsigned requests:

Terminal window
BODY='{"type":"order.created","data":{"id":"ord_1042"}}'
curl -X POST "https://api.hooks.events/in/whk_9f3k1a" \
-H "Content-Type: application/json" \
-d "$BODY"

Hooks stores the event immediately and returns 202 Accepted; fan-out to destinations happens asynchronously in a queue.

If the endpoint’s verification mode is hmac, sign each request with the endpoint’s secret:

Terminal window
# Replace the endpoint URL and secret with your own values.
URL="https://api.hooks.events/in/whk_9f3k1a"
SECRET="<endpoint-secret>"
BODY='{"type":"order.created","data":{"id":"ord_1042"}}'
T=$(date +%s)
ID=$(uuidgen | tr 'A-Z' 'a-z')
SIG=$(printf '%s.%s.%s' "$T" "$ID" "$BODY" \
| openssl dgst -sha256 -hmac "$SECRET" -hex \
| awk '{print $NF}')
curl -X POST "$URL" \
-H "Content-Type: application/json" \
-H "x-hooks-timestamp: $T" \
-H "x-hooks-delivery: $ID" \
-H "x-hooks-signature: $SIG" \
-d "$BODY"

The signature is the lowercase hex HMAC-SHA256 of $timestamp.$deliveryId.$body, keyed with the endpoint secret. Timestamps older than five minutes are rejected, so generate $T right before sending; a tampered body or a wrong secret fails with 401.

  • Every delivery attempt is recorded with its request, response status, and response body.
  • Failed deliveries retry automatically with exponential backoff.
  • You can replay an event or retry a delivery from the console or the REST API.

The ingestion URL is a secret. Anyone with it can create events, so keep it out of client-side code and public repositories.