Skip to content

Notifications and delivery (API and internals)

Section titled “Notifications and delivery (API and internals)”

This page is for integrators and developers who read a user’s notifications from their own client, register devices for push, or need to explain why a notification did or did not reach someone. It covers the stored notification, the user-facing notification API, push registration and delivery, live delivery over the real-time connection, and the email and SMS paths.

The end-user view is Receiving Notifications. How an organization configures templates, triggers and channels is in Notification configuration. The generated endpoint reference is under notification-api.

ChannelWhere the user sees itProduced by
In-appThe portal’s bell panel and All Notifications page; the mobile app’s Notifications tabA notification entry created for the user
PushThe user’s registered mobile devices, even with the app closedThe in-app notification, mirrored to the user’s device tokens through Firebase Cloud Messaging
EmailThe user’s mailboxEmail events: automation emails, password reset, API-token confirmation
SMSThe user’s phoneSMS events from automations (delivery only; there is no SMS inbox)

A stored notification carries a channels list, but the only channel value defined is In-app (NotificationChannelTypeEnum.InApp = 0). Email and SMS are not stored on the notification record; they are separate events.

The web portal does not receive push. The frontend ships a generated client for the push-token endpoints but never registers a token, and has no browser push or service-worker messaging. Web users get notifications in the bell panel, live while the portal is open (see Live delivery). Push is a mobile-app channel only.

Notifications are event-driven. When something happens (an entry is created, a workflow step is reached, a password reset is requested, a file finishes generating), the notification service decides the channel(s), resolves recipients and content, and dispatches. Content is template-driven: templates contain tokens resolved at send time, so one template produces a personalized message per recipient. See Templates.

Each in-app notification is stored as a data entry, so it is administered like any other entry. It carries:

  • a title and content, both localized (for example English and Arabic);
  • an icon (for example file for a finished export);
  • an optional attachment (for example the generated file);
  • a reference to the item it is about, plus the module, so the client can link straight to it;
  • an optional in-app link Since 1.10 (see Links);
  • readAt, empty until the user opens it.

Every notification belongs to one user and one space. The API returns only the caller’s own notifications, only in the current space, and never archived ones. This is enforced on the server (NotificationController.additionalFilters filters by user id and current space and excludes archived entries), not just in the UI.

All calls are made as the signed-in user, in the space of the request host.

Returns the caller’s notification records in the current space. Standard filtering applies (paging, or only unread). The portal applies it for the user.

{
"count": 42,
"unreadCount": 5
}
  • count: notifications matching the current view.
  • unreadCount: those whose readAt does not exist or is null.

This drives the bell’s badge (shown as 99+ above 99).

Since 1.10 A dedicated index backs both calls (user and space), where every call used to scan the full notification collection, and a case-sensitivity mismatch in the count query was fixed, so unreadCount agrees with what the list returns.

Mark as read: PATCH /v1/my/{id}/mark-as-read

Section titled “Mark as read: PATCH /v1/my/{id}/mark-as-read”

Stamps readAt with the current time and flags the notification as read; it then stops counting toward unreadCount. Only the caller’s own notification in the current space can be marked; a request matching nothing is rejected.

There is no “mark all as read” and no delete endpoint. Marking is one notification at a time, and notifications leave the list only when archived elsewhere. (The portal’s translation files contain a “Mark All As Read” string, but no screen uses it.)

On mobile, tapping a notification marks it read and decrements the unread count optimistically, before the server confirms. If mark-as-read is rejected, the app rolls the change back so the counter stays accurate.

A notification may carry a link to a page inside the application. Clicking it, in the bell panel or on the notifications page, marks it read and navigates there. Only in-application addresses are followed; anything else is ignored and the notification opens as before (the record or view it refers to). The marketplace publishing flow uses this to send submitters and reviewers to the right package page. Configuring it: In-app link on a notification.

The All Notifications page always opens on its first page Since 1.6. (Earlier, returning to it could show the entries of the page you left while the page selector said page 1.)

When a delegation has forwarding switched on, the delegatee receives a copy of the delegator’s notifications (and emails) for the delegated scope while the delegation is active, never a duplicate of something already addressed to them. The copy carries the delegation, the delegator and the original target. Clients classify it as:

StateMeaningClient behaviour
CurrentThe session already acts for that delegatorOpens the original target directly
SwitchableOpening needs a switch into the delegationConfirms the switch, then opens the target
UnavailableThe delegation has ended, or another delegation is activeRendered disabled

The mobile app marks a forwarded notification read only when the open goes ahead, and never downloads the delegator’s attachment. Forwarded emails are a copy with the delegatee in CC (or BCC, if the delegator was BCC). Configuration: Delegatee copies. Mobile state handling: Delegation-forwarded notifications.

While a client is connected to the real-time service, a new notification is also pushed live over that connection, so the list and badge update without a reload. The web portal shows a toast with the notification’s title and content (or a generic “New Notification” message) and increments the unread count.

Since 1.10 The web portal ignores a live notification that belongs to a different space from the current one: no toast, no badge change. The live connection still carries all of the user’s notifications; the portal compares each notification’s space with the current space in the browser. A notification that does not name its space is shown rather than dropped. Before this, an automation whose execution covered several spaces could deliver the same notification into every open space session: one event, two identical pop-ups, and a badge counted twice. Reloading the list (GET /v1/my) was never affected, because the server scopes it to the current space.

Socket details: Real-time.

Registering a device: POST /v1/push-tokens

Section titled “Registering a device: POST /v1/push-tokens”
POST /v1/push-tokens
Body: { "token": "<device push token>" }

Behaviour (PushNotificationsTokensController.create):

  • A new token is stored and linked to the caller, with a lastUsedDate.
  • A token that already exists but belongs to another user (a shared device) is reassigned to the caller and its lastUsedDate refreshed.
  • The same token is never duplicated.

The mobile app obtains the device token from the push provider and registers it when the user signs in and grants notification permission. Revoking the permission on the device stops the alerts; the stored token simply stops receiving. The endpoint reference, including the Since 1.10 delete and invalidate operations, is in PushNotificationsTokens.

When an in-app notification is created, the notification service (CreatedNotificationHandler) mirrors it to the user’s devices if:

  1. the notification has the In-app channel;
  2. the user has at least one registered push token; and
  3. the notification has a usable title.

It sends the title and body to every registered token through Firebase Cloud Messaging (the fcm-sender service), which fans out to all devices at once (sendEachForMulticast) and plays the default alert sound on Apple devices. The push also carries data for deep-linking: the referenced item, module, icon, any attachment and the space’s base URL.

Delivery is best-effort: a stale token or an FCM rejection is logged and counted, but never stops the notification from appearing in the in-app list.

Since 1.10 Each device gets a push once, even if its token was registered more than once, and registrations are tidied: a token FCM reports as invalid is removed after the send, and a token not refreshed for 90 days (PUSH_TOKEN_STALE_AFTER_DAYS) is removed by the maintenance job. Signing in on the device again registers it afresh. Operator view: Push delivery and device-token upkeep.

Titles and bodies are stored per language, and the push sender picks the recipient’s language, falling back to the first available language rather than sending nothing.

Known limitation. User-language resolution in the notification service is a placeholder: getUserLanguage always returns en (services/notification-service/src/services/user.service.ts). In practice pushes go out in English when an English version exists, otherwise in the first available language. The in-app list returns all stored languages, so the clients display the user’s language.

Email events are sent by the email-sender service over SMTP. Typical emails:

  • Automation (trigger) emails: subject, HTML body, attachments, and a deep link to the item.
  • Password reset: a secure reset link (UserPasswordResetHandler).
  • API token generated: a confirmation to the associated address containing the token and a reminder to store it safely (AppTokenGeneratedHandler).

A link into the platform is built against the space’s own host and is shortened before it is embedded. If shortening fails, the full link is used. Reset and API tokens are kept out of the email log; see Notification configuration.

SMS events (typically from automations) are sent by the sms-sender service, which supports several regional carriers and gateways, for example EAND, EAND Bulk, SDG and Smart Dubai. Links are shortened first. Each send produces a delivery-status record (success or failure per recipient) tracked internally. Channel setup: SMS channel.

For a file produced in the background (for example an XLSX or PDF export), the FileGeneratedEventHandler creates an in-app notification titled “Your file is ready to download” with the file attached, mirrored to push.

Since 1.10 If a background list export fails part-way, no file is produced and no file-ready notification is sent, so a user is never handed a broken or half-written workbook.

There is no per-user notification preference or subscription API. The notification API exposes listing, counting, marking as read and device-token registration only; nothing turns channels on or off, mutes categories or sets a digest frequency.

  • In-app and push follow from whether a notification is created for the user and whether a device is registered with OS permission granted.
  • Email and SMS follow from how the triggering automation is configured and the contact details on the user’s profile.
User actionWhat the client does
See notificationsGET /v1/my (own, current space, not archived)
See unread countGET /v1/my/count → count / unreadCount
Open or clear onePATCH /v1/my/{id}/mark-as-read → stamps readAt
Get pop-ups on a phoneMobile app registers the device via POST /v1/push-tokens after permission is granted
Stop pop-upsRevoke notification permission on the device
Receive an exportFile-ready notification with the file attached
Open a forwarded notificationOpens directly, or confirms a switch into the delegation first

Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27