Notifications
Introduction
Notifications are user-specific records produced by resources with the Notifications capability. Each record identifies its recipient, optional target resource, display payload, and seen/read state.
NotificationSettings are selectable delivery categories that departments and supported resources can reference. Global trigger and retention behavior is managed through the administration settings endpoints on this page.
The data.body field and the body of a generic notification use the shared Rich Text HTML format.
Model Definition
Relations
targetable
Resource producing the notification
Morph to
targetable_type, targetable_id
data contains title, body, and url. Notification type and targetable aliases depend on the producing resource; use the values returned by the API instead of inferring support from an arbitrary polymorphic relation.
List
List visible Notifications for the current authenticated user.
Definition
GET /api/notifications
Request Keys
selects
string
All fields
Comma-separated fields to return.
relations
string
Default relations
Pipe-separated relations to include.
limit
integer
No limit
Maximum number of notifications.
filter
object
No filters
Filters, for example unread or notification type.
Behavior
Only notifications belonging to the authenticated user are returned.
Example Request
Example Response
Count
Count unread Notifications for the current authenticated user.
Definition
GET /api/notifications/count
Request Keys
filter
object
No filters
Filters applied before counting the authenticated user's notifications.
Example Request
Example Response
List by Targetable Type
List visible Notifications for one targetable type.
Definition
GET /api/notifications/type/{targetableType}
Route Parameters
targetableType
string
Target resource alias.
Request Keys
selects
string
All fields
Comma-separated fields to return.
limit
integer
No limit
Maximum number of notifications.
Example Request
Example Response
List by Targetable
List visible Notifications for one targetable entity.
Definition
GET /api/notifications/type/{targetableType}/{targetableId}
Route Parameters
targetableType
string
Target resource alias.
targetableId
string/integer
Target resource ID.
Request Keys
selects
string
All fields
Comma-separated fields to return.
Example Request
Example Response
Show
Show one visible Notification.
Definition
GET /api/notifications/{notification}
Route Parameters
notification
UUID
Notification ID belonging to the authenticated user.
Request Keys
selects
string
All fields
Comma-separated fields to return.
relations
string
Default relations
Pipe-separated relations to include.
Example Request
Example Response
Create Generic Notifications
Create generic Notifications for selected users.
Definition
POST /api/notifications
Request Keys
title*
string
-
Display title.
body*
string
-
HTML body.
url*
string
-
Destination URL.
department_ids
integer[]
-
Existing departments whose users receive the notification. Required without user_ids.
user_ids
integer[]
-
Existing direct recipients. Required without department_ids.
Keys with * are required.
Behavior
Department members and direct users are merged and de-duplicated. Delivery runs asynchronously, so the endpoint confirms dispatch but does not return the generated per-user records.
Example Request
Example Response
Update Unread for Current User
Update unread Notifications for the current authenticated user.
Definition
PUT /api/notifications
Request Keys
seen_at
datetime
-
Required without read_at.
read_at
datetime
-
Required without seen_at; also supplies seen_at when omitted.
filter
object
No filters
Optional filters applied before updating unread records.
Example Request
Example Response
Update by Targetable Type
Update Notifications for one targetable type.
Definition
PUT /api/notifications/type/{targetableType}
Route Parameters
targetableType
string
Target resource alias.
Request Keys
seen_at
datetime
-
Required without read_at.
read_at
datetime
-
Required without seen_at; also supplies seen_at when omitted.
Example Request
Example Response
Update by Targetable
Update Notifications for one targetable entity.
Definition
PUT /api/notifications/type/{targetableType}/{targetableId}
Route Parameters
targetableType
string
Target resource alias.
targetableId
string/integer
Target resource ID.
Request Keys
seen_at
datetime
-
Required without read_at.
read_at
datetime
-
Required without seen_at; also supplies seen_at when omitted.
Example Request
Example Response
Update
Update one existing Notification.
Definition
PUT /api/notifications/{notification}
Route Parameters
notification
UUID
Notification ID belonging to the authenticated user.
Request Keys
seen_at
datetime
-
Required without read_at.
read_at
datetime
-
Required without seen_at; also supplies seen_at when omitted.
Example Request
Example Response
List NotificationSettings
List available NotificationSettings.
Definition
GET /api/notification-settings
Request Keys
selects
string
All fields
Comma-separated fields to return.
relations
string
Default relations
Pipe-separated relations to include.
Example Request
Example Response
Show NotificationSetting
Show one NotificationSetting.
Definition
GET /api/notification-settings/{notificationSetting}
Route Parameters
notificationSetting
integer
NotificationSetting ID.
Request Keys
selects
string
All fields
Comma-separated fields to return.
relations
string
Default relations
Pipe-separated relations to include.
Example Request
Example Response
Admin: Reset
Reset Notifications in administration scope.
Definition
DELETE /api/administration/notifications/reset
Behavior
This permanently deletes every stored notification for the tenant. Notification settings are not changed.
Example Request
Example Response
Last updated