# How to leave meeting via api

**URL:** <https://devforum.zoom.us/t/how-to-leave-meeting-via-api/80220>\
**Category:** Web\
**Created:** [December 13, 2022, 2:43pm UTC](https://devforum.zoom.us/t/how-to-leave-meeting-via-api/80220 "2022-12-13T14:43:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aayush.jain](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@aayush.jain](https://devforum.zoom.us/u/aayush.jain)\
**Post date:** [December 13, 2022, 2:43pm UTC](https://devforum.zoom.us/t/how-to-leave-meeting-via-api/80220/1 "2022-12-13T14:43:00Z")

</div>

**Description**  
Currently, if a user which is already joined into a meeting, closes its tab or browser. Then the user still show joined into meeting for 2 minutes. After 2 minutes his session actually leaves the meeting.  
Is there any way to change this time? Or If the value can’t be changed then how can I call leave meeting for that particular user from backend server via API. I searched on api doc, did not find any api through which I could programatically call leave meeting.

**Which Web Meeting SDK version?**  
@zoomus/websdk: 2.8.0  
Type: Component View

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [December 14, 2022, 5:22am UTC](https://devforum.zoom.us/t/how-to-leave-meeting-via-api/80220/2 "2022-12-14T05:22:13Z")

</div>

Hi @aayush.jain ,

That is default behavior, as the timeout caters to users who accidentally close their tab, and wants to rejoin the meeting.

Could you share whats the scenario you are trying to achieve?

Another way is to use the API to end meeting, but I’m not sure if it is suitable for your scenario or not.

---

<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 18, 2022, 9:18am UTC](https://devforum.zoom.us/t/how-to-leave-meeting-via-api/80220/3 "2022-12-18T09:18:58Z")

</div>

@aayush.jain here is API within Meeting WebSDK `ZoomMtg.leaveMeeting();`. For more regarding Zoom Integrations → [https://youtube.com/playlist?list=PLtCPInQA1B7vBAtYCBQzUFfq7B8DpMDio](https://youtube.com/playlist?list=PLtCPInQA1B7vBAtYCBQzUFfq7B8DpMDio).

---

<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 17, 2023, 7:19pm UTC](https://devforum.zoom.us/t/how-to-leave-meeting-via-api/80220/4 "2023-01-17T19:19:11Z")

</div>

Closed on January 17, 2023, 7:19pm UTC

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