# Using webhook only when the topic been created

**URL:** <https://meta.discourse.org/t/using-webhook-only-when-the-topic-been-created/131921>\
**Category:** Product Support\
**Created:** [October 26, 2019, 12:28am UTC](https://meta.discourse.org/t/using-webhook-only-when-the-topic-been-created/131921 "2019-10-26T00:28:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [October 26, 2019, 12:45am UTC](https://meta.discourse.org/t/using-webhook-only-when-the-topic-been-created/131921/2 "2019-10-26T00:45:30Z")

</div>

You can check whether a webhook has been sent for a new post, or for an edited post, by looking at the webhook’s `X-Discourse-Event` header. For a new post the header will be set to `post_created`. For an edited post it will be set to `post_edited`.

I haven’t used intergromat, but the process for filtering based on the event type on Zapier is outlined here: [Trigger a Zapier task with Discourse Webhooks](https://meta.discourse.org/t/discourse-webhooks-and-zapier/56753/32).

> [@verilog15](#):
>
> Is it a valid request to ask to make the Webhooks options more specific?

Yes, I think so. I haven’t run into issues with the Post Event webhook, but I’d really like to see a way of limiting the User Event webhook so that it is only sent when a user is created or updated.

---

_[View the full topic](https://meta.discourse.org/t/using-webhook-only-when-the-topic-been-created/131921)._
