Docs Integrations
Integrations
Webhooks
Subscribe an HTTPS endpoint you own to Kumo.io events. Kumo.io signs every delivery, retries until your endpoint accepts it, and refuses to send to private network addresses.
How it works
- You create a webhook subscription: an HTTPS URL plus the event types you want.
- Kumo.io returns a signing secret, once.
- When a matching event happens in your account, Kumo.io POSTs a signed JSON envelope to your URL.
- Your endpoint checks the signature and answers with any 2xx status. Anything else and Kumo.io tries again later.
You manage webhook subscriptions in the web app under Settings › Webhooks, or through the Kumo.io API. Either way you need the integration.manage permission to create, pause, rotate or delete them, and integration.read to list them and see their deliveries. The Account owner and Account admin roles include both. For the API you also need an API token whose owner has those permissions.
Manage webhooks in the web app
- Go to Settings › Webhooks.
- Under Add Endpoint, enter your Endpoint URL and, if you like, a Description.
- Under Events, tick the events you want, or tick All Events to receive every event type, including any added later.
- Select Create Webhook.
- Copy the signing secret now, with Copy Secret. It is shown once and can't be retrieved again. Select I've copied it — dismiss when you have stored it.
Each webhook in the list shows its URL, whether it is Active or Paused, its events and when it was created. Its buttons:
- Recent Deliveries lists its 20 most recent deliveries, newest first, with the event, the status, the attempts made and when it was queued. A status is Pending (queued), Delivered, Retrying (the last attempt failed and another is scheduled; the error and the next try are shown) or Failed (Kumo.io stopped after 10 attempts). Select Refresh to check again.
- Pause stops deliveries to the endpoint without deleting the webhook or its secret. Deliveries still waiting to be sent are dropped and show as Failed, with the error
subscription disabled; events that happen while it is paused are not queued. Resume starts it again for new events. - Rotate Secret issues a new signing secret, shown once. The old secret stops working straight away.
- Delete removes the webhook and destroys its signing secret.
If you don't have integration.read, the page says you don't have permission. On a self-hosted installation without webhooks (see Self-hosted requirements), it says webhooks aren't available.
Events
| Event type | Sent when | data fields |
|---|---|---|
workspace.graph.updated | A workspace's graph gains a new revision | workspaceId, workspaceGraphRevisionId, graphStateHash, sequence |
source.sync.completed | A workspace sync run finishes, whether it succeeded or not | workspaceId, workspaceSyncRunId, status |
alert.fired | An alert rule fires, including cost and credential-health alerts | see below |
status on source.sync.completed is the run's final state, for example succeeded, partial, failed or cancelled.
alert.fired comes in two forms. A single alert carries ruleId, ruleName, source, severity, kind, subjectLabel, dedupKey and workspaceId. When many alerts fire together they arrive as one batch, with batch: true, batchKey, total, maxSeverity and workspaceId. source is one of graph_diff, cost_anomaly or credential_health, and severities run info, low, medium, high, critical.
Subscribe to * to receive every event type, including any added later.
Create a subscription
curl -X POST "$KUMO_API_URL/v1/accounts/$KUMO_ACCOUNT/webhook-subscriptions" \
-H "Authorization: Bearer $KUMO_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"url": "https://hooks.example.com/kumo",
"description": "Ticketing bridge",
"eventTypes": ["alert.fired", "source.sync.completed"]
}'
KUMO_API_URL is your Kumo.io API base URL, and KUMO_ACCOUNT is your account ID from Settings › Profile & Security. Read API tokens for both.
Kumo.io answers 201 with the subscription and its signingSecret, a value starting whsec_:
{
"data": {
"subscription": {
"id": "…",
"accountId": "…",
"url": "https://hooks.example.com/kumo",
"description": "Ticketing bridge",
"enabled": true,
"eventTypes": ["alert.fired", "source.sync.completed"],
"secretRef": "…",
"createdAt": "…",
"updatedAt": "…",
"disabledAt": null
},
"signingSecret": "whsec_…"
}
}
Store the signing secret now. Kumo.io keeps only an encrypted copy and never shows it again. secretRef is that encrypted reference, not the secret.
An event type that isn't in the table above is refused.
Manage subscriptions
| Call | What it does |
|---|---|
GET /v1/accounts/{accountId}/webhook-subscriptions | List the account's subscriptions |
GET /v1/accounts/{accountId}/webhook-subscriptions/{subscriptionId} | Get one subscription |
POST /v1/accounts/{accountId}/webhook-subscriptions/{subscriptionId}/rotate-secret | Issue a new signing secret, returned once |
PATCH /v1/accounts/{accountId}/webhook-subscriptions/{subscriptionId} | Pause or resume a subscription: body {"enabled": false} or {"enabled": true} |
GET /v1/accounts/{accountId}/webhook-subscriptions/{subscriptionId}/deliveries?limit=20 | The subscription's most recent deliveries, newest first (limit up to 100). Each has eventType, status (pending, delivered, failed or dead), attempts, maxAttempts, nextAttemptAt, lastError and createdAt. The body sent is not included. |
GET /v1/accounts/{accountId}/webhook-event-types | The event types you can subscribe to |
DELETE /v1/accounts/{accountId}/webhook-subscriptions/{subscriptionId} | Delete a subscription |
Rotation takes effect straight away: the old secret stops verifying as soon as the new one is stored. Update your endpoint with the new secret at the same moment. A delivery that is waiting to be retried is signed with whichever secret is current when it is sent.
Creating, pausing, resuming, rotating and deleting subscriptions are recorded in the audit log.
What a delivery looks like
POST /kumo HTTP/1.1
Host: hooks.example.com
Content-Type: application/json
X-Kumo-Webhook-Id: <delivery id>
X-Kumo-Webhook-Timestamp: 1767225600
X-Kumo-Webhook-Signature: sha256=<hex>
{
"id": "sync:…",
"type": "source.sync.completed",
"apiVersion": "webhook/v1",
"occurredAt": "2026-10-21T03:14:07.000Z",
"accountId": "…",
"data": {
"workspaceId": "…",
"workspaceSyncRunId": "…",
"status": "succeeded"
}
}
| Field or header | Meaning |
|---|---|
id | The event's id. The same event sent to several subscriptions has the same id. |
type | The event type. |
apiVersion | Always webhook/v1 for this envelope. |
occurredAt | When the event happened. |
X-Kumo-Webhook-Id | The delivery's id: one per event per subscription, unchanged across retries. |
X-Kumo-Webhook-Timestamp | When this attempt was signed, in Unix seconds. |
X-Kumo-Webhook-Signature | sha256= followed by the hex HMAC-SHA256 signature. |
Verify the signature
Treat any request that fails verification as not from Kumo.io.
- Read the raw request body exactly as received, before parsing the JSON.
- Build the string
<timestamp>.<raw body>, where<timestamp>is theX-Kumo-Webhook-Timestampvalue. - Compute HMAC-SHA256 of that string using your whole signing secret,
whsec_prefix included, as the key. Hex-encode it and putsha256=in front. - Compare it with
X-Kumo-Webhook-Signatureusing a constant-time comparison. - Reject the request if the timestamp is more than 5 minutes from your current time. This stops an old delivery being replayed.
In Node.js:
import { createHmac, timingSafeEqual } from 'node:crypto';
function isFromKumo(rawBody, headers, secret, nowSeconds = Math.floor(Date.now() / 1000)) {
const timestamp = Number(headers['x-kumo-webhook-timestamp']);
const signature = String(headers['x-kumo-webhook-signature'] ?? '');
if (!Number.isFinite(timestamp) || Math.abs(nowSeconds - timestamp) > 300) return false;
const expected =
'sha256=' + createHmac('sha256', secret).update(`${timestamp}.${rawBody}`, 'utf8').digest('hex');
const a = Buffer.from(signature, 'utf8');
const b = Buffer.from(expected, 'utf8');
return a.length === b.length && timingSafeEqual(a, b);
}
Delivery, retries and ordering
- At least once. Kumo.io may deliver the same event more than once. Use the envelope
idto ignore duplicates. - Success means a 2xx status. Any other status, a timeout or a connection error is a failed attempt.
- Retries back off. After a failure Kumo.io waits, then tries again. The wait starts at up to 30 seconds and doubles each time, up to an hour, with random jitter. Each retry is re-signed with a fresh timestamp.
- Ten attempts. After 10 failed attempts Kumo.io stops trying that delivery.
- Deleting a subscription stops any deliveries still waiting for it.
- No ordering guarantee. Use
occurredAt, orsequenceonworkspace.graph.updated, if order matters to you.
Endpoint requirements
Kumo.io sends webhooks only to addresses that are safe to reach:
- the URL must use
https; - Kumo.io won't connect to private, loopback, link-local or cloud-metadata addresses;
- Kumo.io doesn't follow redirects;
- each request times out after 10 seconds, and Kumo.io reads at most 1 MiB of your response.
Self-hosted operators who need to deliver to an internal receiver on a private address can set KUMO_WEBHOOK_EGRESS_GUARD=off. This setting is refused on hosted Kumo.io.
Self-hosted requirements
On a self-hosted installation, webhook subscriptions need the Postgres backend. Kumo.io encrypts stored signing secrets with the key in KUMO_WEBHOOK_SECRET_KEY. If you don't set it, Kumo.io creates one under the Kumo.io home directory the first time it needs it. If you run the API and the worker as separate processes, they must use the same key.
Webhooks are part of alerts and notifications. On a self-hosted installation that needs the Enterprise (Licensed) plan.
Alert channels: the no-code option
If you only need alerts, you can send them to a URL without a webhook subscription. Under Alerts › Notification Channels, select Add Channel and set Channel to Webhook (POST). Kumo.io then POSTs each delivery of fired alerts to that URL, as one JSON body with type: "alert.fired.batch", a summary and the list of events.
These alert-channel posts are not signed. If your receiver must prove a request came from Kumo.io, use a webhook subscription instead.