# Two webhook events sent for some new topics

**URL:** <https://meta.discourse.org/t/two-webhook-events-sent-for-some-new-topics/50951>\
**Category:** Bug\
**Created:** [1 Octubre, 2016 14:18 UTC](https://meta.discourse.org/t/two-webhook-events-sent-for-some-new-topics/50951 "2016-10-01T14:18:54Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![DanielMarquard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danielmarquard/32/74010_2.png) [@DanielMarquard](https://meta.discourse.org/u/DanielMarquard)\
**Post date:** [11 Octubre, 2016 02:59 UTC](https://meta.discourse.org/t/two-webhook-events-sent-for-some-new-topics/50951/5 "2016-10-11T02:59:57Z")

</div>

> [@fantasticfears](#):
>
> Did you check topic and post event type? If so, topic\_created comes from topic event type and post\_created comes from post event type. X-Discourse-Event-Type can help to differentiate them. In other words, it’s intended.

Both are checked for the same webhook. As I mentioned, [this topic](https://critcola.com/community/t/roll-for-crit-a-dnd-event-for-new-players/263) triggered both event types when created, one `topic_created` and one `post_created`. You can see from the payloads I linked that there was only one post in the topic at the time. As I’ve already worked around the bug, I can’t be sure which other topics have also triggered both upon creation, but this one wasn’t the first.

Let me know if I can do anything to help narrow it down.

---

_[View the full topic](https://meta.discourse.org/t/two-webhook-events-sent-for-some-new-topics/50951)._
