# API for ending user's current meeting?

**URL:** <https://devforum.zoom.us/t/api-for-ending-users-current-meeting/9361>\
**Category:** API and Webhooks\
**Created:** [March 23, 2020, 10:16pm UTC](https://devforum.zoom.us/t/api-for-ending-users-current-meeting/9361 "2020-03-23T22:16:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![riley](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/riley/32/3947_2.png) [@riley](https://devforum.zoom.us/u/riley)\
**Post date:** [March 23, 2020, 10:16pm UTC](https://devforum.zoom.us/t/api-for-ending-users-current-meeting/9361/1 "2020-03-23T22:16:36Z")

</div>

**Description**  
I am hoping to use instant meetings to create ad-hoc zoom meetings for users, and join them with the web client. But if the user has another instant meeting already going, then

1. The meeting does not show up in the “list meetings” API call
2. The web client does not automatically provide a user interface for the user to end the other meeting themselves.

Is there an API call or combination of calls that can end the user’s current live meeting no matter what?

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
OAuth

---

<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:** [March 24, 2020, 1:07am UTC](https://devforum.zoom.us/t/api-for-ending-users-current-meeting/9361/2 "2020-03-24T01:07:03Z")

</div>

Hey @riley,

You can end a meeting via the update meeting status endpoint:

[https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingstatus](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingstatus)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![riley](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/riley/32/3947_2.png) [@riley](https://devforum.zoom.us/u/riley)\
**Post date:** [March 24, 2020, 1:38am UTC](https://devforum.zoom.us/t/api-for-ending-users-current-meeting/9361/3 "2020-03-24T01:38:01Z")

</div>

Thanks @tommy, but don’t I need the meeting ID for that endpoint?

I don’t have the ID on hand, and instant meetings don’t show up in the List Meetings endpoint… so how can I reach the live meeting to end it?

---

<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:** [March 24, 2020, 3:56pm UTC](https://devforum.zoom.us/t/api-for-ending-users-current-meeting/9361/4 "2020-03-24T15:56:47Z")

</div>

Hey @riley,

I believe you can call the [GET /metrics/meetings](https://marketplace.zoom.us/docs/api-reference/zoom-api/dashboards/dashboardmeetings) endpoint to list the live instant meetings.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![riley](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/riley/32/3947_2.png) [@riley](https://devforum.zoom.us/u/riley)\
**Post date:** [March 26, 2020, 2:04am UTC](https://devforum.zoom.us/t/api-for-ending-users-current-meeting/9361/5 "2020-03-26T02:04:30Z")

</div>

Thanks for your response. It sounds like to be sure I am ending the user’s current live meetings, the recommended approach would be:

1. Use GET /metrics/meetings?type=live for a full list of live meetings across the Account
2. Use GET /users/me for the email address of the current User
3. Look through the results of step 1 for host emails matching the user in step 2 (potentially paging through many pages of results for large zoom Accounts)
4. end any matching meetings with POST /meetings/{meetingId}/status

Am I understanding correctly?

---

<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:** [March 26, 2020, 7:23am UTC](https://devforum.zoom.us/t/api-for-ending-users-current-meeting/9361/6 "2020-03-26T07:23:16Z")

</div>

Hey @riley,

I believe step 2 is not needed as you only need the meetingID to [end the meeting](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingstatus).

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, 7:35pm UTC](https://devforum.zoom.us/t/api-for-ending-users-current-meeting/9361/7 "2020-08-21T19:35:57Z")

</div>

Closed on August 21, 2020, 7:35pm UTC


