# 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:** Support
**Created:** [October 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:** 5

<div class="post-metadata">

### Author: ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### Post date: [October 10, 2017, 7:17am UTC](https://meta.discourse.org/t/how-to-differentiate-webhooks-for-created-approved-or-updated/71607/5 "2017-10-10T07:17:43Z")

</div>

> [@simon](#):
>
> You can get that from the X-Discourse-Event header field. When a user is created that field’s value will be user\_created.

I asked Zapier about this, and while the information sent in the header is awesome, they don’t include it in [Zaps](https://meta.discourse.org/t/discourse-webhooks-and-zapier/56753).

I’d love to see this information sent in the body of Discourse’s webhook, and not just the headers.

Given this set of headers:

```plaintext
Request URL: https://hooks.zapier.com/hooks/catch/REDACTED/
Request method: POST
Accept: */*
Connection: close
Content-Length: 7429
Content-Type: application/json
Host: hooks.zapier.com
User-Agent: Discourse/1.9.0.beta12
X-Discourse-Instance: https://SITE_NAME
X-Discourse-Event-Id: 168
X-Discourse-Event-Type: user
X-Discourse-Event: user_updated

```

Specifically: `X-Discourse-Event-Type` and `X-Discourse-Event`

Though I can see where `X-Discourse-Instance` would be useful too.

Maybe this change can be included with the fix for [71643](https://meta.discourse.org/t/creating-a-topic-or-a-post-sends-the-user-updated-webhook/71643/10)

---

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