Notifications


GET /notifications

List the current user's notifications

User-scoped; the row's user_id is the only access boundary. Supports ?unread=true and ?limit.

Auth: Bearer token required

Responses

StatusDescriptionSchema
200Notifications + unread countNotificationList
401No user sessionError

POST /notifications/{id}/read

Mark a notification read

Auth: Bearer token required

Path parameters

NameTypeDescription
idstring

Responses

StatusDescriptionSchema
200Marked readNotificationRead
401No user sessionError
404Notification not foundError

POST /notifications/read-all

Mark all notifications read

Auth: Bearer token required

Responses

StatusDescriptionSchema
200Count of notifications marked readNotificationReadAll
401No user sessionError

Schemas

Error

FieldTypeDescription
errorstring(required)
codestring

NotificationList

FieldTypeDescription
itemsobject[](required)
unreadCountinteger(required)

NotificationRead

FieldTypeDescription
idstring(uuid)(required)
readAtstring(required)

NotificationReadAll

FieldTypeDescription
updatedinteger(required)