Webhook payload
The JSON body, headers, event names and delivery rules of a webhook notification channel, payload shape version 1.
A webhook channel sends one HTTP POST per event to its URL. The body is JSON, shaped as version 1 below. The shape changes version only when a field is removed, renamed or changes meaning; a new field can appear without one, so ignore keys you do not know.
Quick reference
| Key | Type | Always present |
|---|---|---|
version | number | Yes. 1. |
id | string | Yes. The delivery id. |
event | string | Yes. |
kind | string | Yes. |
severity | string | Yes. |
title, body | string | Yes. body can be empty. |
url | string | Yes. |
test | boolean | Yes. |
createdAt | string | Yes. |
organization | object | Yes. |
project, environment, service, release, deployment, build, approval, cluster, alert | object or null | The key is always present; the value is null when the event does not concern it. |
Example
{
"version": 1,
"id": "6f1c2f0e-3f55-4a62-9a8e-7c8d1d0a1b2c",
"event": "deployment.failed",
"kind": "failure",
"severity": "error",
"title": "Release #7 of web failed to deploy to production",
"body": "Blocked on readiness. Probe failed. Open the deployment to see which stage stopped, then fix and redeploy.",
"url": "https://nebula.example.com/acme/deployments/0d9d4f58-1b1c-4f3a-8d0e-2f6b8e7a9c10",
"test": false,
"createdAt": "2026-03-14T14:12:41.204183Z",
"organization": { "id": "ORGANIZATION_ID", "slug": "acme" },
"project": { "id": "PROJECT_ID", "name": "Shop" },
"environment": { "id": "ENVIRONMENT_ID", "name": "production", "production": true },
"service": { "id": "SERVICE_ID", "name": "web" },
"release": { "id": "RELEASE_ID", "number": 7 },
"deployment": { "id": "DEPLOYMENT_ID" },
"build": null,
"approval": null,
"cluster": null,
"alert": null
}Top-level keys
id
The delivery id, a UUID. Every retry of one delivery carries the same id, so a receiver can ignore a repeat. The same value is in the X-Nebula-Delivery header.
event
What happened. One of:
| Event | Kind | Objects set |
|---|---|---|
approval.requested | approval | project, environment, service (if the approval names one), approval |
deployment.failed | failure | project, environment, service, release, deployment |
deployment.healthy | deploy | project, environment, service, release, deployment |
build.failed | failure | project, environment, service, build |
volume_backup.failed | failure | project, environment, service |
cluster.disconnected | warning | cluster |
cluster.agent_update_available | warning | cluster |
certificate.expiring | warning | project, environment, service |
alert.raised | alert | project, environment, service, alert |
alert.resolved | alert | project, environment, service, alert |
test | deploy | None. Sent by Send test; test is true. |
security.admin_token_created | security | None |
security.role_escalated | security | None |
security.policy_weakened | security | None |
security.production_shell_started | security | None |
security.sign_in_refused | security | None |
Which events reach a webhook follows the same rules as Slack: see See who is notified.
kind
The subscription the event belongs to: approval, failure, warning, deploy, alert or security. A channel receives the events whose kind it ticked under Events.
severity
info, warning, error or critical. Failures are error. A cluster losing contact, an expiring certificate and a warning-level alert are warning. A critical alert is critical. Approvals, healthy deployments, available agent updates, tests and recovered alerts are info.
title, body, url
The same text and console link a Slack message carries. url opens the event's target in the console.
createdAt
When the event was recorded, as an RFC 3339 timestamp in UTC. A retry keeps the original time.
Objects
| Key | Fields |
|---|---|
organization | id, slug |
project | id, name |
environment | id, name, production (boolean) |
service | id, name |
release | id, number |
deployment | id |
build | id |
approval | id |
cluster | id, name |
alert | id, rule |
alert.rule names the rule that fired, for example volume_usage, and stays stable across releases.
Request
| Header | Value |
|---|---|
Content-Type | application/json |
User-Agent | NebulaCtrl-Webhook/1 |
X-Nebula-Event | The event value. |
X-Nebula-Delivery | The id value. |
X-Nebula-Signature | t=<unix seconds>,v1=<hex HMAC-SHA256>. See Verify the signature. Absent on a webhook that has no signing secret yet. |
| Your headers | Each header you set on the channel, with its stored value. |
Delivery
- The URL is dialled through the same address filter as Slack: a host that resolves only to private, loopback or link-local addresses is refused.
- Any
2xxstatus accepts the delivery. A redirect counts as a failure and is not followed. - An HTTP
4xxanswer other than408and429stops delivery at once. Anything else, and a timeout after 10 seconds, is retried with a wait that starts at 30 seconds and doubles to at most an hour, for up to 24 attempts. - The channel shows the last failure on Settings > Integrations, with the status code and the start of the response body.
- Deliveries for one channel are not ordered. Use
createdAtto order events.
Verify the signature
Every delivery from a channel that has a signing secret carries an X-Nebula-Signature header:
X-Nebula-Signature: t=1700000000,v1=9bce2a90aaf06643750d3e85a7ad97472f6e833c0f480c370e679e1d84c552a7t is the Unix time in seconds at which the delivery was sent. v1 is the lowercase hex HMAC-SHA256, keyed with the channel's signing secret, of t, a full stop and the raw request body. The secret is the whole string as shown, including its whsec_ prefix.
A channel shows its secret once, when it is created or when you select Rotate signing secret under Manage. Rotating replaces it at once: the old secret stops verifying, so update the receiver straight away. A webhook created before signing existed is sent unsigned until you rotate its secret for the first time, and Manage says so.
Verify against the raw bytes, before parsing the JSON. Refuse a delivery whose t is more than five minutes from your clock, which stops a captured request being replayed. Every retry is signed again at the time it is sent, so a retry always carries a fresh t. Ignore v1 values you cannot match and accept the delivery if any one matches, so a later change that sends two does not break you.
import { createHmac, timingSafeEqual } from "node:crypto";
export function verify(secret, header, rawBody, now = Date.now()) {
const parts = Object.fromEntries(header.split(",").map((p) => p.trim().split("=")));
const age = Math.abs(now / 1000 - Number(parts.t));
if (!(age <= 300)) return false;
const want = createHmac("sha256", secret).update(`${parts.t}.`).update(rawBody).digest();
const got = Buffer.from(parts.v1 ?? "", "hex");
return got.length === want.length && timingSafeEqual(got, want);
}import hashlib, hmac, time
def verify(secret: str, header: str, raw_body: bytes, now: float | None = None) -> bool:
parts = dict(p.strip().split("=", 1) for p in header.split(","))
if abs((now or time.time()) - int(parts["t"])) > 300:
return False
mac = hmac.new(secret.encode(), parts["t"].encode() + b"." + raw_body, hashlib.sha256)
return hmac.compare_digest(mac.hexdigest(), parts.get("v1", ""))func verify(secret, header string, body []byte, now time.Time) bool {
var ts, sig string
for _, p := range strings.Split(header, ",") {
k, v, _ := strings.Cut(strings.TrimSpace(p), "=")
switch k {
case "t":
ts = v
case "v1":
sig = v
}
}
unix, err := strconv.ParseInt(ts, 10, 64)
if err != nil || now.Sub(time.Unix(unix, 0)).Abs() > 5*time.Minute {
return false
}
mac := hmac.New(sha256.New, []byte(secret))
mac.Write([]byte(ts + "."))
mac.Write(body)
got, err := hex.DecodeString(sig)
return err == nil && hmac.Equal(got, mac.Sum(nil))
}Audit log stream
The audit sink posts batches of activity events to one HTTPS URL with the same headers and the same signature scheme. X-Nebula-Event is audit.events, or audit.test for a test send, and X-Nebula-Delivery is the id of the batch's first event.
{
"version": 1,
"test": false,
"organization": { "id": "7c0f…", "slug": "acme" },
"events": [
{
"id": "0d3e…",
"at": "2026-03-04T05:06:07Z",
"actorType": "user",
"actorId": "9a1b…",
"actorIp": "203.0.113.9",
"userAgent": "Mozilla/5.0",
"action": "member.role_changed",
"target": { "userId": "5f2c…" },
"before": { "role": "viewer" },
"after": { "role": "admin" }
}
]
}Every key is always present; actorIp, userAgent, before and after are null when there is nothing to report. Events arrive in the order they were written, in batches of at most 100 events or 512 KiB. Delivery is at least once: a batch is sent again if the answer was lost, so deduplicate on events[].id.
Deployment states
Every state a deployment can be in and every blocker that can name why it is not moving, with what each means and what to do about it.
Limits
Every hard limit in NebulaCtrl, with its exact value and what is refused or clamped when you reach it. Covers API requests, streams, rate limits, sizes and counts in configuration files, shell sessions, notification channels, alerts, log search, retention periods and timeouts.