Get User Notifications
GET/api/v1/user/notifications
Notifications returned are limited to latest 100.
HTTP RESPONSE
Standard HTTP code and JSON payload as below.
{
"notifications": [
{
"id": 2,
"message": "Collection updated by joe@example.org",
"url": "/collection/1",
"disposal": "ON_ACK",
"timestamp": "2022-05-14T07:08:49Z"
},
{
"id": 1,
"message": "Welcome! New notifications will appear here.",
"url": null,
"disposal": "ON_READ",
"timestamp": "2022-05-15T07:08:15Z"
}
]
}
| Parameter | Details |
|---|---|
id | Notification id, used for disposing |
message | Notification text |
url | Any associated URL |
disposal | What should be done with the message. See below |
timestamp | ISO 8601 datetime indicating when the notification was issued |
Notifications have two disposals listed below.
| Disposal type | Details |
|---|---|
ON_READ | Disposed automatically when retrieved |
ON_ACK | Delete API must be called with the ID to dispose this notification |
Responses
- 200
- 401
- 500
List of user notifications
Unauthorized
Internal server error