Webhooks for publish topic event

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!

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.

4 Likes

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

All working as expected now. Thanks!

1 Like