A webhook channel sends every notification as an HTTP POST with Content-Type: application/json:
{
"version": 1,
"subject": "[CRITICAL] core-sw",
"body": "core-sw: cpu_usage_percent is 97.00 (threshold: gt 90.00)",
"severity": "critical",
"state": "alert",
"event_type": "metric_threshold",
"device": {"id": "0f2c...", "name": "core-sw"},
"tenant_id": "81083ded-...",
"event_id": "5b7e...",
"timestamp": "2026-09-21T13:04:05.123456+00:00"
}
| Field | Meaning |
|---|---|
state |
alert, recovered, info, escalation or test |
event_type |
What raised it, e.g. device_down, metric_threshold, snmp_trap |
event_id |
The alert history entry - use it to ignore a repeated delivery |
Headers
| Header | Content |
|---|---|
X-Nocward-Event |
Event type |
X-Nocward-State |
State |
X-Nocward-Delivery |
Unique per queued notification |
X-Nocward-Timestamp |
Unix time in seconds |
X-Nocward-Signature |
sha256=<hex> - only when the channel has a signing secret |
Verify the signature
The signature is HMAC-SHA256, keyed with the channel’s signing secret, over <timestamp>.<raw body>:
import hmac, hashlib
def valid(secret: str, headers: dict, raw_body: bytes) -> bool:
msg = headers["X-Nocward-Timestamp"].encode() + b"." + raw_body
expected = "sha256=" + hmac.new(secret.encode(), msg, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, headers["X-Nocward-Signature"])
Reject requests whose timestamp is more than a few minutes old to stop replays.
Delivery
Delivery is at-least-once. A failed delivery is retried after 30 seconds, 2, 10 and 30 minutes and 2 hours. A 4xx answer (except 408, 425 and 429) is treated as permanent and not retried. Answer 2xx quickly and process asynchronously.