Webhook for Notification Events that includes a total?

I am currently using the API to get the number of notifications on my forum to display on my sister website, but even caching this for 60 seconds requires 1 API request per user per minute, which will not scale well.

Ideally I’d like to use a webhook, so every time the user gets a notification it sends the data to my sister website, which stores the number. Then when the user clears their notifications, it also gets cleared.

But there does not seem to be a way to create a webhook event for clearing notifications? Is there any way to add this?

Or, even simpler, add to the current notification webhook a number of the total unread notifications, so every time someone gets a new one I can update the database to include that.

This would really help keep my websites in sync and prevent an upcoming API limit nightmare. Please help!

(Also, if there is a way to get Chat notifications via webhook or API, I really would like to know!)

This sounds like a very unique setup! Can you tell us some more about your setup and why you are seeking to allow your members to see and dismiss their Discourse notifications from another site? It seems to me it would make most sense to have your members sign into Discourse to access their notifications and participate in discusssions.

Well the other site is closely linked, they are supposed to be seamless.

I want to be able to show notifications on the other site, and if I do that then viewing them there should dismiss the “new” dot just like viewing them on the forum does.

It’s as simple as that really, I want the two platforms to be seamless.