# Webhooks geoip

**URL:** <https://community.auth0.com/t/webhooks-geoip/9126>\
**Category:** Get Help\
**Tags:** webhooks\
**Created:** [January 3, 2018, 10:45pm UTC](https://community.auth0.com/t/webhooks-geoip/9126 "2018-01-03T22:45:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgeerts](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jgeerts/32/7907_2.png) [@jgeerts](https://community.auth0.com/u/jgeerts)\
**Post date:** [January 3, 2018, 10:45pm UTC](https://community.auth0.com/t/webhooks-geoip/9126/1 "2018-01-03T22:45:42Z")

</div>

We want to show a country specific footer in our e-mail templates and also on the first verification e-mail. As described in the [documents](https://auth0.com/rules/add-country) I’ve added the Rule to get the language but the Rules aren’t ran on user signup and we cannot add the country specific footer using that rule.

I tried to create a similar webhook but apparently the geoip information isn’t available inside the webhook.

Is there a way to add a country specific footer inside the first verification mail?

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [January 4, 2018, 6:37pm UTC](https://community.auth0.com/t/webhooks-geoip/9126/2 "2018-01-04T18:37:32Z")

</div>

Given you mentioned that rule I’m assuming you were adding the country information to the user metadata and then the email template would react accordingly. At this time, the user registration hooks do not surface that information. Based on the information I have it’s planned to surface the IP address in those hooks, but even that would require you to then map the IP address to a country in the hook itself and as such would not be the same exact experience as in rules.

With the above in mind, depending on how the signups are being made one immediately available possibility is for the component performing the signup to send that country information as part of the user metadata that can be added during a [signup request](https://auth0.com/docs/api/authentication#signup).

---

<div class="post-metadata">

**Author:** ![jgeerts](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jgeerts/32/7907_2.png) [@jgeerts](https://community.auth0.com/u/jgeerts)\
**Post date:** [January 8, 2018, 7:06pm UTC](https://community.auth0.com/t/webhooks-geoip/9126/3 "2018-01-08T19:06:40Z")

</div>

@jmangelo many thanks for your response, that is exactly what we are doing. Unfortunately we can’t manipulate the metadata ourselves because we are using the Lock component, is there a way to send these additional fields with the Lock during signup?

---

<div class="post-metadata">

**Author:** ![jgeerts](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jgeerts/32/7907_2.png) [@jgeerts](https://community.auth0.com/u/jgeerts)\
**Post date:** [January 8, 2018, 7:06pm UTC](https://community.auth0.com/t/webhooks-geoip/9126/4 "2018-01-08T19:06:40Z")

</div>

@jmangelo many thanks for your response, that is exactly what we are doing. Unfortunately we can’t manipulate the metadata ourselves because we are using the Lock component, is there a way to send these additional fields with the Lock during signup?

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [January 9, 2018, 10:21pm UTC](https://community.auth0.com/t/webhooks-geoip/9126/5 "2018-01-09T22:21:48Z")

</div>

Lock technically supports sending additional information as part of user metadata through the use of [additional fields](https://auth0.com/docs/libraries/lock/v11/configuration#additionalsignupfields-array-). However, those fields would appear in the UI shown by Lock as there is no support to add a field with a default value and not show it in the UI.

---

<div class="post-metadata">

**Author:** ![jgeerts](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jgeerts/32/7907_2.png) [@jgeerts](https://community.auth0.com/u/jgeerts)\
**Post date:** [January 9, 2018, 10:24pm UTC](https://community.auth0.com/t/webhooks-geoip/9126/6 "2018-01-09T22:24:14Z")

</div>

Thank you very much for your help, we will try to resolve it on business side.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 25, 2019, 9:29am UTC](https://community.auth0.com/t/webhooks-geoip/9126/7 "2019-07-25T09:29:37Z")

</div>


