Notifying your users
A service knows that something happened: an invoice is overdue, a cold room is too warm, an export is ready. It does not know who should hear it, nor where they are. So each team builds its own: a table of messages, a bell in its own screens, a mail to a list kept by hand, and people who see the alert only if they happened to open that one application.
With Meerkat, the service sends one request to the gateway. The gateway knows who is signed in, in which tenant, with which roles, and which page is in front of them, since it served that page. It finds the people who may act, and shows it to them where they are. No push service to run, no list of devices to keep, no page to write.
One request
The service says what, for whom, and where it leads. It names the link by its own service name and the path it already knows; the gateway finds the public address.
curl -X POST http://meerkat:7070/api/notifications \
-H "Authorization: Bearer $MEERKAT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "overdue-INV-2026-0142",
"tenant": "Acme Logistics",
"roles": ["BILLING"],
"level": "warning",
"title": "Invoice INV-2026-0142 is overdue",
"body": "Northwind Traders has not paid the 4820.00 EUR due on 2026-10-20.",
"detail": { "service": "billing", "path": "/invoices/INV-2026-0142" },
"actions": [
{ "label": "Send a reminder", "service": "billing",
"path": "/invoices/INV-2026-0142/remind", "method": "POST" }
],
"channels": ["web", "mobile"]
}'
The id is the service's own: sending the same one again creates nothing, and it is how the service later replaces the message, withdraws it, or follows who acknowledged it. One message can go to every tenant at once: a person who belongs to several sees it once.
Only to those who may act on it
The audience starts from the tenant's members, narrowed to the roles or the people named, and keeps only those who may open what the message leads to: the billing team receives the overdue invoice only if the billing route lets them in. Rights are checked again each time the message is shown, so someone who left the tenant no longer sees it. Someone who joins the tenant or is given the role later receives the messages still live, and is told once, not once per message.
Seen where people work
- A count on the bell of the navigation bar, or on the account button without the bar, in every application they open.
- A drawer over the page, with each message's level, title, text, sender and time.
- A snackbar on the page in front of them the moment one arrives.
- A desktop notification when the tab is in the background, once they turned it on.
- A page that lists them all, with a search and filters, served by the gateway in your colours.
- A mail, when the service asks for one.
- Their phone: a native notification, even with the app closed, sealed end to end for the device.

Actions and acknowledgements
A message either offers actions or asks to be acknowledged.
An action is a button, two at most, that calls your service as the person who pressed it, through the gateway, with its session: "Send a reminder", "Approve", "Open the ticket". The service authenticates the call like any other, and the reader sees its answer under the message, from the drawer, the page, the desktop notification or the phone.
An acknowledgement is for what must be seen: by one reader for everyone (the first who acknowledges closes it for all) or by each reader. Until it is given, the message cannot be put away. Your service is called back at each acknowledgement, the console shows who did and who has not yet, live, and the audit trail keeps who and when.
Kept up to date by the service
The service stays in charge of what it sent. It replaces a message with a newer one, which takes its place; it withdraws one that no longer holds, which leaves every list with nothing in its place; and when the work is done, it marks the message read or closed for everyone, or for the one person who did it. A message can also be sent as an exercise, labelled as such everywhere it shows, to practise a procedure with a realistic audience.
Under control
Notifications are turned on in three places, each able only to turn them off for its part: the gateway's administrator, the application's administrator and each tenant's administrator. A tenant's administrator sees what was sent to their tenant, who read it and who acknowledged it, withdraws a message, and can send one from the console. Every publication, replacement, withdrawal and acknowledgement is written in the audit trail. Which services may publish is decided on the console too, the way the scheduler's callers are.


Go further
- Notifying your users: for the developer of the service, the message field by field.
- Notifications in the console: for the administrators.
- Meerkat Companion: the notifications on the phone.
- Inside your applications: the bell and the rest of what the gateway adds to your pages.