# How to end meeting with Zoom API

**URL:** <https://devforum.zoom.us/t/how-to-end-meeting-with-zoom-api/34625>\
**Category:** API and Webhooks\
**Created:** [October 29, 2020, 11:14am UTC](https://devforum.zoom.us/t/how-to-end-meeting-with-zoom-api/34625 "2020-10-29T11:14:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yimeichuah](https://avatars.discourse-cdn.com/v4/letter/y/77aa72/32.png) [@yimeichuah](https://devforum.zoom.us/u/yimeichuah)\
**Post date:** [October 29, 2020, 11:14am UTC](https://devforum.zoom.us/t/how-to-end-meeting-with-zoom-api/34625/1 "2020-10-29T11:14:37Z")

</div>

Hi, I am integrating Zoom in my React web application. I use Zoom API from my nodejs backend to create an instant meeting and it was very successful until I want to end the meeting. As the screenshots below, I’m putting the Zoom call in an iframe, which I want it to show in a Bootstrap Modal. Here comes the question: How to end the meeting and close the modal?

1. Yes, I did a lot of research from the developer forum, I shall use Web SDK. But unfortunately, my web application is also using Bootstrap (Zoom itself as well) and my UI styling has messed up terribly. I have read [a comment](https://devforum.zoom.us/t/integrating-zoom-web-sdk-breaks-existing-bootstrap-features/13661/5) that I should host it on a separate isolated path or sub domain but for my case, I can’t do that.
2. So, I decided to use Zoom API instead of Web SDK. I have a button for user to end meeting at the bottom (as screenshot shown). I can end the meeting (update meeting status) successfully and close the Bootstrap Modal too! BUT… what if the user click the “End” button from the Zoom controls toolbar? I can’t close the Bootstrap Modal and I will be redirected to the thank you page from Zoom. Is there any settings that I can hide the controls?

 ![Screen Shot 2020-10-29 at 6.48.51 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/b/bbb1a15b1708f9ab73666c9c60eebc4af10ee67f.png) ![Screen Shot 2020-10-29 at 6.48.39 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/e/4e8544dbb9d5f1fb650823acff440978e3f549a6.png) ![Screen Shot 2020-10-29 at 6.48.14 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/8/38087cd23f7515498d88c534d23682d37bf2b619.png)

Thanks in advance!  
yimei

---

<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:** [October 30, 2020, 6:42pm UTC](https://devforum.zoom.us/t/how-to-end-meeting-with-zoom-api/34625/2 "2020-10-30T18:42:04Z")

</div>

Hi @yimeichuah,

Are you using the Zoom Web Client? If so, there’s not a way to hide the controls.

In regards to ending a meeting, you can make use of our Update Meeting Status endpoint:

> **[Update Meeting Status - Meetings - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingstatus)**
>
> Update the status of a meeting.
> Scopes: meeting:write:admin meeting:write
> Rate Limit Label: Light
> 
> Authorization
> 
> Flow: authorizationCode
> 
> Authorizatio...

This allows you to end the meeting through the API by updating its status to “end.”

If you need to end it after 1 hour, for example, you could also use of the [Meeting Started Webhook/Event](https://marketplace.zoom.us/docs/api-reference/webhook-reference/meeting-events/meeting-started), and trigger that to call the above endpoint after the desired duration has passed.

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:** [November 30, 2020, 4:42am UTC](https://devforum.zoom.us/t/how-to-end-meeting-with-zoom-api/34625/3 "2020-11-30T04:42:08Z")

</div>

Closed on November 30, 2020, 4:42am UTC

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