Two endpoints are available for marking notifications as read: one for a specific notification by ID, and one that clears all unread notifications at once. Both require only an Authorization header — no request body is needed.
Mark a single notification as read
PATCH /v1/notifications/:id/read
Marks one notification as read. Scoped to the authenticated user — users cannot mark another user’s notifications.
Bearer token. Format: Bearer <token>
Path parameters
The ID of the notification to mark as read.
Response
true on a successful update.
Example
curl --request PATCH \
--url https://api.nyotaimara.com/v1/notifications/ntf_01j9.../read \
--header 'Authorization: Bearer <token>'
Mark all notifications as read
PATCH /v1/notifications/read-all
Marks every unread notification for the authenticated user as read in a single operation. Useful for a “mark all as read” button.
Bearer token. Format: Bearer <token>
Response
true once all notifications have been updated.
Example
curl --request PATCH \
--url https://api.nyotaimara.com/v1/notifications/read-all \
--header 'Authorization: Bearer <token>'