# Calling multiple API from MVC

**URL:** <https://community.auth0.com/t/calling-multiple-api-from-mvc/119684>\
**Category:** Get Help\
**Tags:** clients, management-api\
**Created:** [October 29, 2023, 9:31pm UTC](https://community.auth0.com/t/calling-multiple-api-from-mvc/119684 "2023-10-29T21:31:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![distnie](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/distnie/32/52045_2.png) [@distnie](https://community.auth0.com/u/distnie)\
**Post date:** [October 29, 2023, 9:31pm UTC](https://community.auth0.com/t/calling-multiple-api-from-mvc/119684/1 "2023-10-29T21:31:00Z")

</div>

I have the following code in the C# MVC application, but I want to call more than one APIs from MVC. so I want to add multiple audience. for eg “API-1”, “API-2” and so on. how do i modify the following code?

```auto
 services.AddAuth0WebAppAuthentication(options =>
            {
                options.Domain = "https://myokta.authority.com";
                options.ClientId = AppSettings.AuthenticationClientId;
                options.ClientSecret = AppSettings.AuthenticationClientSecret;
                options.Scope = AppSettings.AuthenticationScopes;
            }).WithAccessToken(options =>
            {
                options.Audience = "API-1";
            });

```

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [November 21, 2023, 10:49pm UTC](https://community.auth0.com/t/calling-multiple-api-from-mvc/119684/2 "2023-11-21T22:49:12Z")

</div>

Hey there @distnie !

Multiple audiences is not supported by Auth0 - Rather, you will want to use a single logical API:

[https://community.auth0.com/t/how-do-i-specify-multiple-audiences/10830](https://community.auth0.com/t/how-do-i-specify-multiple-audiences/10830)

---

<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:** [December 5, 2023, 10:49pm UTC](https://community.auth0.com/t/calling-multiple-api-from-mvc/119684/4 "2023-12-05T22:49:35Z")

</div>

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