# Best practice for handling subscription events required to go to different urls for different users

**URL:** <https://devforum.zoom.us/t/best-practice-for-handling-subscription-events-required-to-go-to-different-urls-for-different-users/23130>\
**Category:** API and Webhooks\
**Created:** [July 3, 2020, 12:14pm UTC](https://devforum.zoom.us/t/best-practice-for-handling-subscription-events-required-to-go-to-different-urls-for-different-users/23130 "2020-07-03T12:14:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bo.zhang](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@bo.zhang](https://devforum.zoom.us/u/bo.zhang)\
**Post date:** [July 3, 2020, 12:14pm UTC](https://devforum.zoom.us/t/best-practice-for-handling-subscription-events-required-to-go-to-different-urls-for-different-users/23130/1 "2020-07-03T12:14:23Z")

</div>

**Description**

Hi, I am currently building an app that requires a certain user’s webhook events to hit a certain endpoint, provisioned for the user. I am wondering how best to approach this requirement.

**Error**  
The full error message or issue you are running into.

From playing around with the Zoom app, it seems like it is not possible to target a certain user’s webhook events to a certain endpoint, all event data is muxed and sent to one endpoint.

The current solution we have is to create a separate app per webhook endpoint and then have users sign up to their designated app. The downside of this is that it is cumbersome to have each app published and maintained thereafter.

Thanks in advance

---

<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:** [July 7, 2020, 8:05pm UTC](https://devforum.zoom.us/t/best-practice-for-handling-subscription-events-required-to-go-to-different-urls-for-different-users/23130/2 "2020-07-07T20:05:48Z")

</div>

Hey @bo.zhang,

> [@bo.zhang](#):
>
> From playing around with the Zoom app, it seems like it is not possible to target a certain user’s webhook events to a certain endpoint, all event data is muxed and sent to one endpoint.

Correct, you will have to add logic on your end to determine how to handle the respective user.

> [@bo.zhang](#):
>
> The current solution we have is to create a separate app per webhook endpoint and then have users sign up to their designated app. The downside of this is that it is cumbersome to have each app published and maintained thereafter.

What is your use case of needing a seperate webhook url for each user?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![bo.zhang](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@bo.zhang](https://devforum.zoom.us/u/bo.zhang)\
**Post date:** [July 8, 2020, 1:21am UTC](https://devforum.zoom.us/t/best-practice-for-handling-subscription-events-required-to-go-to-different-urls-for-different-users/23130/3 "2020-07-08T01:21:53Z")

</div>

Hi Tommy,

Thanks for replying.

Our use case for requiring a separate webhook url is the following; we allow our users to sign up to a region. In each region, we have an environment and a corresponding url.  
Therefore we would like to have particular users who have signed up to a certain region, to receive their webhook events via a certain url.

I guess our biggest headache now is the fact that we have to maintain an app per url, where the apps are pretty much identical in terms of permissions required… etc.

Thanks again for your assistance,  
Bo

---

<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:** [July 9, 2020, 6:26pm UTC](https://devforum.zoom.us/t/best-practice-for-handling-subscription-events-required-to-go-to-different-urls-for-different-users/23130/4 "2020-07-09T18:26:32Z")

</div>

Hey @bo.zhang,

Correct, you would need to [create multiple apps](https://marketplace.zoom.us/search?q=Brick%20Rev), or handle the logic on your end once you receive the webhook.

We recommend one app to connect your site to our API functionality and then having you build out your site to route users appropriately.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![bo.zhang](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@bo.zhang](https://devforum.zoom.us/u/bo.zhang)\
**Post date:** [July 15, 2020, 10:05am UTC](https://devforum.zoom.us/t/best-practice-for-handling-subscription-events-required-to-go-to-different-urls-for-different-users/23130/5 "2020-07-15T10:05:44Z")

</div>

Hey Tommy,

Thanks for the advice. We have started developing the solution discussed, and we have reached an issue with our redirect url. It is in the following format “[https://webhook-region.ourDomain.com/zoom/permissions](https://webhook-region.ourDomain.com/zoom/permissions)”. We are constantly getting 403, redirect url mismatch error when requesting for the access token, however when I change this to an ngrok url, the same issue doesn’t arise.

I am wondering if it is possible for there to be url blacklisting on your end?

Thank,  
Bo

---

<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:** [July 20, 2020, 4:41pm UTC](https://devforum.zoom.us/t/best-practice-for-handling-subscription-events-required-to-go-to-different-urls-for-different-users/23130/6 "2020-07-20T16:41:58Z")

</div>

Hey @bo.zhang,

Are you providing the correct redirect url when [getting an access token](https://marketplace.zoom.us/docs/guides/auth/oauth#step-2-request-access-token)?

Also make sure your redirect url is in your whitelist app settings.

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, 10:46pm UTC](https://devforum.zoom.us/t/best-practice-for-handling-subscription-events-required-to-go-to-different-urls-for-different-users/23130/7 "2020-08-21T22:46:38Z")

</div>

Closed on August 21, 2020, 10:46pm UTC


