auth:sanctum.
GET /api/v1/notifications
Fetch paginated notifications for the authenticated user. Unread notifications appear first, then newest first. Middleware:auth:sanctum, throttle:apiAuthentication: Required
Response 200 OK
Paginated collection (10 per page) of NotificationResource objects.
GET /api/v1/notifications/count
Return the count of unread notifications for the authenticated user. Middleware:auth:sanctum, throttle:apiAuthentication: Required
Response 200 OK
Number of notifications where
read_at is null.PATCH /api/v1/notifications/read-all
Mark all unread notifications as read for the authenticated user. Middleware:auth:sanctum, throttle:apiAuthentication: Required
Response 200 OK
successPATCH /api/v1/notifications//read
Mark a single notification as read. Middleware:auth:sanctum, throttle:apiAuthentication: Required
Path parameters
UUID of the notification to mark as read.
Response 200 OK
successPOST /api/v1/push-subscriptions
Register or update a Web Push (VAPID) subscription for the authenticated user. Middleware:auth:sanctum, throttle:apiAuthentication: Required
Request body
The push endpoint URL provided by the browser’s Push API. Maximum 1000 characters.
VAPID auth key from the browser push subscription. Maximum 255 characters.
VAPID p256dh key from the browser push subscription. Maximum 255 characters.
Optional content encoding (e.g.
aesgcm, aes128gcm). Maximum 50 characters.Response 200 OK
successWeb Push subscription updated.DELETE /api/v1/push-subscriptions
Unregister a Web Push subscription. Middleware:auth:sanctum, throttle:apiAuthentication: Required
Request body
The push endpoint URL to remove. Maximum 1000 characters.
Response 200 OK
successWeb Push subscription deleted.