Topic on Talk:Flow/Architecture/API

API call to return the number of unread messages and alerts

1
Summary by Revansx

nevermind.. I was looking for

https://www.mediawiki.org/wiki/Notifications/API

and the solution I was looking for is:

action=query&meta=notifications
Revansx (talkcontribs)

Hello, can someone help me figure out how to craft a URL to the api.php page that returns the current number of unread flow messages and alerts for the current user?

I've tried:

https://mysite/mediawiki/wikiI_id/api.php?action=query&list=flow&format=json

but it returns the error:

{"batchcomplete":"","warnings":{"main":{"*":"Unrecognized parameter: MEZAWIKI."},"query":{"*":"Unrecognized value for parameter \"list\": flow."}}}