Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,361,191
Community Members
 
Community Events
168
Community Groups

Collect number of notifications for my user

Hi there, I want to write a small script that shows me the number of unread notifications for my user. Is there an API to collect the notifications or the number of new notifications via the API for my own user?

I've looked at the internal requests, and found an access to the notification-log.

https://start.atlassian.com/gateway/api/notification-log/api/3/notifications?category=direct&limit=16

However, I was not able to access it via my access token. 

curl -D- \
-u <myuser>:<mytoken> \
-X GET \
-H "Content-Type: application/json" \
"https://start.atlassian.com/gateway/api/notification-log/api/3/notifications?category=direct&limit=16"

Is there any way to make this work? 

0 answers

Suggest an answer

Log in or Sign up to answer