# Event notifications and subdomains

**URL:** <https://devforum.zoom.us/t/event-notifications-and-subdomains/36432>\
**Category:** API and Webhooks\
**Created:** [November 19, 2020, 11:06am UTC](https://devforum.zoom.us/t/event-notifications-and-subdomains/36432 "2020-11-19T11:06:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![magnus](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/magnus/32/19002_2.png) [@magnus](https://devforum.zoom.us/u/magnus)\
**Post date:** [November 19, 2020, 11:06am UTC](https://devforum.zoom.us/t/event-notifications-and-subdomains/36432/1 "2020-11-19T11:06:18Z")

</div>

Hi

We are creating a Zoom Oauth app which is set up to support multiple subdomains according to:

> **[OAuth 2.0 - Authorization - Documentation](https://marketplace.zoom.us/docs/guides/auth/oauth#using-multiple-environments)**
>
> OAuth with Zoom
> 
> The Zoom API uses OAuth 2.0 to authenticate and authorize users to make requests. To setup access credentials and request scopes for yo...

([example.com](http://example.com) is used as an… example…;))  
For example, the “Redirect URL for OAauth” is set to http s://any.example.com

Then any of the subdomains \*.example.com can use the app:

The Whitelist URL is setup with http s://example.com.

We also want to use the Event Subscription (webhooks) feature. My question is how do we setup this with multiple subdomains? What should the “Event notification endpoint” point to?  
http s://any.example.com?  
http s://example.com?

Is it even possible to use Event Notifications with multiple subdomains?

Thanks  
Magnus

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [November 20, 2020, 7:14pm UTC](https://devforum.zoom.us/t/event-notifications-and-subdomains/36432/2 "2020-11-20T19:14:01Z")

</div>

Hey @magnus,

Good questions, happy to help clarify.

First, regarding the multiple subdomains, please see this post which covers this in a bit more detail:

> [@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…

As for the webhook endpoint, please note that this will require a designated endpoint/URL for each event. (I believe we connected already over at Developer Support, too, where I’ve provided some more detail).

Let me know if this helps,  
Will

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [December 21, 2020, 5:14am UTC](https://devforum.zoom.us/t/event-notifications-and-subdomains/36432/3 "2020-12-21T05:14:13Z")

</div>

Closed on December 21, 2020, 5:14am UTC

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