Notifications API

Retrieve and manage user notifications through the CitoHR API.

Get Notifications

Retrieve notifications for the current user.

GET /api/notifications

Query parameters:

  • limit - Maximum number of notifications to return (default: 10)
  • unreadOnly - Return only unread notifications (optional, true/false)

Authorization: Requires valid session. Returns notifications for the current user.

Mark Notification as Read

Mark a specific notification as read.

PUT /api/notifications/{id}/read

Mark All Notifications as Read

Mark all notifications for the current user as read.

PUT /api/notifications/read-all