# Handle webhooks secret token verification with many accounts

**URL:** <https://devforum.zoom.us/t/handle-webhooks-secret-token-verification-with-many-accounts/80601>\
**Category:** Meetings\
**Tags:** webhooks\
**Created:** [December 21, 2022, 5:16pm UTC](https://devforum.zoom.us/t/handle-webhooks-secret-token-verification-with-many-accounts/80601 "2022-12-21T17:16:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![amonasalama](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/amonasalama/32/49564_2.png) [@amonasalama](https://devforum.zoom.us/u/amonasalama)\
**Post date:** [December 21, 2022, 5:16pm UTC](https://devforum.zoom.us/t/handle-webhooks-secret-token-verification-with-many-accounts/80601/1 "2022-12-21T17:16:13Z")

</div>

Webhooks verify event

Hi everyone, I have 4 different zoom accounts and I have implemented a webhooks app for each (all events received are the same endpoint) I use the meeting id to distinguish between different accounts.

The **problem** right now is that with the new webhooks validation, every one of these accounts has a unique secret token and it needs to be known from my end whereas no clue in the verification request for which app this token is.  
`{"event":"endpoint.url_validation","payload":{"plainToken":"token"},"event_ts":16716398},`

The question is whether there is a way to send the meeting id alongside the url\_validation request. or can I hard code the secret token in the webhooks app

More details  
In documentation:  
crypto .createHmac(‘sha256’, ```  
ZOOM\_WEBHOOK\_SECRET\_TOKEN

```auto
But in my case, there are 4 different secret tokens

Thank you
```

---

<div class="post-metadata">

**Author:** ![freelancer.nak](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/freelancer.nak/32/40968_2.png) [@freelancer.nak](https://devforum.zoom.us/u/freelancer.nak)\
**Post date:** [December 21, 2022, 5:53pm UTC](https://devforum.zoom.us/t/handle-webhooks-secret-token-verification-with-many-accounts/80601/2 "2022-12-21T17:53:44Z")

</div>

Hi,

Please build relation

// App 1  
[{  
VerificationToken:ssd9eksdlfjds,  
SecretToken:sdkflsdfkjdskfd  
},  
// App 2  
{  
VerificationToken:ssd9eksdlfjds,  
SecretToken:sdkflsdfkjdskfd  
},  
// App 3  
{  
VerificationToken:ssd9eksdlfjds,  
SecretToken:sdkflsdfkjdskfd  
},  
// App 4  
{  
VerificationToken:ssd9eksdlfjds,  
SecretToken:sdkflsdfkjdskfd  
}]

then inside the request headers, you have an authorization header get that and filter the exact app secret from your list of 4 apps req.headers.authorization==apps[index].VerificationToken.

 ![Screenshot 2022-12-21 at 10.47.25 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/4/c4cf041a270d6fb063a9375eaac5ae103e31d4d4.jpeg)

---

<div class="post-metadata">

**Author:** ![amonasalama](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/amonasalama/32/49564_2.png) [@amonasalama](https://devforum.zoom.us/u/amonasalama)\
**Post date:** [December 21, 2022, 6:54pm UTC](https://devforum.zoom.us/t/handle-webhooks-secret-token-verification-with-many-accounts/80601/3 "2022-12-21T18:54:03Z")

</div>

This is great news. I will give it a try thank you!

---

<div class="post-metadata">

**Author:** ![fail-fixer](https://avatars.discourse-cdn.com/v4/letter/f/c89c15/32.png) [@fail-fixer](https://devforum.zoom.us/u/fail-fixer)\
**Post date:** [June 20, 2023, 6:34pm UTC](https://devforum.zoom.us/t/handle-webhooks-secret-token-verification-with-many-accounts/80601/4 "2023-06-20T18:34:20Z")

</div>

With the verification token expiring, my solution to this problem is to use custom route for each zoom account -  
api/zoom/events/1  
api/zoom/events/2  
…  
and in the code identify the ID and use the secret token accordingly.
