# Call REST API within Auth0 forms and flows

**URL:** <https://community.auth0.com/t/call-rest-api-within-auth0-forms-and-flows/137558>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [June 26, 2024, 8:46pm UTC](https://community.auth0.com/t/call-rest-api-within-auth0-forms-and-flows/137558 "2024-06-26T20:46:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yash.panchal](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/yash.panchal/32/60644_2.png) [@yash.panchal](https://community.auth0.com/u/yash.panchal)\
**Post date:** [June 26, 2024, 8:46pm UTC](https://community.auth0.com/t/call-rest-api-within-auth0-forms-and-flows/137558/1 "2024-06-26T20:46:28Z")

</div>

Ready to post? 🔍 First, try searching for your answer.  
Hello, I am using Auth0 forms and flows feature to add new forms within my universal login page. I have seen the section in flows to call HTTP endpoint as below:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/1/2/12e036a4cc1c7892b6647f4a20b0eccb7ad4ba55.png)

My API requires access\_token generated by auth0. I want a way to call my API within flows and store the API response in variable so that I can show the response to the next step of my forms.

Is it possible? If yes then how?

---

<div class="post-metadata">

**Author:** ![mbolek](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mbolek/32/60249_2.png) [@mbolek](https://community.auth0.com/u/mbolek)\
**Post date:** [January 3, 2025, 10:32am UTC](https://community.auth0.com/t/call-rest-api-within-auth0-forms-and-flows/137558/2 "2025-01-03T10:32:57Z")

</div>

Bump! I have the same issue - there’s no way to authenticate calls to external endpoints with m2m authentication as shown in auth0 blog, entry /using-m2m-authorization/ . There’s HTTP Vault but it stores static bearer token which expires after certain time. There’s no way to obtain access token that can be sent as header to external service.

---

<div class="post-metadata">

**Author:** ![marybeth.hunter](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marybeth.hunter/32/61955_2.png) [@marybeth.hunter](https://community.auth0.com/u/marybeth.hunter)\
**Post date:** [January 6, 2025, 11:34pm UTC](https://community.auth0.com/t/call-rest-api-within-auth0-forms-and-flows/137558/4 "2025-01-06T23:34:19Z")

</div>

Hi @mbolek & @yash.panchal,

This is on the roadmap! I cannot speak to a timeline, but this will be addressed by the team at some point.

Thanks,

Mary Beth

---

<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:** [January 20, 2025, 11:34pm UTC](https://community.auth0.com/t/call-rest-api-within-auth0-forms-and-flows/137558/6 "2025-01-20T23:34:32Z")

</div>

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