Skip to content

Subscriptions

A subscription is the rule: it delivers a webhook when matching writes or metadata events occur, and each time it fires WarmHub records a delivery. When WarmHub pushes a webhook, the delivery is linked to an action run. When your handler instead claims deliveries itself (lease-managed delivery), it can complete a delivery that never gets a run; WarmHub creates one only if the lease times out and it falls back to pushing the webhook. Write subscriptions watch a graph (or a same-org source graph). Organization owners and admins can also create org-scoped subscriptions for member additions, graph creation, publication, and organization renames.

Inspect a graph-scoped subscription’s deliveries with wh sub log or the Delivery Feed. Org-scoped metadata subscriptions have no delivery-inspection surface today — the CLI, MCP, and HTTP API are all graph-scoped — so contact support for their delivery history.

Sensor throughout these examples is a shape you define — not a built-in. Substitute a shape from your own graph.

For details on updating, pausing, retiring, or deleting subscriptions — including which fields can be changed after creation — see Managing Subscriptions.

POST to your webhook when Sensor writes land (things or assertions):

Terminal window
wh sub create sensor-hook --graph myorg/mygraph --on Sensor --kind webhook \
--filter '{"shape":"Sensor"}' --webhook-url https://example.com/hook

When a matching write lands, WarmHub records an action event, matches it against every active subscription’s filter, and dispatches the webhook to each match — retrying transient failures with exponential backoff before the run goes terminal. See Creating Subscriptions for the webhook payload and credential binding.

Org activity subscriptions use --org and have no shape or filter. (Graphs were formerly called repos, so the graph-creation event is still named org.repo_created.)

Terminal window
wh sub create graph-feed --org myorg --event org.repo_created \
--webhook-url https://example.com/org-activity
NeedPage
Create a subscription and see the webhook payload shapeCreating Subscriptions
Watch a different graph in the same orgCross-Graph Subscriptions
The filter grammar that selects which writes fireFilter JSON
Bind delivery auth and verify WarmHub’s HMAC signatureCredentials & Signatures
List, view, pause, resume, update, or delete subscriptionsManaging Subscriptions
Inspect the delivery feed and per-attempt detailsDelivery Feed
Understand run statuses, retries, and dead-letter behaviorDelivery Lifecycle
Debug a subscription that has stopped deliveringDebugging a Failing Subscription
Terminal-failure notificationsNotifications