Documentation

Everything you need to ship your first event.

Install the SDK, send an event, verify a signature. Most teams are in production in an afternoon.

01

Install the SDK

One package, zero peer dependencies. Works in Node, Bun, Deno and edge runtimes.

02

Send an event

Call send() with an event name and payload. The response contains the event id and a delivery URL.

03

Verify the signature

Use the SDK helper or four lines of HMAC to confirm the request came from Hookline.

$npm install @hookline/sdk
1import { Hookline } from "@hookline/sdk"
2
3const hooks = new Hookline({
4 apiKey: process.env.HOOKLINE_KEY,
5})
6
7await hooks.send({
8 event: "invoice.paid",
9 endpoint: "ep_8f2k1",
10 payload: { invoiceId: "inv_1042", amount: 4900 },
11 // signed, retried, replayable
12})

Stuck on something?

Engineers answer in Discord within the hour, by email within a business day.

Buy this template

$49

Create a free website with Framer, the website builder loved by startups, designers and agencies.