List notifications
Retrieve paginated notifications for the current user within their active organization. Supports cursor-based pagination and filtering by unread status. Available to both labs and clinics.
Retrieve paginated notifications for the current user within their active organization. Supports cursor-based pagination and filtering by unread status. Available to both labs and clinics.
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Query Parameters
Max items to return (1-50, default 20)
Cursor: notification ID to paginate before
Set to 'true' to return only unread notifications
Response Body
application/json
curl -X GET "https://example.com/notifications"{ "data": [ { "id": "string", "userId": "string", "organizationId": "string", "type": "string", "title": "string", "body": "string", "data": null, "readAt": "string", "createdAt": "string" } ], "unreadCount": 0, "hasMore": true}Get notification unread count GET
Returns the count of unread notifications for the current user within their active organization. Available to both labs and clinics.
Mark notifications as read POST
Mark specific notifications or all unread notifications as read for the current user. Provide either an array of notificationIds or set all to true. Available to both labs and clinics.