Notifications
Unread notification count
Return the caller’s unread library-notification count.
GET
/
api
/
v2
/
notifications
/
unread-count
/
Unread-notification count for the nav badge
curl --request GET \
--url https://api.example.com/api/v2/notifications/unread-count/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v2/notifications/unread-count/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v2/notifications/unread-count/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"count": 123
}⌘I
Unread-notification count for the nav badge
curl --request GET \
--url https://api.example.com/api/v2/notifications/unread-count/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v2/notifications/unread-count/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v2/notifications/unread-count/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"count": 123
}
