# Auth header in API request from hook

**URL:** <https://community.auth0.com/t/auth-header-in-api-request-from-hook/8029>\
**Category:** Get Help\
**Tags:** hook, api-authorization\
**Created:** [August 30, 2017, 8:40pm UTC](https://community.auth0.com/t/auth-header-in-api-request-from-hook/8029 "2017-08-30T20:40:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![taylor](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/taylor/32/5419_2.png) [@taylor](https://community.auth0.com/u/taylor)\
**Post date:** [August 30, 2017, 8:40pm UTC](https://community.auth0.com/t/auth-header-in-api-request-from-hook/8029/1 "2017-08-30T20:40:27Z")

</div>

In the pre-registration hook, I am making an http request to my app’s API for a list of whitelisted email addresses. Can I simply make a GET request using an http package, and not add in an authorization header? Does Auth0 add this header to the request?

---

<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:** [August 31, 2017, 3:28pm UTC](https://community.auth0.com/t/auth-header-in-api-request-from-hook/8029/2 "2017-08-31T15:28:40Z")

</div>

No, from the perspective of calling an external service, either your own API or other third-party service, you can consider hooks as just any other Node.js code you would implement and that you could run locally, in particular, you’ll have to perform the call in such way that it includes the necessary requirements for the API in question.

This means that if the API requires some sort of authentication, you’re responsible to provide it even if the API happens to also be defined in Auth0.

---

<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:56am UTC](https://community.auth0.com/t/auth-header-in-api-request-from-hook/8029/3 "2018-03-02T05:56:13Z")

</div>


