Supported Formats

json

GET /api/notifications
Notifications of current user.

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden

Examples

GET /api/notifications
200

Params

Param name Description
per_page
optional

For pagination. Default is 10.

Validations:

  • Must be a Integer

page
optional

For pagination. Page number

Validations:

  • Must be a Integer


GET /notifications/:id
Notification detail

Returns notification and marks it as read.

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden
404 Notification Not Found.

DELETE /notifications/:id
Deletes the notification

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden
404 Notification Not Found.
422 Unprocessable Notification.

GET /notifications/unread-counts
Unread notification count

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden

PATCH /notifications/read-all
Marks as read all unread notifications

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden