# External api calls from auth0 login page

**URL:** <https://community.auth0.com/t/external-api-calls-from-auth0-login-page/175001>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [January 28, 2025, 8:42pm UTC](https://community.auth0.com/t/external-api-calls-from-auth0-login-page/175001 "2025-01-28T20:42:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zav](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/zav/32/72025_2.png) [@zav](https://community.auth0.com/u/zav)\
**Post date:** [January 28, 2025, 8:42pm UTC](https://community.auth0.com/t/external-api-calls-from-auth0-login-page/175001/1 "2025-01-28T20:42:55Z")

</div>

We have a use case where we need to use the userid and password provided by the user in Auth0 login page and make an external api call to get OTDS ticket (Opentext directory services). The sample api request is below. Is this possible from login page and please provide some guidance / sample code to do this. Thank You!

```
	https://otds.xxx.ca/otdsws/rest/authentication/credentials

            payload
	{
	  "userName": "xxxxxx",
	  "password": "yyyyyy",
	  "targetResourceId": "assgfhgjghjjhg"
	}

```

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [January 29, 2025, 6:10pm UTC](https://community.auth0.com/t/external-api-calls-from-auth0-login-page/175001/3 "2025-01-29T18:10:23Z")

</div>

Hi @zav

Welcome to the Auth0 Community!

You will be able to make calls to an external API by creating an [Action](https://auth0.com/docs/customize/actions) and assign it to a [Post-Login Trigger](https://auth0.com/docs/customize/actions/explore-triggers/signup-and-login-triggers/login-trigger) since you are lookin to make the call once the user provides their email and password.

Let me know if you have any other questions or if you are still experiencing issues.

Kind Regards,  
Nik

---

<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:** [February 12, 2025, 6:11pm UTC](https://community.auth0.com/t/external-api-calls-from-auth0-login-page/175001/4 "2025-02-12T18:11:16Z")

</div>

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