# Dynamic Publishable URL

**URL:** <https://devforum.zoom.us/t/dynamic-publishable-url/16436>\
**Category:** App Marketplace\
**Created:** [May 6, 2020, 6:04pm UTC](https://devforum.zoom.us/t/dynamic-publishable-url/16436 "2020-05-06T18:04:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![peyterkim](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/peyterkim/32/7840_2.png) [@peyterkim](https://devforum.zoom.us/u/peyterkim)\
**Post date:** [May 6, 2020, 6:04pm UTC](https://devforum.zoom.us/t/dynamic-publishable-url/16436/1 "2020-05-06T18:04:10Z")

</div>

**Description**  
I want to create an OAuth app for my application which can have subdomains but I don’t know how to handle a publishable URL with a dynamic redirect\_uri.

**Details**  
How do I create a publishable URL with the effect of having a dynamic redirect\_uri. For example, when I go to the marketplace and install Slack, I’m taken to the subdomain of my company’s Slack account. How can I achieve the same thing?

---

<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:** [May 12, 2020, 12:20am UTC](https://devforum.zoom.us/t/dynamic-publishable-url/16436/2 "2020-05-12T00:20:32Z")

</div>

Hey @peyterkim,

Let me know if my post here helps:

> [@Does zoom support more than two environments for oauth2?](https://devforum.zoom.us/t/does-zoom-support-more-than-two-environments-for-oauth2/11052/12):
>
> Hey @tuancode, @michael.solomon, This is totally possible! slight_smile Let me walk you through how to do this with the base domain of example.com For your whitelist, simply add your base domain: https://example.com Then in your dev/prod redirect url field, add a default redirect, https://any.example.com (this will be programmatically overridden to the correct sub domain, continue reading below) Now, with your install URL ([the url mentioned in Step 1. of the OAuth guide](https://marketplace.zoom.us/docs/guides/auth/oauth#getting-access-token)) in your code, dyna…

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![peyterkim](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/peyterkim/32/7840_2.png) [@peyterkim](https://devforum.zoom.us/u/peyterkim)\
**Post date:** [May 12, 2020, 2:43am UTC](https://devforum.zoom.us/t/dynamic-publishable-url/16436/3 "2020-05-12T02:43:12Z")

</div>

@tommy,

That makes sense but where I’m having trouble is when a user goes to the Zoom marketplace and clicks “Install”, how would my app programmatically override the default redirect URI. I understand I can do that from within my own application where I have the context of the user and the subdomain but that context wouldn’t exist in the Zoom marketplace.

To provide more context, I’m in the settings for my OAuth app in the “Submit” section where I can “Preview URL”. There I can choose to “Install”, but I’m not sure how the redirect\_uri is supposed to take the user to their subdomain.

---

<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:** [May 15, 2020, 6:07pm UTC](https://devforum.zoom.us/t/dynamic-publishable-url/16436/4 "2020-05-15T18:07:39Z")

</div>

Hey @peyterkim,

Good question! You can use the “Visit Site to Install” option on the “Information” page which will change the Marketplace “Install” button to be a link to your site:

![Screen Shot 2020-04-06 at 3.26.47 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/3/33b5afbc1e2c5d743159a8b41f327f0a26f8c9c5.png)

 ![Screen Shot 2020-04-02 at 8.48.27 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/b/b4c627950d9f44de0ae9aafba98b97dad48a0f87.png)

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, 9:19pm UTC](https://devforum.zoom.us/t/dynamic-publishable-url/16436/5 "2020-08-21T21:19:59Z")

</div>

Closed on August 21, 2020, 9:19pm UTC


