Skip to Content

PATCH /api/v1/notifications/:id/read

Mark a single notification as read. If already read, the request succeeds without changing the readAt timestamp.

Authentication: Required

Cache: None

Path Parameters

ParameterTypeRequiredDescription
idnumberYesNotification ID

Sample Request

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

Response

// 200 OK { "success": true, "data": { "id": 1, "readAt": "2026-04-08T00:05:00.000Z" }, "meta": { "timestamp": "2026-04-08T00:05:00.000Z", "version": "1.0.0" } }

Error Responses

StatusCodeDescription
401UNAUTHORIZEDMissing or invalid token
403FORBIDDENNotification belongs to another user
404NOT_FOUNDNotification not found
500INTERNAL_ERRORFailed to mark as read
Last updated on