Notifications

Manage user notifications for approvals, system updates, and alerts.

Get Notifications

GET/api/notifications

Get paginated notifications for the current user.

Query ParamTypeRequiredDescription
pagenumberOptionalPage number (default: 1)
limitnumberOptionalItems per page (default: 20)
{ "notifications": [ { "id": "...", "type": "approval", "title": "New Join Request", "message": "John Doe requested to join the company", "body": "...", "link": "/approvals", "readAt": null, "createdAt": "2024-01-15T10:30:00Z" } ], "total": 50, "unreadCount": 5 }

Mark All Read

PATCH/api/notifications

Mark all notifications as read.

{ "success": true }

Delete All Read

DELETE/api/notifications

Delete all read notifications.

{ "success": true }

Mark Notification Read

PATCH/api/notifications/[id]

Mark a specific notification as read.

FieldTypeRequiredDescription
idstringRequiredNotification ID (path param)
{ "notification": { "id": "...", "readAt": "2024-01-15T11:00:00Z" } }

Delete Notification

DELETE/api/notifications/[id]

Delete a specific notification.

FieldTypeRequiredDescription
idstringRequiredNotification ID (path param)
{ "success": true }

Notification Types

TypeDescription
infoGeneral information
approvalApproval request notifications
projectProject-related updates
deadlineDeadline reminders
systemSystem notifications