Our Admin API v2 supports sending text-based push notifications to any end user programmatically. This is useful for event-driven alerts triggered from Narmi Functions, staff user workflows, or third-party integrations built on Narmi Open.
Overview
When a push notification is created via the API, a background task is queued to deliver the message to all of the user's registered FCM devices. The notification record persists in the platform, providing an audit trail for debugging and review.
Products supported: Consumer Banking, Business Banking, Narmi Command (staff user workflows), and Narmi Open (Narmi Functions).
Endpoints
| Method | Path | Description |
|---|---|---|
POST |
/push_notifications/ |
Create a push notification |
GET |
/push_notifications/ |
List all push notifications |
GET |
/push_notifications/{uuid}/ |
Retrieve a specific notification |
Required Scopes
| Action | Scope |
|---|---|
| Create | push_notifications:write |
| List / Retrieve | push_notifications:read |
Create a Push Notification
Headers
| Header | Value |
|---|---|
Authorization |
Bearer <token> |
Content-Type |
application/json |
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
user |
string (UUID) |
Yes | The UUID of the target user's profile |
message |
string |
Yes | The notification body text |
title |
string |
No | The notification title (displayed above the message) |
Example Request
curl --request POST \
--url https://api.sandbox.narmi.dev/v2/admin/push_notifications/ \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"user": "76f62a58-5404-486d-9afc-07bded328704",
"message": "string",
"title": "string"
}'
Response
A successful request returns 201 Created with the notification record. The initial status is PENDING; delivery happens asynchronously.
{
"uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
"author": 0,
"status": "PENDING",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"user": "76f62a58-5404-486d-9afc-07bded328704",
"message": "string",
"title": "string"
}
Status Values
| Status | Description |
|---|---|
PENDING |
Notification has been queued but delivery has not started. |
RECEIVED |
Background task is actively delivering to the user's devices. |
SUCCESS |
Delivery was attempted to all registered devices. |
FAILURE |
Delivery to the user's devices failed. |
RETRY |
Delivery is being retried. |
Note:
SUCCESSindicates that delivery was attempted to all of the user's registered FCM devices — not that every device successfully received the notification. If the user has no registered devices, the status will still transition toSUCCESS.
Retrieving Notifications
List All Notifications
GET /push_notifications/
Retrieve a Specific Notification
GET /push_notifications/{uuid}/
Use the uuid field returned in the create response.
Delivery Behavior
- Notifications are delivered asynchronously via a Celery background task.
- The task iterates over all of the user's active FCM devices and sends the message to each.
- The task includes retry logic to handle transient failures.
- Each notification record is persisted and can be retrieved for auditing or debugging.
Limitations
The current implementation does not support:
- Batch sending to multiple users in a single request
- Scheduled or delayed notifications
- Rich notifications (images, action buttons, deep links)
- SMS or email delivery
- Delivery receipts or read tracking
- Querying notification history by user
These capabilities may be added in future iterations.