ReferenceHTTP API
notifications
The notifications router: 2 hand-written core methods, with tier, input and output.
A core router of the hub (not a capability), source server/backend/src/api/core/notifications.router.ts. Its methods are called at /trpc/notifications.<method>. A core method checks only the tier: a scoped token that is signed in reaches every protected method here, unless the method itself refuses it. See How to call and Authorization.
Inputs and outputs are the validation schemas as written in the source.
| Method | Kind | Tier |
|---|---|---|
getRouting | query | protected |
setRouting | mutation | admin |
notifications.getRouting
- Kind: query —
GET /trpc/notifications.getRouting - Tier: protected — any signed-in principal
- Source:
server/backend/src/api/core/notifications.router.ts:22 - Try it: open
/system/api-explorer?method=notifications.getRoutingon your hub
Input
z.void()Output
z.record(z.string(), z.array(NotificationTargetRefSchema))notifications.setRouting
- Kind: mutation —
POST /trpc/notifications.setRouting - Tier: admin — an administrator only
- Source:
server/backend/src/api/core/notifications.router.ts:35 - Try it: open
/system/api-explorer?method=notifications.setRoutingon your hub
Input
z.object({ category: z.string(), targets: z.array(NotificationTargetRefSchema) })Output
z.void()