# Dynamic redirect url

**URL:** <https://devforum.zoom.us/t/dynamic-redirect-url/12298>\
**Category:** App Marketplace\
**Created:** [April 9, 2020, 5:27am UTC](https://devforum.zoom.us/t/dynamic-redirect-url/12298 "2020-04-09T05:27:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dilipvrk](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dilipvrk/32/4966_2.png) [@dilipvrk](https://devforum.zoom.us/u/dilipvrk)\
**Post date:** [April 9, 2020, 5:27am UTC](https://devforum.zoom.us/t/dynamic-redirect-url/12298/1 "2020-04-09T05:27:34Z")

</div>

Hi,  
I’ve a web app that runs on different servers with a different domain name for each server. Each server is used by a different client. How can I add all those domain names as redirect urls of my Zoom app? This is so that, when a user on one server authorizes my app, they’ll get a redirect url back to their specific domain.

I have hundreds of such sites, is it also possible to add these redirect urls via some API instead of adding them manually in app dashboard?

Thanks,  
Dilip

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 9, 2020, 6:45am UTC](https://devforum.zoom.us/t/dynamic-redirect-url/12298/2 "2020-04-09T06:45:40Z")

</div>

Hey, you can use the `state` query param to redirect back to the respective site, or add all your domains as whitelist URLs and then pass in the respective redirect url in the OAuth flow.

Please see this doc: [https://marketplace.zoom.us/docs/guides/auth/oauth#getting-access-token](https://marketplace.zoom.us/docs/guides/auth/oauth#getting-access-token)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![dilipvrk](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dilipvrk/32/4966_2.png) [@dilipvrk](https://devforum.zoom.us/u/dilipvrk)\
**Post date:** [April 9, 2020, 11:05am UTC](https://devforum.zoom.us/t/dynamic-redirect-url/12298/3 "2020-04-09T11:05:18Z")

</div>

Thanks @tommy. Does it work when the redirect urls have different domains as well? For example, I’ll have redirect urls with different TLDs such as .au, .uk, .ca etc.

Also I have over 1500 such domains! Is there a way to automate adding the redirect urls instead of manually adding them?

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 10, 2020, 12:19am UTC](https://devforum.zoom.us/t/dynamic-redirect-url/12298/4 "2020-04-10T00:19:36Z")

</div>

Hey @dilipvrk,

Yes, just add each base domain as a whitelist .au, .uk, .ca, and then add any of the domains dynamically as your [redirect url during the OAuth flow](https://marketplace.zoom.us/docs/guides/auth/oauth#getting-access-token).

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![dilipvrk](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dilipvrk/32/4966_2.png) [@dilipvrk](https://devforum.zoom.us/u/dilipvrk)\
**Post date:** [April 10, 2020, 11:22am UTC](https://devforum.zoom.us/t/dynamic-redirect-url/12298/5 "2020-04-10T11:22:49Z")

</div>

Oh, cool! I’ll give that a try. Thanks @tommy

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 11, 2020, 1:01am UTC](https://devforum.zoom.us/t/dynamic-redirect-url/12298/6 "2020-04-11T01:01:13Z")

</div>

Let me know if you run into any issues! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 8:25pm UTC](https://devforum.zoom.us/t/dynamic-redirect-url/12298/7 "2020-08-21T20:25:08Z")

</div>


