Skip to main content
GET
/
notifications
/
user
/
:userId
/
type
/
:type
Get Notifications by Type
curl --request GET \
  --url https://www.api.baselink.tech/notifications/user/:userId/type/:type \
  --header 'bearer: <api-key>'
{
  "notifications": [
    {}
  ],
  "notifications[].id": "<string>",
  "notifications[].type": "<string>",
  "notifications[].title": "<string>",
  "notifications[].message": "<string>",
  "notifications[].read": 123,
  "notifications[].expiresAt": 123,
  "notifications[].metadata": {},
  "notifications[].createdAt": "<string>"
}
Retrieve notifications filtered by type for a specific user.
notifications
array
Array of notification objects matching the specified type.
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[].read
number
Whether the notification has been read (1) or not (0).
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.