Notification endpoints serve two surfaces simultaneously: the full-page notification inbox atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/0m1n3m/contacts-db/llms.txt
Use this file to discover all available pages before exploring further.
/notifications and the real-time bell dropdown in the application header, which is powered by the /api/notifications/recent and /notifications/unread-count JSON endpoints. All endpoints operate exclusively on the authenticated user’s own notifications — users can never read or modify another user’s notification records.
All notification endpoints require an authenticated session. There is no public or unauthenticated access to notifications. Attempting to access these routes without a valid session will result in a redirect to the login page.
Web Routes
These routes return HTML views or issue redirects and are intended for standard browser navigation.GET /notifications
Displays the full notification inbox page for the currently authenticated user. Notifications are ordered bycreated_at descending and paginated at 15 per page.
Role: any authenticated user
Response: HTML view (notifications.index) with a paginated collection of notification records.
POST /notifications//read
Marks a single notification as read and returns a JSON response containing the notification’saction_url for client-side redirect. Returns 403 if the notification does not belong to the authenticated user.
Role: notification owner only
The ID of the notification to mark as read.
200 OK):
action_url, redirect_url falls back to the notifications inbox route (/notifications).
Error response (403 Forbidden):
POST /notifications/mark-all-read
Marks every unread notification for the authenticated user as read in a single bulk update, then redirects to the inbox. Role: any authenticated user Response:302 redirect to GET /notifications with success flash "All notifications marked as read.".
DELETE /notifications/
Permanently deletes a single notification record. Returns403 if the notification does not belong to the authenticated user.
Role: notification owner only
The ID of the notification to delete.
302 redirect to GET /notifications with success flash "Notification deleted.".
AJAX / JSON Routes
These endpoints return JSON and are used by the frontend’s notification bell and dropdown components.GET /notifications/unread-count
Returns the count of unread notifications for the current user. Designed for polling by the header bell indicator. Role: any authenticated user Response (200 OK):
GET /api/notifications/recent
Returns the three most recent notifications for the dropdown panel. Each notification object is shaped for direct consumption by the Blade dropdown component, including a computedis_read boolean.
Role: any authenticated user
Response (200 OK):
GET /notifications with pagination for the full list.
POST /notifications/mark-all-read-ajax
Marks all unread notifications as read without issuing a redirect. Intended for use by the dropdown’s “Mark all read” button, which updates the UI without a full page reload. Role: any authenticated user Response (200 OK):
Notification Object Fields
The following fields are present on every notification record. ThePOST /notifications/{notification}/read and GET /api/notifications/recent responses expose a subset of these fields.
Full notification object example: