# How to differentiate webhooks for created, approved or updated

**URL:** <https://meta.discourse.org/t/how-to-differentiate-webhooks-for-created-approved-or-updated/71607>\
**Category:** Product Support\
**Created:** [Outubro 8, 2017, 12:18am UTC](https://meta.discourse.org/t/how-to-differentiate-webhooks-for-created-approved-or-updated/71607 "2017-10-08T00:18:45Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [Outubro 8, 2017, 10:01pm UTC](https://meta.discourse.org/t/how-to-differentiate-webhooks-for-created-approved-or-updated/71607/3 "2017-10-08T22:01:13Z")

</div>

> [@watchmanmonitor](#):
>
> what’s the best way to identify when the webhook is related to a new user, vs a user being updated?

You can get that from the `X-Discourse-Event` header field. When a user is created that field’s value will be `user_created`.

> [@watchmanmonitor](#):
>
> lately it’s being triggered too often.

It seems that the User `user_updated` webhook is being sent every time a user creates a Topic or a Post. This didn’t used to happen and seems like a bug.

---

_[View the full topic](https://meta.discourse.org/t/how-to-differentiate-webhooks-for-created-approved-or-updated/71607)._
