Notifications API
Notifications endpoints exposed by the Devotel CPaaS API Base path:/api/v1/notifications
Endpoint count: 12
List notifications
GET /api/v1/notifications/unread_only, kind, severity, source_pillar, and category query filters narrow the feed; a malformed filter value degrades to no filter rather than failing the read.
List notification digest recipients
GET /api/v1/notifications/digest/recipientsGet notification digest settings
GET /api/v1/notifications/digest/settingsList notifications across all product pillars
GET /api/v1/notifications/globalsince and until ISO-8601 time-window bounds so the global notification center can request ranges like the last 24 hours or this week without walking the cursor backwards. The same pillar and category filters as the list endpoint apply.
Stream notifications in real time (SSE)
GET /api/v1/notifications/stream?ot=<token> (EventSource cannot send headers); server-side callers may pass ?token=<api-key>. The stream emits periodic heartbeats and enforces a per-tenant concurrent-connection cap.
Preview the next notification digest
POST /api/v1/notifications/digest/preview?hours= (1-168) query parameter to override the lookback window. Takes no request body.
Mark all notifications as read
POST /api/v1/notifications/read-allMint a one-time SSE stream token
POST /api/v1/notifications/sse-token?ot=<token>. When the token store is unavailable the endpoint instead returns 200 with ot: null and a fallback hint so the client can connect using the legacy ?token= credential. Takes no request body.
Mark a notification as read
PUT /api/v1/notifications/{id}/readid, as read for the authenticated user and returns the updated notification. Idempotent: re-marking an already-read notification succeeds without changing state. Returns 404 when the id does not belong to the caller. Takes no request body.
string
required
—
Update notification digest settings
PUT /api/v1/notifications/digest/settingsenabled, frequency (daily or weekly), and categories; at least one field is required. Returns the full updated settings.
boolean
Whether periodic digests are sent for the organization.
string (enum: daily|weekly)
How often the digest is sent.
string (enum: billing|security|messaging|campaigns|agents|system)[]
Categories to include in the digest. An empty array includes all categories.
Update a digest recipient’s opt-in
PATCH /api/v1/notifications/digest/recipients/{user_id}user_id, receives the notification digest. Owner or admin only. Returns 404 when the user is not a member of the organization.
string
required
—
boolean
required
Whether this member receives the notification digest.
Dismiss a notification
DELETE /api/v1/notifications/{id}id, for the authenticated user. Backs the per-row dismiss control in the notification center. Returns 404 when the id does not belong to the caller. Takes no request body.
string
required
—