Skip to main content
GET
/
notifications
/
user
/
:userId
/
unread
Get Unread Notifications
curl --request GET \
  --url https://www.api.baselink.tech/notifications/user/:userId/unread \
  --header 'bearer: <api-key>'
{
  "notifications": [
    {}
  ],
  "notifications[].id": "<string>",
  "notifications[].type": "<string>",
  "notifications[].title": "<string>",
  "notifications[].message": "<string>",
  "notifications[].expiresAt": 123,
  "notifications[].metadata": {},
  "notifications[].createdAt": "<string>",
  "unreadCount": 123
}
Retrieve only unread notifications for a specific user.
notifications
array
Array of unread notification objects for the user.
notifications[].id
string
The unique identifier of the notification.
notifications[].type
string
The type of notification.
notifications[].title
string
The title of the notification.
notifications[].message
string
The message content of the notification.
notifications[].expiresAt
number
The expiration timestamp of the notification.
notifications[].metadata
object
Additional metadata for the notification.
notifications[].createdAt
string
The creation timestamp of the notification.
unreadCount
number
The total count of unread notifications.