# Is there a way to hide specific notifications from the notifications API?

**URL:** https://meta.discourse.org/t/is-there-a-way-to-hide-specific-notifications-from-the-notifications-api/385499
**Category:** Support
**Tags:** notifications
**Created:** [October 14, 2025, 4:01am UTC](https://meta.discourse.org/t/is-there-a-way-to-hide-specific-notifications-from-the-notifications-api/385499 "2025-10-14T04:01:50Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![jahan\_gagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jahan_gagan/32/501948_2.png) [@jahan\_gagan](https://meta.discourse.org/u/jahan_gagan)
#### Post date: [October 14, 2025, 8:26am UTC](https://meta.discourse.org/t/is-there-a-way-to-hide-specific-notifications-from-the-notifications-api/385499/3 "2025-10-14T08:26:06Z")

</div>

There is no built-in way to prevent specific notification types (like badge or trust level changes) from being included in the notifications API on retrieval. The best workaround is to fetch all notifications with the API and then filter on your application by the `notification_type` you care about.

Notification types code

> <https://github.com/discourse/discourse/blob/main/app/models/notification.rb#L121-L169>

---

_[View the full topic](https://meta.discourse.org/t/is-there-a-way-to-hide-specific-notifications-from-the-notifications-api/385499)._
