Retrieves notifications for the current user
cURL
curl --request GET \ --url http://localhost:3000/api/notifications/get-notifications
{ "notifications": [ { "id": "<string>", "userId": "<string>", "type": "<string>", "data": {}, "isRead": true, "createdAt": 123 } ], "userNotificationInfo": { "id": "<string>", "newNotificationIds": [ "<string>" ], "lastUpdated": 123 } }
Notifications retrieved successfully
Show child attributes
Unique identifier for the notification
ID of the user this notification belongs to
Type of notification
Additional data specific to the notification type
Whether the notification has been read
Timestamp when the notification was created
ID of the user notification info document
Array of unread notification IDs
Timestamp when the notification info was last updated