unreadCount integer suitable for driving notification badge indicators in your UI.
Endpoint
Headers
Bearer token. Format:
Bearer <token>Response
true on a successful request.Notification payload.
Retrieve the authenticated user’s 50 most recent in-app notifications ordered newest first, plus an unreadCount integer for badge display in your UI.
unreadCount integer suitable for driving notification badge indicators in your UI.
GET /v1/notifications
Bearer <token>true on a successful request.Show properties
Show properties
info, warning, success, or error.true if the user has already read this notification.null.curl --request GET \
--url https://api.nyotaimara.com/v1/notifications \
--header 'Authorization: Bearer <token>'
{
"success": true,
"data": {
"notifications": [
{
"id": "ntf_01j9...",
"title": "Order Delivered",
"message": "Order #ord_01j9 has been delivered to the customer.",
"type": "success",
"isRead": false,
"createdAt": "2025-04-26T14:30:00.000Z",
"actionUrl": "/commerce/orders/ord_01j9..."
},
{
"id": "ntf_01j8...",
"title": "Low Inventory Warning",
"message": "Product SKU-42 has only 3 units remaining at Warehouse A.",
"type": "warning",
"isRead": true,
"createdAt": "2025-04-25T09:00:00.000Z",
"actionUrl": null
}
],
"unreadCount": 3
}
}