Notifications
Configure where alerts are delivered and manage browser push subscriptions. All endpoints are authenticated with a Bearer JWT (see Authentication). The notification-channel endpoints need the Notifications or Integrations settings tab. Any role can list channels; creating, changing, deleting and testing them needs an operator or administrator role that may manage notifications.
Endpoints
| Method | Path | Description |
|---|---|---|
GET | /api/v1/notification-channels | List notification channels |
POST | /api/v1/notification-channels | Create a channel |
PUT | /api/v1/notification-channels/{channel_id} | Update a channel |
DELETE | /api/v1/notification-channels/{channel_id} | Delete a channel |
POST | /api/v1/notification-channels/{channel_id}/test | Send a test notification |
GET | /api/v1/notification-channels/{channel_id}/deliveries | What the channel sent, and whether it arrived |
GET | /api/v1/push/vapid-public-key | Get the public key for web-push |
POST | /api/v1/push/subscribe | Register a web-push subscription |
DELETE | /api/v1/push/subscribe | Remove a web-push subscription |
GET | /api/v1/notifications/marks | What you have read, dismissed and acknowledged in the bell |
PATCH | /api/v1/notifications/marks | Add or remove marks of one kind |
Notification channels
A channel describes one delivery destination. Channel-specific settings go in the config object; secret values are masked in responses. Webhook and chat destinations must use HTTPS and a public host.
Supported channel_type values: email, slack, webhook, sms, msteams, telegram, pagerduty, opsgenie, servicenow, jira. name is 1–200 characters.
A webhook's url, a Slack or Teams webhook_url, every webhook header value and other credentials are stored encrypted and come back as ***. Send *** unchanged on an update to keep the stored value.
Each type needs these config keys, checked when the channel is saved (422 otherwise):
channel_type | Required config |
|---|---|
email | to_emails, a list of addresses (a single to_email is still accepted) |
slack, msteams | webhook_url (HTTPS, public host) |
webhook | url (HTTPS, public host); optional headers, a flat map of strings with no line breaks |
sms | phone in E.164 form with the country code, for example +15551234567 |
telegram | bot_token and chat_id |
pagerduty | integration_key (at least 10 characters) |
opsgenie | api_key (at least 10 characters) |
servicenow | instance_url (HTTPS), username, password |
jira | base_url (HTTPS), email, api_token (at least 10 characters), project_key |
Create a channel
POST /api/v1/notification-channels
Email:
{
"name": "Maintenance Team Email",
"channel_type": "email",
"config": { "to_emails": ["maintenance@example.com"] },
"is_active": true,
"notify_on_alert": true
}
Slack:
{
"name": "Alerts Slack",
"channel_type": "slack",
"config": { "webhook_url": "https://hooks.slack.com/services/T00/B00/XXXX" },
"is_active": true,
"notify_on_alert": true
}
Generic webhook:
{
"name": "Custom Integration",
"channel_type": "webhook",
"config": {
"url": "https://example.com/webhook",
"headers": { "X-Custom-Header": "value" }
},
"is_active": true,
"notify_on_alert": true
}
Response:
{
"id": "...",
"tenant_id": "...",
"channel_type": "slack",
"name": "Alerts Slack",
"config": { "webhook_url": "***" },
"is_active": true,
"notify_on_alert": true,
"created_by": "USER_UUID",
"created_at": "2026-08-05T10:00:00Z",
"last_success_at": null,
"last_failure_at": null,
"last_error": null
}
last_success_at, last_failure_at and last_error are null until the channel has sent something.
Test a channel
POST /api/v1/notification-channels/{channel_id}/test
Sends a test message to the channel and reports whether it succeeded.
{ "success": true, "error": null }
When the send fails, success is false and error says why. The HTTP status is 200 either way, so read success.
Delivery log
GET /api/v1/notification-channels/{channel_id}/deliveries?limit=20
The channel's latest sends, newest first (limit default 20, up to 200), successes included, so a quiet week can be told from a broken integration. Needs an operator or administrator role with the Notifications or Integrations settings tab; 404 for a channel that is not yours.
[
{
"id": "5d1b8f0e-2c3a-4e6f-9a7b-1c2d3e4f5a6b",
"channel_id": "ab12cd34-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
"alert_id": "3f2504e0-4f89-41d3-9a0c-0305e82c3301",
"channel_type": "slack",
"status": "failed",
"attempts": 3,
"error": "Slack answered 404: the webhook URL no longer exists",
"provider_status": 404,
"created_at": "2026-08-07T11:00:00Z",
"completed_at": "2026-08-07T11:00:09Z"
}
]
status is delivered or failed. alert_id is null for test sends and prediction notifications; provider_status (the provider's HTTP status) is null when no answer came (a timeout, or an address that does not resolve).
What to do next
When an alert has a playbook, its notifications carry it under a "What to do next" heading: the safety note first, then the numbered checks, the likely cause and the fix. Email (text and HTML), Slack and Microsoft Teams show all of it. A web push adds the safety note and the first check (or the fix, when there are no checks) to the alert's message, each cut to 120 characters, and opens the alert, where the whole playbook is. A webhook receives it as a playbook object in the payload:
{
"playbook": {
"safety_note": "Lock out the spindle drive before opening the guard.",
"check_steps": ["Check the bearing housing temperature", "Check the belt tension"],
"likely_cause": "Bearing wear on the drive end.",
"fix": "Replace the drive-end bearing."
}
}
An alert without a playbook has no playbook key.
Web push
Deliver alerts as browser push notifications. See the Webhook & delivery setup guide for end-to-end wiring.
Get the public key
GET /api/v1/push/vapid-public-key
{ "public_key": "BMod…", "enabled": true }
When enabled is false, web push is not available and subscribe calls return 503.
Subscribe
POST /api/v1/push/subscribe
Register the browser PushSubscription for the current user's device. Returns 201 Created. The endpoint must be an HTTPS address on a browser vendor's push service, otherwise 422.
{
"endpoint": "https://push.example.com/subscription/abc123",
"keys": { "p256dh": "BEl…", "auth": "k9X…" },
"user_agent": "Mozilla/5.0 …"
}
{ "subscribed": true }
Unsubscribe
DELETE /api/v1/push/subscribe
Send the same body as when subscribing (endpoint and keys) to remove the subscription. Returns 404 if no matching subscription exists.
Notification marks
What a person has done with the notifications in the portal's bell, kept per user on the server so it follows them between devices: the alerts they have read, the announcements they have read or dismissed, and the standing notifications (low stock, maintenance due, and so on) they have acknowledged. Each person reads and changes only their own; service accounts are refused with 403.
Read your marks
GET /api/v1/notifications/marks
{
"alert_read": ["7c9e6679-7425-40de-944b-e07fc1f90ae7"],
"announcement_read": [],
"announcement_dismissed": ["2f1b3c4d-..."],
"condition_acknowledged": ["low_stock:1b4e28ba-2fa1-11d2-883f-0016d3cca427"]
}
Change your marks
PATCH /api/v1/notifications/marks
{ "kind": "condition_acknowledged", "add": ["low_stock:p2"], "remove": ["low_stock:p1"] }
| Field | Type | Description |
|---|---|---|
kind | string | One of alert_read, announcement_read, announcement_dismissed, condition_acknowledged |
add | string[] | Keys to mark; adding one twice keeps one. Up to 500 per request, each 1–255 characters |
remove | string[] | Keys to unmark. Up to 500 per request |
Returns 204 No Content. Read-alert marks are kept for 7 days, then dropped: the bell only lists a day of alerts.