# Mark notifications as read from Discourse API

**URL:** <https://meta.discourse.org/t/mark-notifications-as-read-from-discourse-api/113420>\
**Category:** Development\
**Created:** [04.Апрель.2019 07:13:31 UTC](https://meta.discourse.org/t/mark-notifications-as-read-from-discourse-api/113420 "2019-04-04T07:13:31Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![duranmla](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/duranmla/32/109295_2.png) [@duranmla](https://meta.discourse.org/u/duranmla)\
**Post date:** [04.Апрель.2019 07:13:31 UTC](https://meta.discourse.org/t/mark-notifications-as-read-from-discourse-api/113420/1 "2019-04-04T07:13:31Z")

</div>

Hi all,

I am working in a project that has discourse integrated with several apps, by now, I need to be able to allow one of those external apps to mark notifications from discourse as read but of course, consuming the API.

For instance, if I try to hit the `notifications/mark-read` endpoint I will get

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/4/84bbc2873f07f66daf9df2786017632d5c771e84.jpeg)

Nevertheless, I will stress that I have already manage basic things as CORS config and token handling from outside (For instance my component is able to login/logout the user and pull user notifications).

The idea is that this custom component has a button to “Mark all as read”

I have also seen this “clear\_notifications” method

> <https://github.com/discourse/discourse/blob/90ce44867595073d91ace4aacbb948f1e4f1ecb0/app/controllers/application_controller.rb#L292-L316>

And it while it looks like the thing I can use it seems to not be exposed or available for the usage outside discourse app?

Thanks in advance for any help.

Cheers!!

---

_[View the full topic](https://meta.discourse.org/t/mark-notifications-as-read-from-discourse-api/113420)._
