Two kinds of events
Both kinds are subscribed, delivered, signed and retried the same way, and
both carry the owner in
data.account and the record in data.object.
Naming convention
Every event internal follows<resource>.<action> (one dot), and the
action is in the past tense: an event names something that happened.
Nested URL segments join with hyphens; domain is the first path segment
after /api/v3 and is stored on the event row:
Rules worth knowing:
- Only transactional methods (
POST,PATCH,PUT,DELETE) produce route events.GETnever does. - Resources that live directly under the domain (e.g.
/api/v3/account) collapse to<domain>.<action>—account.created. - Business actions are named by hand. A route such as
POST /contract/[id]/cancelis not CRUD, so its event is named after the fact (contract.cancelled), never after the URL verb or the HTTP method. When the route only requests something that completes later, the name says so:payment-intent.refund-requestedis the request, and the system eventpayment-refund-intent.succeededis the refund reaching the customer. - Platform and infrastructure routes (
admin,auth,cron,integration,oauth,queue,realtime, the webhook module itself) are excluded. Third-party I/O never becomes a public event. - Routes that state no fact publish nothing: previews and prechecks, test sends, and plumbing that only requeues or refreshes internal work.
webhook.testis the synthetic event sent by the Test action; create andPUT …/eventsalways keep it subscribed.- Internals are capped at 120 characters, must match
^[a-z0-9-]+\.[a-z0-9-]+$, and must be unique; the generator fails otherwise.
On 2026-11-15, 81 action events were renamed to the past tense and 17
routes left the catalogue. The old and new names are in the
changelog.
System events
Most of what matters in a payment, a contract or a subscription happens outside a request: the payment provider answers through its own webhook, a queue charges the debt, a scheduled job renews the plan. For these facts the system publishes a system event right after it records the change. What to expect from them:- No method and no route. The catalogue lists them with the label
System event, and the body carries
route: null. - At most once per fact. Each fact has a deterministic id, so a queue
retry or a provider redelivery does not produce a second delivery. Your
own endpoint can still receive retries of one delivery, with the same
id. - Not guaranteed. The event is published after the change is saved. If the process stops between the two, the event is lost and is not re-published. For flows where a missed event matters, reconcile periodically through the REST API.
- Both events when both exist. When the same fact can also happen
through the REST API, you receive the route event of the request and the
system event of the fact if you subscribed to both. For example,
POST /contract/[id]/signature/senddeliverscontract.signature-send-requested, andcontract.signature-requestedfollows when the contract actually reaches its signers. - Some route events are also published by the system when the same fact
happens outside a request:
account.created,code-coupon-account.used,notification-suppression.created,payment-debt.created,payment-debt.deletedandsubscription.created. They keep their name and arrive withroute: null.
account
code
contract
export
maihue
maihue-street
notification
Each state is sent once per notification (a failure once per attempt, since
a manual retry may fail again), and only when the status really moved: a
replayed provider event sends nothing. The status only moves forward, so a
click that arrives before the open leaves no
notification.opened.
data.object of every notification event carries what lets the caller of
POST /api/v3/notification match the state with its own record:
notification.skipped arrives on resource_type notification when the
worker skipped a written send, and on resource_type
notification-decision when the engine never wrote one (no recipient, no
app, opt-out, suppressed address, frequency cap, event off). Then
data.document_id is the decision, data.object.notification is null and
status_reason is the decision reason (no-recipient,
suppressed-hard-bounce…). A send deferred by quiet hours that is cancelled
or expires at release also arrives on its decision, with
data.object.notification set and status_reason expired or the cancel
reason. To receive only the sends of one integration,
limit the webhook to its gateway (see
Subscriptions).
payment
subscription
tax
webhook
Account scope
Each event has anaccount_scope that decides which subscriptions can
receive it:
Every event whose record has an owner resolves it. How the owner is found
depends on the resource (details in
Architecture):
What stays
none, and only reaches global webhooks:
- reference data and platform configuration (
general-*, catalogues, templates, rates); - batch triggers that act on many records in one call;
- internal staff records (alerts, the staff organization chart, short links, enterprise signers), which never belong to a customer account.
*.deleted and *.purged events are scoped like every other event of
their resource: they carry data.document_id and the owner. A purge
removes the record, so data.object is null on *.purged.Generated vs synced
The catalogue exists twice, on purpose:- Code —
lib/webhook/catalogue/webhook-event-catalogue.data.ts, regenerated withpnpm --filter @bbrandslab/horizon-api webhook:catalogue:generate. CI runs--checkso a new mutating route cannot merge without its event. - Database — the
eventtable, upserted per environment bywebhook:catalogue:syncright after migrations. Subscriptions (webhook_event) referenceevent.document_id.
GET /api/v3/webhook/catalogue/status compares both and reports
missing_internals (in code, not yet synced), stale_internals (in the
database, no longer produced) and malformed_internals (manual rows whose
internal has no .). Horizon Enterprise shows a banner on the Events
screen while they differ. The catalogue HTTP API is read-only (list,
detail, export).