# Creazione di notifiche via API

**URL:** <https://meta.discourse.org/t/creating-notifications-via-the-api/173769>\
**Category:** Development\
**Tags:** notifications, rest-api\
**Created:** [17 Dicembre 2020, 10:55am UTC](https://meta.discourse.org/t/creating-notifications-via-the-api/173769 "2020-12-17T10:55:49Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)\
**Post date:** [18 Dicembre 2020, 5:38pm UTC](https://meta.discourse.org/t/creating-notifications-via-the-api/173769/7 "2020-12-18T17:38:42Z")

</div>

Non è ancora documentato, ma esiste un [endpoint API per la creazione di notifiche](https://github.com/discourse/discourse/blob/d8e2b497f78e2a054406775b4bcde3bcfab8bad1/app/controllers/notifications_controller.rb#L75-L78):

```plaintext
 POST /notifications(.:format) notifications#create {:format=>/(json|html|\*\/\*)/}

```

Potresti essere in grado di utilizzare il tipo di notifica [`custom`](https://github.com/discourse/discourse/blob/master/app/models/notification.rb#L103) invece di doverne creare uno tuo.

---

_[View the full topic](https://meta.discourse.org/t/creating-notifications-via-the-api/173769)._
