# Trigger webhook on topic publish

**URL:** https://meta.discourse.org/t/trigger-webhook-on-topic-publish/109890
**Category:** Feature
**Created:** [February 23, 2019, 7:59am UTC](https://meta.discourse.org/t/trigger-webhook-on-topic-publish/109890 "2019-02-23T07:59:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![md-misko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/md-misko/32/126315_2.png) [@md-misko](https://meta.discourse.org/u/md-misko)
#### Post date: [February 23, 2019, 7:59am UTC](https://meta.discourse.org/t/trigger-webhook-on-topic-publish/109890/1 "2019-02-23T07:59:51Z")

</div>

I have a scenario where topics are created by staff for later publishing in a category only visible to staff. Topics are then scheduled for publishing in a public category by a topic timer. This public category has a webhook attached to it and the webhook is triggered on Topic Event (description: When there is a new topic, revised, changed or deleted).

Webhook starts as expected when I create a new topic in this public category manually, but it doesn’t start when the topic is published by a topic timer.

I guess that the change event on the topic (in this case assigning a new category) is processed on the staff topic (which doesn’t have a webhook attached) and not on the public topic. If I manually edit the newly published topic the webhook is triggered as expected.

Would it be possible to add publishing to Topic event, so that it would trigger the webhook on: When there is a new topic, revised, changed, deleted or **published**.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [April 16, 2019, 7:22am UTC](https://meta.discourse.org/t/trigger-webhook-on-topic-publish/109890/2 "2019-04-16T07:22:34Z")

</div>

This has been implemented in the following commits.

[https://github.com/discourse/discourse/commit/1056dd16d3eabf889e9857f2de827719645af269](https://github.com/discourse/discourse/commit/1056dd16d3eabf889e9857f2de827719645af269)  
[https://github.com/discourse/discourse/commit/8cb189024506d5857870e7b21f6c3d8c9dcf76e6](https://github.com/discourse/discourse/commit/8cb189024506d5857870e7b21f6c3d8c9dcf76e6)

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [April 26, 2019, 10:02am UTC](https://meta.discourse.org/t/trigger-webhook-on-topic-publish/109890/3 "2019-04-26T10:02:33Z")

</div>


