Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Collect number of notifications for my user

Niklas
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 15, 2022

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
TAGS
AUG Leaders

Atlassian Community Events