# Webinar Webhook triggering for all accounts?

**URL:** <https://devforum.zoom.us/t/webinar-webhook-triggering-for-all-accounts/6104>\
**Category:** API and Webhooks\
**Created:** [October 1, 2019, 8:06pm UTC](https://devforum.zoom.us/t/webinar-webhook-triggering-for-all-accounts/6104 "2019-10-01T20:06:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![twentyoverten](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/twentyoverten/32/1919_2.png) [@twentyoverten](https://devforum.zoom.us/u/twentyoverten)\
**Post date:** [October 1, 2019, 8:06pm UTC](https://devforum.zoom.us/t/webinar-webhook-triggering-for-all-accounts/6104/1 "2019-10-01T20:06:29Z")

</div>

**Description/Error**  
Our `webinar.ended` webhook just fired for an associated account that the webhook wasn’t created under. I was under the impression that the webhooks are account-specific (that’s what it says in the app center), meaning they would only fire for the account in which they are associated to, not ANY account that is associated with the account it was created under.

Am I missing something? Is there a setting to ensure that a webhook only fires for webinars ended from a SINGLE account? I see that the webhook returns an `account_id` from the payload, but that’s not exactly ideal to have to check against that every time ANY webinar ends to ensure our endpoint only continues if it matches.

**Which Endpoint/s?**

> **[Webinar Ended - Webinar Events - Webhook Reference - API Reference](https://marketplace.zoom.us/docs/api-reference/webhook-reference/webinar-events/webinar-ended)**
>
> Webinar Ended
> 
> 
> 
> Zoom users with a Webinar Plan have permissions for creating and managing Webinars. Zoom Video Webinar allows users to broadcast a Zoom...

---

<div class="post-metadata">

**Author:** ![twentyoverten](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/twentyoverten/32/1919_2.png) [@twentyoverten](https://devforum.zoom.us/u/twentyoverten)\
**Post date:** [October 1, 2019, 8:21pm UTC](https://devforum.zoom.us/t/webinar-webhook-triggering-for-all-accounts/6104/2 "2019-10-01T20:21:02Z")

</div>

For clarification, we have an admin (high-level) account, which I’ll call: **Main Account** and a (paid) user account the webhook was created under, which I’ll call **User Account**. Both are pro users, with the webinar add-on, but managed by **Main Account**.

Here’s what happened:

1. **User Account** has an app created that triggers the `webinar.ended` webhook
2. **Main Account** had a webinar today that ended at 3pm
3. **User Account** webhook was triggered when webinar from **Main Account** ended

The problem we encountered was the webhook triggers some custom emails to dispatch to absentees from our endpoint which are branded specifically for **User Account**. But since it fired for a webinar on **Main Account** , the absentees from that webinar got a wrongly branded email.

Shouldn’t this webhook only fire for webinars ended from **User Account**?

---

<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:** [October 1, 2019, 10:26pm UTC](https://devforum.zoom.us/t/webinar-webhook-triggering-for-all-accounts/6104/3 "2019-10-01T22:26:43Z")

</div>

Hey @twentyoverten,

Sorry for the confusion, Webhooks are Account-Level which mean they are tied to the master Zoom account, including sub users on that master account.

[From the docs:](https://marketplace.zoom.us/docs/guides/getting-started/app-types/create-webhook-only-app)  
“By creating a Webhook app on the Zoom App Marketplace, you can subscribe to one or more events **for all users** in an account.”

I would suggest implementing some logic after you receive the Webhook to check whether the email should be sent. Maybe by checking against a list of webinarIDs that you want to send emails for.

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, 6:44pm UTC](https://devforum.zoom.us/t/webinar-webhook-triggering-for-all-accounts/6104/4 "2020-08-21T18:44:04Z")

</div>

Closed on August 21, 2020, 6:44pm UTC


