# Webhooks for publish topic event

**URL:** https://meta.discourse.org/t/webhooks-for-publish-topic-event/121211
**Category:** Development
**Created:** [6월 24, 2019, 10:23오후 UTC](https://meta.discourse.org/t/webhooks-for-publish-topic-event/121211 "2019-06-24T22:23:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Parker1090](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/parker1090/32/119862_2.png) [@Parker1090](https://meta.discourse.org/u/Parker1090)
#### Post date: [6월 24, 2019, 10:23오후 UTC](https://meta.discourse.org/t/webhooks-for-publish-topic-event/121211/1 "2019-06-24T22:23:03Z")

</div>

I’m playing around with webhooks and hoped to trigger them on a timed topic publish event and push through articles to an endpoint.

I’ve set this up, even with all events enabled, but I notice I’m only getting hooks for the initial creation of the topic, and not the publishing of it.

Is there a way to enable this please (thinking perhaps I’ve missed something)?

If not, any suggestions on how to work with this scenario? I’d love to say I’d somehow try to make my own little trigger, but I haven’t the foggiest idea on where to start (although open to ideas there too!)

Thanks in advance!

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [6월 25, 2019, 5:45오전 UTC](https://meta.discourse.org/t/webhooks-for-publish-topic-event/121211/2 "2019-06-25T05:45:01Z")

</div>

When you first publish a topic there should be a webhook with the `X-Discourse-Event` header set to `topic_created`. If you then set a topic timer to publish the topic to another category, there should be a webhook with the `X-Discourse-Event` header set to `topic_edited` when the topic is published to the new category.

This works correctly when I test it on my development site.

---

<div class="post-metadata">

### Author: ![Parker1090](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/parker1090/32/119862_2.png) [@Parker1090](https://meta.discourse.org/u/Parker1090)
#### Post date: [6월 25, 2019, 8:58오전 UTC](https://meta.discourse.org/t/webhooks-for-publish-topic-event/121211/3 "2019-06-25T08:58:26Z")

</div>

Thanks @simon. For some reason I didn’t see that when I was testing it initially - obviously missed something!

All working as expected now. Thanks!
