# APIs for create session and kick user out of the call

**URL:** <https://devforum.zoom.us/t/apis-for-create-session-and-kick-user-out-of-the-call/101447>\
**Category:** Twilio Migration\
**Tags:** api, video-sdk\
**Created:** [January 9, 2024, 3:58am UTC](https://devforum.zoom.us/t/apis-for-create-session-and-kick-user-out-of-the-call/101447 "2024-01-09T03:58:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tuan.nguyen](https://avatars.discourse-cdn.com/v4/letter/t/f0a364/32.png) [@tuan.nguyen](https://devforum.zoom.us/u/tuan.nguyen)\
**Post date:** [January 9, 2024, 3:58am UTC](https://devforum.zoom.us/t/apis-for-create-session-and-kick-user-out-of-the-call/101447/1 "2024-01-09T03:58:36Z")

</div>

# What?

- I need an API for creating a call session from the backend side, instead of the client side.
- I need an API to kick a user out of the session are in-call

# Why?

- The Twilio Programmable Video will be deprecation so our team looking forward to migrating to Zoom Video SDK.
- Currently, our application has a flow that controls the call session and kicks users out of the call from the backend side.  
[Twilio REST API: Create Room](https://www.twilio.com/docs/video/api/rooms-resource?code-sample=code-create-a-room&code-language=curl&code-sdk-version=json)  
[Twilio REST API: Kick Participant](https://www.twilio.com/docs/video/api/participants#list-filters)

# Expected

I checked the Video SDK API document but didn’t find APIs comparable with Twilio Programmable Video for that flow.  
It would be great if you can support me on those things.

---

<div class="post-metadata">

**Author:** ![ekaansh.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ekaansh.zoom/32/55004_2.png) [@ekaansh.zoom](https://devforum.zoom.us/u/ekaansh.zoom)\
**Post date:** [January 9, 2024, 12:47pm UTC](https://devforum.zoom.us/t/apis-for-create-session-and-kick-user-out-of-the-call/101447/2 "2024-01-09T12:47:33Z")

</div>

Hi @tuan.nguyen,

- Zoom creates sessions on demand; they don’t need to be scheduled using an API. You can learn more about `sessions` [here](https://developers.zoom.us/docs/video-sdk/web/sessions/).  
Session are secure, each user needs a [Video SDK JWT](https://developers.zoom.us/docs/video-sdk/auth/) (created server side) to access a session.  
The session begins when the first user joins.

- You can kick a user with the Zoom Video SDK. You can pass the `userId` of the user to the [removeUser](https://marketplacefront.zoom.us/sdk/custom/web/modules/VideoClient.html#removeUser) method on the `VideoClient`. Only the **host** or **manager** can remove others.

I hope this helps,  
Ekaansh

---

<div class="post-metadata">

**Author:** ![tuan.nguyen](https://avatars.discourse-cdn.com/v4/letter/t/f0a364/32.png) [@tuan.nguyen](https://devforum.zoom.us/u/tuan.nguyen)\
**Post date:** [January 10, 2024, 2:49am UTC](https://devforum.zoom.us/t/apis-for-create-session-and-kick-user-out-of-the-call/101447/3 "2024-01-10T02:49:47Z")

</div>

HI @ekaansh.zoom ,

Thanks for your information, I understand that we can kick a user with Zoom Video SDK.  
But I want to kick a user via the backend, so is there any Video SDK API that can do it?

Thanks,  
Tuan

---

<div class="post-metadata">

**Author:** ![ekaansh.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ekaansh.zoom/32/55004_2.png) [@ekaansh.zoom](https://devforum.zoom.us/u/ekaansh.zoom)\
**Post date:** [January 11, 2024, 2:03pm UTC](https://devforum.zoom.us/t/apis-for-create-session-and-kick-user-out-of-the-call/101447/4 "2024-01-11T14:03:49Z")

</div>

Hi @tuan.nguyen,

We do not have an API for kicking a user out of a meeting.

You can use the SDK method I mentioned previously, if you would like to have control over the meeting experience and kick users out programmatically.

Feel free to submit a feature request for a kick user from meeting API: #Feature Requests

---

<div class="post-metadata">

**Author:** ![ekaansh.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ekaansh.zoom/32/55004_2.png) [@ekaansh.zoom](https://devforum.zoom.us/u/ekaansh.zoom)\
**Post date:** [January 11, 2024, 2:04pm UTC](https://devforum.zoom.us/t/apis-for-create-session-and-kick-user-out-of-the-call/101447/5 "2024-01-11T14:04:05Z")

</div>

Closed on January 11, 2024, 2:04pm UTC


