# Webhook: How do we retrieve the application client's metadata?

**URL:** <https://community.auth0.com/t/webhook-how-do-we-retrieve-the-application-clients-metadata/6393>\
**Category:** Get Help\
**Tags:** client, webhooks, webtask, metadata\
**Created:** [April 28, 2017, 1:45am UTC](https://community.auth0.com/t/webhook-how-do-we-retrieve-the-application-clients-metadata/6393 "2017-04-28T01:45:36Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandy](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@sandy](https://community.auth0.com/u/sandy)\
**Post date:** [April 28, 2017, 1:45am UTC](https://community.auth0.com/t/webhook-how-do-we-retrieve-the-application-clients-metadata/6393/1 "2017-04-28T01:45:36Z")

</div>

I added metadata to my client under advanced settings.

I need to be able to determine which client the user is register a new user on.

I did console.log(client.clientMetadata) and it returns that this is not defined.

My user is registering a new account for that client app so I don’t understand how this is not defined.

Any ideas??

I need to be able to send this data to my REST endpoint so it knows which app this customer is registering for.

---

<div class="post-metadata">

**Author:** ![Abhishek\_Hingnikar1](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Abhishek\_Hingnikar1](https://community.auth0.com/u/Abhishek_Hingnikar1)\
**Post date:** [April 28, 2017, 2:11am UTC](https://community.auth0.com/t/webhook-how-do-we-retrieve-the-application-clients-metadata/6393/2 "2017-04-28T02:11:07Z")

</div>

Can you explain what are you trying to do in the registration hook that requires the client metadata?

---

<div class="post-metadata">

**Author:** ![sandy](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@sandy](https://community.auth0.com/u/sandy)\
**Post date:** [April 28, 2017, 2:15am UTC](https://community.auth0.com/t/webhook-how-do-we-retrieve-the-application-clients-metadata/6393/3 "2017-04-28T02:15:15Z")

</div>

I actually figured an alternative route to this by adding the metadata to the user from the mobile side. However, what I’m trying to do is that I need to send the app name to my REST endpoint so that I can set up configurations for that app. But, I have to know which app it is. My REST endpoint is called after a new user registers via the webhook.

---

<div class="post-metadata">

**Author:** ![sandy](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@sandy](https://community.auth0.com/u/sandy)\
**Post date:** [April 28, 2017, 2:15am UTC](https://community.auth0.com/t/webhook-how-do-we-retrieve-the-application-clients-metadata/6393/4 "2017-04-28T02:15:21Z")

</div>

I’m now running into issues with the POST request. I need to be able to send HTTP headers along with the POST. But, for some reason, it’s not allowing me to add the headers to the POST request.  
Using this library: [GitHub - request/request: 🏊🏾 Simplified HTTP request client.](https://github.com/request/request)

---

<div class="post-metadata">

**Author:** ![Abhishek\_Hingnikar1](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Abhishek\_Hingnikar1](https://community.auth0.com/u/Abhishek_Hingnikar1)\
**Post date:** [April 28, 2017, 2:44am UTC](https://community.auth0.com/t/webhook-how-do-we-retrieve-the-application-clients-metadata/6393/5 "2017-04-28T02:44:40Z")

</div>

Can you make sure you are using the correct version docs the request on server can be checked at [Redirecting to https://auth0-extensions.github.io/canirequire/](https://tehsis.github.io/webtaskio-canirequire/)

---

<div class="post-metadata">

**Author:** ![sandy](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@sandy](https://community.auth0.com/u/sandy)\
**Post date:** [April 28, 2017, 2:48am UTC](https://community.auth0.com/t/webhook-how-do-we-retrieve-the-application-clients-metadata/6393/6 "2017-04-28T02:48:39Z")

</div>

I got it to work. I used it without the 2.65. I just ended up having to create the options with the url, headers, and form-data and then send that as request.post(options)

---

<div class="post-metadata">

**Author:** ![sandy](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@sandy](https://community.auth0.com/u/sandy)\
**Post date:** [April 28, 2017, 2:15am UTC](https://community.auth0.com/t/webhook-how-do-we-retrieve-the-application-clients-metadata/6393/7 "2017-04-28T02:15:15Z")

</div>

I actually figured an alternative route to this by adding the metadata to the user from the mobile side. However, what I’m trying to do is that I need to send the app name to my REST endpoint so that I can set up configurations for that app. But, I have to know which app it is. My REST endpoint is called after a new user registers via the webhook.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:53am UTC](https://community.auth0.com/t/webhook-how-do-we-retrieve-the-application-clients-metadata/6393/8 "2018-03-02T05:53:33Z")

</div>


