# Can I have multiple audiences for 1 API?

**URL:** <https://community.auth0.com/t/can-i-have-multiple-audiences-for-1-api/130302>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [March 23, 2024, 6:29am UTC](https://community.auth0.com/t/can-i-have-multiple-audiences-for-1-api/130302 "2024-03-23T06:29:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bas2](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Bas2](https://community.auth0.com/u/Bas2)\
**Post date:** [March 23, 2024, 6:29am UTC](https://community.auth0.com/t/can-i-have-multiple-audiences-for-1-api/130302/1 "2024-03-23T06:29:18Z")

</div>

I can’t find out how to do this. I have 2 applications, a frontend browser application and a backend API. Both have configuration in Auth0. if I request a token in the frontend, I want to supply the audience. However, my backend API can run either on a server, or localhost when developing. In Auth0, I can only use the URL of the API running on a server. How do I update my API configuration to also have an audience URL that is localhost?

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [March 25, 2024, 3:04pm UTC](https://community.auth0.com/t/can-i-have-multiple-audiences-for-1-api/130302/3 "2024-03-25T15:04:16Z")

</div>

Hey there @Bas2 , thanks for posting!

> [@Bas2](#):
>
> In Auth0, I can only use the URL of the API running on a server.

Not exactly. The API identifier is a reference value you would use in your front-end app so the Auth0 server knows what API the access token is granted. Our [Quickstarts](https://auth0.com/docs/quickstarts) to understand, walks us through where the API identifier value goes.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/e/4/e4ecf6bd6538995e33af8f107b8d9ceeed0486b3.png)

Please note that this doesn’t have to be a callable URL as Auth0 will not call your API, it can be a random, tenant-level unique identifier.

Please feel free to notify us if you have other questions about implementing Auth0 into your front-end app so that it calls Auth0 to get a relevant access token!

---

<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 8, 2024, 3:05pm UTC](https://community.auth0.com/t/can-i-have-multiple-audiences-for-1-api/130302/4 "2024-04-08T15:05:01Z")

</div>

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