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.
Create a subscription
Section titled “Create a subscription”POST to your webhook when Sensor writes land (things or assertions):
wh sub create sensor-hook --graph myorg/mygraph --on Sensor --kind webhook \ --filter '{"shape":"Sensor"}' --webhook-url https://example.com/hookWhen 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.)
wh sub create graph-feed --org myorg --event org.repo_created \ --webhook-url https://example.com/org-activityNext Steps
Section titled “Next Steps”| Need | Page |
|---|---|
| Create a subscription and see the webhook payload shape | Creating Subscriptions |
| Watch a different graph in the same org | Cross-Graph Subscriptions |
| The filter grammar that selects which writes fire | Filter JSON |
| Bind delivery auth and verify WarmHub’s HMAC signature | Credentials & Signatures |
| List, view, pause, resume, update, or delete subscriptions | Managing Subscriptions |
| Inspect the delivery feed and per-attempt details | Delivery Feed |
| Understand run statuses, retries, and dead-letter behavior | Delivery Lifecycle |
| Debug a subscription that has stopped delivering | Debugging a Failing Subscription |
| Terminal-failure notifications | Notifications |