# Adding request headers in login, challenge and token api call

**URL:** <https://community.auth0.com/t/adding-request-headers-in-login-challenge-and-token-api-call/184523>\
**Category:** Get Help\
**Tags:** login-prompt-new-experience, login-experience\
**Created:** [March 26, 2025, 12:09pm UTC](https://community.auth0.com/t/adding-request-headers-in-login-challenge-and-token-api-call/184523 "2025-03-26T12:09:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![unmeshabhole](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/unmeshabhole/32/73906_2.png) [@unmeshabhole](https://community.auth0.com/u/unmeshabhole)\
**Post date:** [March 26, 2025, 12:09pm UTC](https://community.auth0.com/t/adding-request-headers-in-login-challenge-and-token-api-call/184523/1 "2025-03-26T12:09:26Z")

</div>

Ready to post? 🔍 First, try searching for your answer.  
Hello,

we have implemented auth0 recently in our organisation, I need to add request headers in login, challenge and token api calls, is there any way to do that?  
Thanks in advance,  
Unmesha

---

<div class="post-metadata">

**Author:** ![gerald.czifra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gerald.czifra/32/75301_2.png) [@gerald.czifra](https://community.auth0.com/u/gerald.czifra)\
**Post date:** [March 26, 2025, 8:44pm UTC](https://community.auth0.com/t/adding-request-headers-in-login-challenge-and-token-api-call/184523/3 "2025-03-26T20:44:16Z")

</div>

Hi @unmeshabhole

Welcome to the Auth0 Community!

I believe you should be able to use the [Authentication API](https://auth0.com/docs/api/authentication/introduction) in order to update the headers of the API calls.

Let me know if you are looking for something more specific that is not included in the link and I will do some research and try to provide more information.

Hope this helps!  
Gerald

---

<div class="post-metadata">

**Author:** ![unmeshabhole](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/unmeshabhole/32/73906_2.png) [@unmeshabhole](https://community.auth0.com/u/unmeshabhole)\
**Post date:** [March 26, 2025, 11:35pm UTC](https://community.auth0.com/t/adding-request-headers-in-login-challenge-and-token-api-call/184523/4 "2025-03-26T23:35:16Z")

</div>

Thank you so much for your response Gerald, I need to add one request header to login,token and challenge api calls. any idea if is it possible? if yes, how?

---

<div class="post-metadata">

**Author:** ![gerald.czifra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gerald.czifra/32/75301_2.png) [@gerald.czifra](https://community.auth0.com/u/gerald.czifra)\
**Post date:** [April 3, 2025, 6:37pm UTC](https://community.auth0.com/t/adding-request-headers-in-login-challenge-and-token-api-call/184523/5 "2025-04-03T18:37:24Z")

</div>

Hi @unmeshabhole

Apologies for the late reply, but doing some research on this matter, I found this following mention : [custom headers/query parameters on server-side requests are being ignored](https://community.auth0.com/t/auth0-nextjs-auth0-custom-headers-or-query-parameters-on-server-side-requests/151193/9), it looks like custom headers would not be rendered and this is currently not possible.

I wasn’t really able to find anything that might assist with this implementation, unless I am missing something, in which case I do recommend submitting a [Feature Request](https://auth0.com/feedback) where others can vote on the feature. The Product team monitors this category and if there is enough interest, it can push for further development of the feature.

Don’t hesitate to reach out to us for any further issues/discussions!

Have a great one,  
Gerald

---

<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:** [April 17, 2025, 6:37pm UTC](https://community.auth0.com/t/adding-request-headers-in-login-challenge-and-token-api-call/184523/6 "2025-04-17T18:37:40Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
