# Webhook per requires-moderation

**URL:** https://meta.discourse.org/t/webhook-for-requires-moderation/85469
**Category:** Feature
**Created:** [16 Aprile 2018, 10:07pm UTC](https://meta.discourse.org/t/webhook-for-requires-moderation/85469 "2018-04-16T22:07:34Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![kgrinberg](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kgrinberg/32/120110_2.png) [@kgrinberg](https://meta.discourse.org/u/kgrinberg)
#### Post date: [16 Aprile 2018, 10:07pm UTC](https://meta.discourse.org/t/webhook-for-requires-moderation/85469/1 "2018-04-16T22:07:34Z")

</div>

We’d love to be able to get a webhook whenever a post requires approval. Right now, as I understand it, the webhook is only triggered when it’s approved. (If that’s not the intended behavior I can put together a bug report, but that seems to be what I’m observing).

It looks like [FEATURE: webhook for flag events · discourse/discourse@a16b616 · GitHub](https://github.com/discourse/discourse/commit/a16b616861ec25f28f05bb18d48ed111e56a7b0f) added the ability to get webhooks for flag events (including creation), but unless I’m confused (always possible!) flagging != requires approval.

The use case is that we have some words in our Watched Words list that trigger Require Approval. I’d like to add a Slack notification to our moderators for those cases.

The discourse-chat-integration plugin doesn’t seem to have a trigger for this specific use case, which seems reasonable, and I’m happy to do the Slack-pinging part myself… I just need a webhook to trigger it from.

It’s basically an extension of [Is there a webhook for flag raised or mod inbox++?](https://meta.discourse.org/t/is-there-a-webhook-for-flag-raised-or-mod-inbox/61331) to account for Requires Approval in addition to flagging.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [16 Aprile 2018, 10:26pm UTC](https://meta.discourse.org/t/webhook-for-requires-moderation/85469/2 "2018-04-16T22:26:41Z")

</div>

Seems like a reasonable request, what do you think @vinothkannans?

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [17 Aprile 2018, 6:12am UTC](https://meta.discourse.org/t/webhook-for-requires-moderation/85469/3 "2018-04-17T06:12:32Z")

</div>

Yes it have good use case. Added to my list 📝

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [25 Luglio 2018, 6:18pm UTC](https://meta.discourse.org/t/webhook-for-requires-moderation/85469/4 "2018-07-25T18:18:15Z")

</div>

PR created

[https://github.com/discourse/discourse/pull/6175](https://github.com/discourse/discourse/pull/6175)

P.S. It’s merged now.

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [27 Luglio 2018, 4:34pm UTC](https://meta.discourse.org/t/webhook-for-requires-moderation/85469/5 "2018-07-27T16:34:37Z")

</div>


