Notifications Guide
Overview
The notification domain is where SYSTEM administrators define delivery channels and the reference data that powers notification configuration forms. Although the caller is a SYSTEM user, the published notification endpoints live under /web/v1/notification-* rather than /web/v1/tenant/*.
What This Domain Covers
- notification channel type reference data
- channel querying and operational inspection
- channel creation and partial updates
- channel activation and deactivation
- channel lifecycle state review
Common Prerequisites
Authorization: Bearer <accessToken>X-PORTAL-ACCESS-CODE: <system-portal-code>- Turnstile token support where the gateway enforces it
- institution-level permission to manage notification channels
Shared Headers
bash
X-PORTAL-ACCESS-CODE: <system-portal-code>
Authorization: Bearer <accessToken>
Content-Type: application/jsonSome deployments also require Turnstile verification on the authenticated notification calls:
bash
X-Turnstile-Token: <turnstile-token>Common Endpoint Set
POST /web/v1/notification-channel-types/queryPOST /web/v1/notification-channels/queryPOST /web/v1/notification-channels/command/createPOST /web/v1/notification-channels/command/updatePOST /web/v1/notification-channels/command/activatePOST /web/v1/notification-channels/command/deactivate
Typical Operational Sequence
- load reference channel types and status constants
- query existing channels for the target institution
- create a new channel in
PENDING - update credentials or metadata if validation feedback requires changes
- activate the channel for production use
- deactivate the channel during maintenance or incident response
Decision Points
- whether the UI is reference-data only or needs full channel administration
- whether the environment wants a channel staged in
PENDINGor activated immediately after creation - whether the target institution reuses an existing email channel or creates a new dedicated one
- whether Turnstile is enforced on these authenticated endpoints in the target deployment
Error Handling
4010means the JWT is missing, expired, or not permitted to manage channels4030often indicates Turnstile validation failure on the gateway4040on update or activate means the channel ID is stale or wrong- validation failures typically come from incomplete email configuration
- never assume a non-
ACTIVEchannel is ready for delivery even if creation succeeded
Recommended Reading Order
- start with Channel Operations and Reference Data
- pair it with institution or account admin flows if ownership and permissions are still being established