# Validate webhook Endpoint we need account details also for get webhook secret from database for handling multiple account

**URL:** <https://devforum.zoom.us/t/validate-webhook-endpoint-we-need-account-details-also-for-get-webhook-secret-from-database-for-handling-multiple-account/80850>\
**Category:** API and Webhooks\
**Tags:** webhooks\
**Created:** [December 29, 2022, 5:48am UTC](https://devforum.zoom.us/t/validate-webhook-endpoint-we-need-account-details-also-for-get-webhook-secret-from-database-for-handling-multiple-account/80850 "2022-12-29T05:48:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![techteam.toprankers](https://avatars.discourse-cdn.com/v4/letter/t/ce7236/32.png) [@techteam.toprankers](https://devforum.zoom.us/u/techteam.toprankers)\
**Post date:** [December 29, 2022, 5:48am UTC](https://devforum.zoom.us/t/validate-webhook-endpoint-we-need-account-details-also-for-get-webhook-secret-from-database-for-handling-multiple-account/80850/1 "2022-12-29T05:48:46Z")

</div>

We are using 20+ zoom account for our organization.

So, when we add webhook endpoint that time zoom validate that endpoint with send one POST request with plain token on request body.

And in our end, we need to encrypt that token with webhook secret and send that to response for validate it.

So, the Issue is that we are not receiving the account details on request body. So, how can we identify for which account the validation is happening. If we receive the account detail like **email** that time we can take webhook secret for that account from our Database and validate It

---

<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 29, 2022, 6:49am UTC](https://devforum.zoom.us/t/validate-webhook-endpoint-we-need-account-details-also-for-get-webhook-secret-from-database-for-handling-multiple-account/80850/2 "2022-12-29T06:49:12Z")

</div>

Hi @techteam.toprankers, You have Verification Token inside req.headers. Please build relation

```auto
[
//account 1
{
verificationToken:'',
secretToken:''
},
//account 2
{
verificationToken:'',
secretToken:''
}

```

]

Once the url\_validation notification is received just filter req.headers.authorization==accounts[index].verfiicationToken, get the specific secretToken and hex it.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [December 29, 2022, 7:57pm UTC](https://devforum.zoom.us/t/validate-webhook-endpoint-we-need-account-details-also-for-get-webhook-secret-from-database-for-handling-multiple-account/80850/3 "2022-12-29T19:57:08Z")

</div>

Thanks for sharing your solution @freelancer.nak. Does that solve your issue @techteam.toprankers

---

<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:** [January 2, 2024, 11:33am UTC](https://devforum.zoom.us/t/validate-webhook-endpoint-we-need-account-details-also-for-get-webhook-secret-from-database-for-handling-multiple-account/80850/4 "2024-01-02T11:33:31Z")

</div>

Closed on January 2, 2024, 11:33am UTC

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