REST API

Notifications API

User notification API for listing notifications and marking individual or all notifications as read.

Generated from the Celerp 2.5.0 OpenAPI schema, 21 September 2026.

GET /notifications

List User Notifications

List notifications for the current user, newest first.

Parameters

NameInRequiredTypeDescription
limitquery--integerMaximum number of records to return.
offsetquery--integerNumber of matching records to skip before returning results.
unread_onlyquery--booleanWhether to return only unread notifications.

Responses

StatusDescriptionBody
200Returns the requested user notifications.NotificationList
422The request failed validation. The response lists each invalid field and why.HTTPValidationError

Example

curl -X GET http://localhost:8000/notifications \
  -H "Authorization: Bearer $TOKEN"

POST /notifications/read-all

Mark All Notifications Read

Mark all notifications as read for the current user.

Responses

StatusDescriptionBody
204Success. No response body is returned.--

Example

curl -X POST http://localhost:8000/notifications/read-all \
  -H "Authorization: Bearer $TOKEN"

POST /notifications/{notification_id}/read

Mark Notification Read

Mark a single notification as read.

Parameters

NameInRequiredTypeDescription
notification_idpathyesstringIdentifier of the notification.

Responses

StatusDescriptionBody
204Success. No response body is returned.--
422The request failed validation. The response lists each invalid field and why.HTTPValidationError

Example

curl -X POST http://localhost:8000/notifications/:notification_id/read \
  -H "Authorization: Bearer $TOKEN"