# Webhooks feedback

**URL:** https://meta.discourse.org/t/webhooks-feedback/49046
**Category:** Development
**Created:** [August 23, 2016, 5:37am UTC](https://meta.discourse.org/t/webhooks-feedback/49046 "2016-08-23T05:37:11Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Lapinot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lapinot/32/60809_2.png) [@Lapinot](https://meta.discourse.org/u/Lapinot)
#### Post date: [August 23, 2016, 8:34am UTC](https://meta.discourse.org/t/webhooks-feedback/49046/2 "2016-08-23T08:34:45Z")

</div>

Full disclosure: I didn’t checkout and live-test this branch.

Awesome work, I am looking forward to use this feature. Some early feedback/questions:

- Why isn’t this a plugin (is it too deeply integrated in the core)? I am not really comfortable with testing a custom branch as it means a full manual install until it gets merged (a beta/unstable plugin would be much more lightweight).
- Some ideas for other hooks (that don’t seem to exist now after reading the docs):
  - `edit-post` which also triggers when a post gets edited.
  - `watch-first-post` which is like `edit-post` but for every first post in a topic.

- Filters on top of hooks which match against the payload json to restrict the trigger. Agreed, this can be implemented on the remote side of the webhook but sometimes it could save a lot of bandwith. This could be paired with an output filter which selects the wanted json fields (or produces some other structure based on the initial payload). This could be implemented with [mongodb-style json querying](https://docs.mongodb.com/manual/tutorial/query-documents/#read-operations-query-argument).

I just looked at the commits and discovered the existence of `DiscourseEvent`. Is there any documented list of such events or am I supposed to grep the source code for `DiscourseEvent.trigger`? 🦃  
_Edit:_ So I grepped and there are not so much such events. I don’t really understand “post validation” but the `validate_post` event might be relevent for my `edit-post` hook proposition.

---

_[View the full topic](https://meta.discourse.org/t/webhooks-feedback/49046)._
