REST API: /notifications endpoint doesn't include certain notifications
#46174
Unanswered
bastimeyer
asked this question in
API and Webhooks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Body
When requesting notifications of an authenticated user on the REST API's
/notificationsendpoint (version 2022-11-28), I'm expecting all notifications to be listed there which are also shown on the notifcations page on the GitHub website. This is what the API docs say, at least.For example, I'm using a browser extension for showing the number of unread notifications of my GH account and for triggering desktop notifications when a new unread notification appears. The extension requires a PAT with the notifications permissions ("classic" token) and it is polling the API endpoint while caching notification IDs in-between API requests.
However, as it turns out, some notification types are not included in the API responses (tested via
curl, so the browser extension is not at fault here). This means that notifications for private organisation/team discussions can't be shown by the browser extension, and it requires me to stay alerted on the website itself when a new reply is being made in one of the private team discussions. This unfortunately defeats the purpose of the browser extension or other applications which rely on the correctness of API endpoint's data.The
/notificationsREST API endpoint should include notifications of all kinds.How to reproduce:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions