# Webhook for notifications - how to clear them?

**URL:** https://meta.discourse.org/t/webhook-for-notifications-how-to-clear-them/294834
**Category:** WordPress
**Tags:** webhooks
**Created:** [February 9, 2024, 2:29pm UTC](https://meta.discourse.org/t/webhook-for-notifications-how-to-clear-them/294834 "2024-02-09T14:29:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Shauny](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shauny/32/362012_2.png) [@Shauny](https://meta.discourse.org/u/Shauny)
#### Post date: [February 9, 2024, 2:29pm UTC](https://meta.discourse.org/t/webhook-for-notifications-how-to-clear-them/294834/1 "2024-02-09T14:29:23Z")

</div>

I have a webhook set up so when a user gets a notification on the Discourse, I can put an “unread” marker on my connected WordPress site. So far, so good.

But if the user then visits the Discourse and reads the notification, I’m stumped now for a way to remove the “unread” marker on the site?

There isn’t any kind of webhook for “user clears notifications”? Or am I missing something?

I know I could do this with API calls but trying to avoid constant API calls for every page load on my site.

Thanks!

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [February 11, 2024, 9:14pm UTC](https://meta.discourse.org/t/webhook-for-notifications-how-to-clear-them/294834/2 "2024-02-11T21:14:32Z")

</div>

> [@Shauny](#):
>
> There isn’t any kind of webhook for “user clears notifications”?

There doesn’t seem to be one. Instead of making an API call to Discourse, I’d be tempted to clear the “unread” notification on WordPress when a user clicks the notification marker on your WordPress site.

---

<div class="post-metadata">

### Author: ![Shauny](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shauny/32/362012_2.png) [@Shauny](https://meta.discourse.org/u/Shauny)
#### Post date: [February 11, 2024, 10:18pm UTC](https://meta.discourse.org/t/webhook-for-notifications-how-to-clear-them/294834/3 "2024-02-11T22:18:55Z")

</div>

Thanks. I’ve been looking at this since I posted it and instead just went with polling the API to get notifications, it’s simpler 🤷🏻‍♂️
