Alert webhooks
In the console, open Settings → Alerts → Add channel and choose Webhook. Enter the Webhook URL, set a Signing secret to authenticate requests, and select the Events you want. Select Save channel, then Send test.
The server sends each alert as a JSON POST, and any HTTP status from 200 to 299 counts as a successful delivery. It does not follow redirects. Timeout (seconds), stored as the channel’s timeout_seconds, accepts 1 to 30 and defaults to 10.
The Telegram channel uses your bot token and chat ID. The email channel uses the saved SMTP settings.
Events
| Event | Meaning |
|---|---|
load_balancer.down |
Load Balancer down |
load_balancer.recovered |
Load Balancer recovered |
load_balancer.disk_high |
Load Balancer disk almost full |
load_balancer.disk_recovered |
Load Balancer disk recovered |
stream.failure |
Stream failure |
stream.failover |
Stream switched to a backup source |
stream.recovered |
Stream recovered |
fleet_update.failed |
Fleet update failed |
backup.failed |
Pre-update backup failed |
lines.expiring |
Console test only, cannot be subscribed to |
Payload
id identifies the delivery and stays the same on retry. kind, severity, title and at are always present; at is the event time in UTC. detail, entity_type, entity_id and lines are optional. The severity is info, warning, or critical.
{
"id": "ecc74810e269ef7a8bc61cc687232c4a",
"kind": "load_balancer.down",
"severity": "critical",
"title": "lb-1 is down",
"detail": "No heartbeat since 2026-11-26 12:00:00 UTC.",
"entity_type": "load_balancer",
"entity_id": "lb-1",
"at": "2026-11-26T12:01:00Z"
}
Verify the signature
X-Nexgen-Event carries the event kind, X-Nexgen-Delivery the delivery ID, and X-Nexgen-Timestamp the send time in Unix seconds. With a secret configured, X-Nexgen-Signature is sha256=<hex>: HMAC-SHA256 of the timestamp, a period and the raw request body. Verify before parsing JSON. Reject stale timestamps and ignore delivery IDs you have already processed.
Node.js
import { createHmac, timingSafeEqual } from 'node:crypto';
export function verify(secret, ts, body, signature) {
if (/^[0-9]+$/.test(ts) && /^sha256=[0-9a-f]{64}$/.test(signature)) {
const expected = createHmac('sha256', secret).update(`${ts}.`).update(body).digest();
return timingSafeEqual(expected, Buffer.from(signature.slice(7), 'hex'));
}
return false;
}
PHP
$body = file_get_contents('php://input');
$ts = $_SERVER['HTTP_X_NEXGEN_TIMESTAMP'] ?? '';
$signature = $_SERVER['HTTP_X_NEXGEN_SIGNATURE'] ?? '';
$valid = is_string($body) && preg_match('/^[0-9]+$/D', $ts)
&& hash_equals('sha256=' . hash_hmac('sha256', "$ts.$body", $secret), $signature);

