Webhook notifications
Probeward posts one JSON document per notification to every webhook destination a notify rule selects. The same document is stored with the notification event and is the source for the email, Discord and Telegram renderings, so every channel says the same thing.
The machine-readable definition is webhook-payload.schema.json (JSON Schema 2020-12). A test validates real payloads, produced by the running system, against it.
The request
POST <the webhook URL stored in the destination's credential>
Content-Type: application/json
User-Agent: Probeward/<version>
X-Probeward-Event-Id: 01a21dea-1f0c-7a51-9a0e-6f1d3c2b4a10
X-Probeward-Event-Type: opened
X-Probeward-Delivery-Attempt: 1
X-Probeward-Signature: t=1795795200,v1=5d41402abc4b2a76b9719d911017c592... (only when signing is configured)- The URL is a secret. It is kept in the credential vault and never appears in a log, error message, timeline entry, API response or the payload. Errors quote what the receiver answered, never the URL.
X-Probeward-Event-Idequals the payload'sevent_idand is identical on every retry of the same notification. Receivers should deduplicate on it: delivery is at least once.X-Probeward-Delivery-Attemptstarts at 1 and increases with each retry.- Any 2xx answer counts as delivered. The body of the answer is ignored.
- Timeouts. The whole request, connection included, must finish within 15 seconds.
- Redirects are followed at most three times and only to the same scheme, host and port. A redirect to another host is not followed and counts as a permanent failure, so a receiver cannot bounce a signed payload, or the secret path, to someone else.
Signature
When the destination has a signing key (a secret credential named by config.signing_credential_id), every request carries
X-Probeward-Signature: t=<unix seconds>,v1=<lower-case hex HMAC-SHA256>The HMAC key is the secret's value; the signed message is the ASCII decimal timestamp, a full stop, and the raw request body: "<t>.<body>". To verify:
- Split the header on
,and taketandv1. - Reject the request if
tis more than a few minutes away from your clock (replay). - Compute
HMAC-SHA256(key, t + "." + raw_body)over the body bytes exactly as received, before any JSON parsing, and compare it withv1in constant time.
The timestamp is the time of the attempt, so a retry carries a new t and a new signature for the same body.
Retries
| Answer | What happens |
|---|---|
| 2xx | Delivered. |
| 408, 429, 5xx, connection error, timeout | Retried with exponential back-off (30 s, doubling, at most 1 h, with ±20 % jitter that is fixed per delivery), up to 8 attempts in all (PROBEWARD_DELIVERY_MAX_ATTEMPTS, 1 to 50). |
Retry-After on a retried answer | Honoured, in seconds or as an HTTP date, up to 6 hours; the longer of it and the back-off applies. |
| Other 4xx, invalid URL, a redirect to another host | Permanent: not retried. |
A delivery that runs out of attempts, or fails permanently, is marked exhausted. It stays visible in GET /api/v1/deliveries/attention, on the incident (GET /api/v1/incidents/{id}) and on the timeline. Delivery status is kept apart from sensor health: a receiver that is down never changes what Probeward says about the monitored device. A disabled or deleted destination fails its own deliveries permanently and holds up nobody else's.
Pending deliveries survive a restart: they are stored in the same transaction as the notification event, and a delivery whose worker stopped mid-send is retried once its lease (2 minutes) runs out.
Event types
event_type | Sent when |
|---|---|
opened | A sensor's consecutive failures reach its failure count, a limit is crossed, or a probe stops reporting. One per incident. |
repeated | Every repeat interval while the incident is open and not acknowledged. incident.repeat_number counts them. |
recovered | The first good poll after an incident, to the destinations that received opened. incident.duration_secs is the whole outage. |
test | An admin used Send test notification. test is true; there is no incident, sensor or trigger. |
simulated | Anything caused by Simulate Error: simulated is true and simulated_event says whether it stands for an opening, a reminder or a recovery. |
Simulated and test notifications are unmistakable in every channel: the payload flags them, summary starts with SIMULATED or TEST, the email subject carries the same words, and the first line of every email, Discord and Telegram message says that nothing is wrong. Automations that act on webhooks should ignore anything with simulated or test set to true.
Fields
Optional fields are left out, never null, unless stated. Times are RFC 3339 in UTC.
| Field | Type | Meaning |
|---|---|---|
schema_version | integer | 1. A breaking change raises it; new optional fields may appear at any time, so ignore fields you do not know. |
event_id | uuid | Identifies this notification; stable across retries. |
event_type | string | See above. |
simulated_event | string, optional | For simulated: opened, repeated or recovered. |
simulated, test | boolean | See above. |
delayed | boolean, optional | Present, and true, only on an opening sent late because the destination's notification schedule was closed when the incident opened. See Notification schedules. |
occurred_at | time | When the engine decided to notify. |
summary | string | One line, e.g. DOWN web1 / HTTP — connection refused or RECOVERED web1 / HTTP — after 4 min. |
incident | object, optional | id, severity (warning or down), opened_at, closed_at (on recovery), duration_secs, repeat_number, acknowledged. |
incident.acknowledged | object, optional | by_user_id, by_name, at, note. |
probe | object, optional | id, name of the probe that runs the check. |
device | object, optional | id, name, address. |
group_path | array | The groups above the device, outermost first, each id and name. |
sensor | object, optional | id, name, kind. Absent for a probe incident. |
status | object, optional | The sensor's state when the notification was made, below. |
trigger | object, optional | Why the incident exists, below. |
last_good | object, optional | The last successful poll: started, finished, age_secs (to occurred_at), health, message, channels (key, name, unit, value; value may be null; label is present when the channel gives the value a label such as Running). |
dependency_path | array | The checks this sensor depends on, nearest first: sensor, device, kind (master_check, device or sensor) and their status. |
suppressed | array | Checks held back because this one is failing: sensor, device, by_sensor_id, reason. They are not paged on their own. |
recent_changes | array | The device's latest state changes, oldest first: at, sensor_id, sensor_name, before, after (each a status). |
links | object | ui_incident, ui_sensor, api_incident, api_sensor, api_deliveries, built from the configured public URL. |
status
Health, freshness and handling are separate, as everywhere in Probeward.
To decide whether something is broken, read failing and the trigger, not health: a web server that refuses connections arrives with failing: true, freshness: collection_failure and trigger unreachable, while health still says up from its last successful poll.
health:up,warningordown, from the last successful poll only. Absent until one succeeds. A failing poll does not change it.freshness:freshafter a successful poll,collection_failureafter a failed one,unknownwithunknown_reason(never_sampled,stale,probe_not_reporting,awaiting_poll_after_pause,awaiting_poll_after_reconnect,awaiting_poll_after_schedule,awaiting_poll_after_maintenance,sources_unknown).failing: the last poll failed or health isdown.handling:acknowledged,paused,simulated,suppressed_by_sensor_id,awaiting_dependency_sensor_id, and when they applymaintenance(window_id,name,until,stop_polling) andoutside_schedule(schedule_id,name,untilwhen it next opens). Nothing is sent while a sensor is in maintenance, somaintenancemostly appears inrecent_changes.
trigger
Tagged by type:
type | Fields |
|---|---|
failure | kind (timeout, unreachable, auth_failed, protocol, config, internal), message. A collection failure: Probeward could not get a reading. |
limit | channel (key, name, unit), value, value_label (optional, as label above), limit, bound (error_max, error_min, warn_max, warn_min), health. |
verdict | health, message: the check's own judgement, for example an unexpected HTTP status. |
simulated | by_user_id, by_name. |
probe_not_reporting | none. |
Channel names, units and labels
The name and unit of a channel are the ones the sensor page shows: the sensor's parameters first, then the sensor kind's template, then what the sensor's polls reported (a script's or plugin's own names, a push sender's). For a script, plugin, push, Prometheus, REST or custom SNMP sensor they therefore name the channel as its owner did. The text is untrusted, bounded (names 80 characters, units 16, no control characters) and is escaped for each destination: HTML in email, Markdown in Discord, and Telegram messages carry no markup. A receiver of the webhook should treat the fields as text too. See Channel names and units.
Notification schedules
A notification rule may name a schedule, and while it is closed that destination is told nothing; the rules are in schedules and maintenance windows. What a webhook receiver sees:
- An incident that opened while the schedule was closed, and is still open when it opens, arrives as one
openedevent at that moment, withdelayed: trueand a summary ending in(delayed, open for 2 h 5 min). Its reminders count from then. - Reminders and recoveries that fell while the schedule was closed are never sent, so an incident that opened and recovered inside the closed time never arrives at all.
What is never in a payload
Credential values of any kind: SNMP communities and passwords, SSH passwords and keys, SMTP logins, bearer tokens, webhook, Discord and Telegram secrets, signing keys. The payload builder is never given them, and a test plants marker values in every credential kind and checks that none reaches a payload, email, timeline entry, API response or log.
Example
{
"schema_version": 1,
"event_id": "01a21dea-1f0c-7a51-9a0e-6f1d3c2b4a10",
"event_type": "opened",
"simulated": false,
"test": false,
"occurred_at": "2026-11-27T09:14:02Z",
"summary": "DOWN web1 / HTTP — connection refused",
"incident": {
"id": "01a21dea-1f0b-7f00-8000-000000000001",
"severity": "down",
"opened_at": "2026-11-27T09:14:02Z",
"duration_secs": 0,
"repeat_number": 0
},
"probe": { "id": "01a21de0-0000-7000-8000-000000000001", "name": "Local probe" },
"device": { "id": "01a21dea-02cc-7179-a200-5058f094870c", "name": "web1", "address": "192.0.2.10" },
"group_path": [{ "id": "01a21dea-02c0-7000-8000-000000000002", "name": "Servers" }],
"sensor": { "id": "01a21dea-02cf-7391-b691-15f4e0ccad85", "name": "HTTP", "kind": "http_status" },
"status": {
"health": "up",
"freshness": "collection_failure",
"failing": true,
"handling": { "acknowledged": false, "paused": false, "simulated": false }
},
"trigger": { "type": "failure", "kind": "unreachable", "message": "connection refused" },
"last_good": {
"started": "2026-11-27T09:12:01Z",
"finished": "2026-11-27T09:12:01Z",
"age_secs": 121,
"health": "up",
"channels": [{ "key": "response_time", "name": "Response time", "unit": "ms", "value": 38 }]
},
"dependency_path": [],
"suppressed": [],
"recent_changes": [],
"links": {
"ui_incident": "https://monitor.example.org/incidents/01a21dea-1f0b-7f00-8000-000000000001",
"ui_sensor": "https://monitor.example.org/sensors/01a21dea-02cf-7391-b691-15f4e0ccad85",
"api_incident": "https://monitor.example.org/api/v1/incidents/01a21dea-1f0b-7f00-8000-000000000001",
"api_sensor": "https://monitor.example.org/api/v1/sensors/01a21dea-02cf-7391-b691-15f4e0ccad85",
"api_deliveries": "https://monitor.example.org/api/v1/deliveries/attention"
}
}