Skip to Content

PATCH /api/v1/notifications/read-all

Mark all of the authenticated user’s unread notifications as read. Returns the count of notifications that were marked.

Authentication: Required

Cache: None

Sample Request

curl -X PATCH -H "Authorization: Bearer YOUR_TOKEN" \ https://api.grails.app/api/v1/notifications/read-all

Response

// 200 OK { "success": true, "data": { "markedCount": 5, "message": "5 notification(s) marked as read" }, "meta": { "timestamp": "2026-04-08T00:05:00.000Z", "version": "1.0.0" } }

Error Responses

StatusCodeDescription
401UNAUTHORIZEDMissing or invalid token
500INTERNAL_ERRORFailed to mark all as read
Last updated on