Overview
SchedKit uses Web Push (VAPID) to deliver notifications to subscribed browsers. Notifications fire automatically onalert signals, urgent/high incidents, and upcoming assignments.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Subscribe devices to web push and send test notifications.
alert signals, urgent/high incidents, and upcoming assignments.
| Method | Path | Description |
|---|---|---|
GET | /v1/push/vapid-public | Get VAPID public key |
POST | /v1/push/subscribe | Register a push subscription |
DELETE | /v1/push/subscribe | Remove a push subscription |
POST | /v1/push/test | Send a test notification |
{ "publicKey": "BIa_HKGuR_doeyRc..." }
const reg = await navigator.serviceWorker.ready;
const sub = await reg.pushManager.subscribe({
userVisibleOnly: true,
applicationServerKey: vapidPublicKey
});
await fetch('/v1/push/subscribe', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ subscription: sub.toJSON() })
});
{ "endpoint": "https://fcm.googleapis.com/fcm/send/..." }
{}
| Trigger | Notification |
|---|---|
alert signal | [~] ALERT SIGNAL — {operator}: {note} |
urgent or high incident created | [!] URGENT — {title} |
alert-source incident | [!] {title} |
| Upcoming assignment | [◷] Upcoming: {event} in 15 min |