Skip to content

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-Id equals the payload's event_id and is identical on every retry of the same notification. Receivers should deduplicate on it: delivery is at least once.
  • X-Probeward-Delivery-Attempt starts 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:

  1. Split the header on , and take t and v1.
  2. Reject the request if t is more than a few minutes away from your clock (replay).
  3. Compute HMAC-SHA256(key, t + "." + raw_body) over the body bytes exactly as received, before any JSON parsing, and compare it with v1 in 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 ​

AnswerWhat happens
2xxDelivered.
408, 429, 5xx, connection error, timeoutRetried 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 answerHonoured, 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 hostPermanent: 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_typeSent when
openedA sensor's consecutive failures reach its failure count, a limit is crossed, or a probe stops reporting. One per incident.
repeatedEvery repeat interval while the incident is open and not acknowledged. incident.repeat_number counts them.
recoveredThe first good poll after an incident, to the destinations that received opened. incident.duration_secs is the whole outage.
testAn admin used Send test notification. test is true; there is no incident, sensor or trigger.
simulatedAnything 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.

FieldTypeMeaning
schema_versioninteger1. A breaking change raises it; new optional fields may appear at any time, so ignore fields you do not know.
event_iduuidIdentifies this notification; stable across retries.
event_typestringSee above.
simulated_eventstring, optionalFor simulated: opened, repeated or recovered.
simulated, testbooleanSee above.
delayedboolean, optionalPresent, and true, only on an opening sent late because the destination's notification schedule was closed when the incident opened. See Notification schedules.
occurred_attimeWhen the engine decided to notify.
summarystringOne line, e.g. DOWN web1 / HTTP — connection refused or RECOVERED web1 / HTTP — after 4 min.
incidentobject, optionalid, severity (warning or down), opened_at, closed_at (on recovery), duration_secs, repeat_number, acknowledged.
incident.acknowledgedobject, optionalby_user_id, by_name, at, note.
probeobject, optionalid, name of the probe that runs the check.
deviceobject, optionalid, name, address.
group_patharrayThe groups above the device, outermost first, each id and name.
sensorobject, optionalid, name, kind. Absent for a probe incident.
statusobject, optionalThe sensor's state when the notification was made, below.
triggerobject, optionalWhy the incident exists, below.
last_goodobject, optionalThe 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_patharrayThe checks this sensor depends on, nearest first: sensor, device, kind (master_check, device or sensor) and their status.
suppressedarrayChecks held back because this one is failing: sensor, device, by_sensor_id, reason. They are not paged on their own.
recent_changesarrayThe device's latest state changes, oldest first: at, sensor_id, sensor_name, before, after (each a status).
linksobjectui_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, warning or down, from the last successful poll only. Absent until one succeeds. A failing poll does not change it.
  • freshness: fresh after a successful poll, collection_failure after a failed one, unknown with unknown_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 is down.
  • handling: acknowledged, paused, simulated, suppressed_by_sensor_id, awaiting_dependency_sensor_id, and when they apply maintenance (window_id, name, until, stop_polling) and outside_schedule (schedule_id, name, until when it next opens). Nothing is sent while a sensor is in maintenance, so maintenance mostly appears in recent_changes.

trigger ​

Tagged by type:

typeFields
failurekind (timeout, unreachable, auth_failed, protocol, config, internal), message. A collection failure: Probeward could not get a reading.
limitchannel (key, name, unit), value, value_label (optional, as label above), limit, bound (error_max, error_min, warn_max, warn_min), health.
verdicthealth, message: the check's own judgement, for example an unexpected HTTP status.
simulatedby_user_id, by_name.
probe_not_reportingnone.

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 opened event at that moment, with delayed: true and 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 ​

json
{
  "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"
  }
}

AGPL-3.0-only