# Start Meeting by Host or Co-Host for Zoom SDK version sdk\_5.10.3.6470

**URL:** <https://devforum.zoom.us/t/start-meeting-by-host-or-co-host-for-zoom-sdk-version-sdk-5-10-3-6470/79464>\
**Category:** Electron\
**Created:** [November 29, 2022, 7:55pm UTC](https://devforum.zoom.us/t/start-meeting-by-host-or-co-host-for-zoom-sdk-version-sdk-5-10-3-6470/79464 "2022-11-29T19:55:36Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![niravd](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@niravd](https://devforum.zoom.us/u/niravd)\
**Post date:** [November 29, 2022, 7:55pm UTC](https://devforum.zoom.us/t/start-meeting-by-host-or-co-host-for-zoom-sdk-version-sdk-5-10-3-6470/79464/1 "2022-11-29T19:55:36Z")

</div>

Hi I would like to start meeting as HOST or Co-Host Zoom SDK version sdk\_5.10.3.6470  
There are 2 methods as per documentation

```auto
(inner) StartMeeting(meetingnum, directshareappwndhandle, customer_key, isvideooff, isaudiooff, isdirectsharedesktop) → {Number}

```

In the above methods how can I generate customer\_key and get directshareappwndhandle values?

```auto
(inner) StartMeetingWithOutLogin(userid, usertoken, zoomaccesstoken, username, zoomusertype, meetingnum, vanityid, directshareappwndhandle, customer_key, isdirectsharedesktop, isvideooff, isaudiooff) → {Number}

```

In the above methods how can I get userid, usertoken, zoomaccesstoken from Zoom SDK without using OAuth API ?

And incase if I want to ask member to login to zoom via this electron application the old API I see  
login(username, password ) is deprecated what is the alternate method?

How can I achieve the functionality of Start Meeting by Host or Co-Host ?

Thank you  
Nirav Desai

---

<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:** [November 30, 2022, 2:24am UTC](https://devforum.zoom.us/t/start-meeting-by-host-or-co-host-for-zoom-sdk-version-sdk-5-10-3-6470/79464/2 "2022-11-30T02:24:30Z")

</div>

Hi @niravd ,

Users will not be able to login via username and password anymore.

For StartMeetingWithoutLogin, you need to access Zoom API to get the username and ZAK (Zoom AccessToken)

> **[Authorization](https://marketplace.zoom.us/docs/sdk/native-sdks/auth/#get-a-users-zak-token)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

---

<div class="post-metadata">

**Author:** ![niravd](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@niravd](https://devforum.zoom.us/u/niravd)\
**Post date:** [November 30, 2022, 2:55am UTC](https://devforum.zoom.us/t/start-meeting-by-host-or-co-host-for-zoom-sdk-version-sdk-5-10-3-6470/79464/3 "2022-11-30T02:55:16Z")

</div>

Hi @chunsiong.zoom  
thank you for the response.  
I would like to know  
Which all methods / API are there in zoomsdk which validates me as a host for the meeting, also please let me know the mandatory parameters for those apis.

Thanks,  
Nirav

---

<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:** [November 30, 2022, 3:55am UTC](https://devforum.zoom.us/t/start-meeting-by-host-or-co-host-for-zoom-sdk-version-sdk-5-10-3-6470/79464/4 "2022-11-30T03:55:55Z")

</div>

There are 2,

For Host, you will need to use the START type of methods  
[https://marketplacefront.zoom.us/sdk/meeting/electron/module-zoom\_meeting.html#~StartMeeting](https://marketplacefront.zoom.us/sdk/meeting/electron/module-zoom_meeting.html#~StartMeeting)  
[https://marketplacefront.zoom.us/sdk/meeting/electron/module-zoom\_meeting.html#~StartMeetingWithOutLogin](https://marketplacefront.zoom.us/sdk/meeting/electron/module-zoom_meeting.html#~StartMeetingWithOutLogin)

hope that helps

---

<div class="post-metadata">

**Author:** ![niravd](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@niravd](https://devforum.zoom.us/u/niravd)\
**Post date:** [December 1, 2022, 3:26am UTC](https://devforum.zoom.us/t/start-meeting-by-host-or-co-host-for-zoom-sdk-version-sdk-5-10-3-6470/79464/5 "2022-12-01T03:26:31Z")

</div>

Thank you for your response @chunsiong.zoom

for using this method

[https://marketplacefront.zoom.us/sdk/meeting/electron/module-zoom\_meeting.html#~StartMeeting](https://marketplacefront.zoom.us/sdk/meeting/electron/module-zoom_meeting.html#~StartMeeting)  
how can I get customer\_key and get directshareappwndhandle values?

Thank you,  
Nirav Desai

---

<div class="post-metadata">

**Author:** ![niravd](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@niravd](https://devforum.zoom.us/u/niravd)\
**Post date:** [December 19, 2022, 7:08am UTC](https://devforum.zoom.us/t/start-meeting-by-host-or-co-host-for-zoom-sdk-version-sdk-5-10-3-6470/79464/6 "2022-12-19T07:08:41Z")

</div>

Hi team I am waiting for the response for above query.

I have read the documentation, in documentation its mentioned

> customer\_key : The customer key that need the app intergrated with sdk to specify. The SDK will set this value when the associated settings are turned on

Kindly provide me detail explanation and example how to do it.

Thank you  
Nirav Desai

---

<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:** [January 11, 2023, 3:48am UTC](https://devforum.zoom.us/t/start-meeting-by-host-or-co-host-for-zoom-sdk-version-sdk-5-10-3-6470/79464/7 "2023-01-11T03:48:11Z")

</div>

Hi Nirav,

Here’s some follow up on the previously ask queries.

1. Users will not be able to sign in directly using their email and password.  
They should be able to login via

- SSO
- JWT Token

For JWT Token, you can either use

- OAuth API or
- Server to server OAuth

Customer Key should be an optional field  
For directshareappwndhandle , you should pass in the electron window handle, which electron’s native API should provide you

---

<div class="post-metadata">

**Author:** ![niravd](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@niravd](https://devforum.zoom.us/u/niravd)\
**Post date:** [February 6, 2023, 4:25am UTC](https://devforum.zoom.us/t/start-meeting-by-host-or-co-host-for-zoom-sdk-version-sdk-5-10-3-6470/79464/8 "2023-02-06T04:25:20Z")

</div>

Hi, @chunsiong.zoom

Thank you for the response, we are working on the above solution provided and reviewing it from our end. We will get back to you incase any further assistance required.

Thank You  
Nirav Desai

---

<div class="post-metadata">

**Author:** ![niravd](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@niravd](https://devforum.zoom.us/u/niravd)\
**Post date:** [February 14, 2023, 2:52am UTC](https://devforum.zoom.us/t/start-meeting-by-host-or-co-host-for-zoom-sdk-version-sdk-5-10-3-6470/79464/9 "2023-02-14T02:52:42Z")

</div>

Hi @chunsiong.zoom As per my understanding for the entire flow.

1. We need to enable Server to server OAuth

As mentioned in the documentation [user-oauth-with-the-meeting-sdk](https://marketplace.zoom.us/docs/sdk/native-sdks/auth/#user-oauth-with-the-meeting-sdk)

To start Zoom meetings and webinars on the Meeting SDK with a Zoom user’s ZAK token:

1. Choose an OAuth flow

> I can choose Server to server OAuth (SSO)  
> using the api [https://zoom.us/oauth/authorize](https://zoom.us/oauth/authorize)  
> Response we get : authorization code

1. Get the user’s ZAK token

> Using this API [GET [https://api.zoom.us/v2/users/me/token?type=zak](https://api.zoom.us/v2/users/me/token?type=zak)) and passing the authorization code we get above as **Bearer {{authorization code}}**  
> Response we get : “token”: “{{zak\_token}}”

1. Pass the ZAK token to the Meeting SDK.

> Passing the token in StartMeetingWithOutLogin  
> usertoken : ? (Need your advice what is expected here)  
> zoomaccesstoken : zak\_token  
> username : "Any String "  
> zoomusertype : ZoomUserType\_SSO  
> meetingnum : meeting\_number

Is my understanding above correct ?  
If Not please guide me.  
If Yes please check the queries below and advice.

**And the meeting starts if the member has start meeting permission.**

1. What will happen if the meeting is already started and calling the StartMeetingWithOutLogin method?
2. What is are the behaviour if the user does not have permission to Start Meeting and we use the StartMeetingWithOutLogin method?

Thank you,  
Nirav Desai

---

<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:** [February 14, 2023, 3:13am UTC](https://devforum.zoom.us/t/start-meeting-by-host-or-co-host-for-zoom-sdk-version-sdk-5-10-3-6470/79464/10 "2023-02-14T03:13:40Z")

</div>

Hi Nirav,

The flow of getting ZAK token via Server to Server OAuth is correct.

For this method `StartMeetingWithOutLogin`

usertoken should be the `user ID`. if i’m not mistaken, you can either use email or id.  
sample of what it looks like below from my own testing account

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/8/6897b8991af478c23ab22da213e23be34ce6ca5d.png)

For the zoomusertype, you should be look at SDK\_UT\_LOGIN or 101

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/a/9/a911693c2f00eb78901e707cab4b3e3fa0ad75b1.png)

Question: What will happen if the meeting is already started and calling the StartMeetingWithOutLogin method?

Answer: You will join the meeting as a participant

Question: What is are the behaviour if the user does not have permission to Start Meeting and we use the StartMeetingWithOutLogin method?

Answer: You should get a prompt that you do not have permission to start the meeting. In this scenario, the user will not join the meeting as a participant as well.

[https://marketplacefront.zoom.us/sdk/meeting/electron/module-zoom\_meeting.html#.StartMeetingWithOutLogin#~StartMeetingWithOutLogin](https://marketplacefront.zoom.us/sdk/meeting/electron/module-zoom_meeting.html#.StartMeetingWithOutLogin#~StartMeetingWithOutLogin)

---

<div class="post-metadata">

**Author:** ![niravd](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@niravd](https://devforum.zoom.us/u/niravd)\
**Post date:** [February 14, 2023, 3:32am UTC](https://devforum.zoom.us/t/start-meeting-by-host-or-co-host-for-zoom-sdk-version-sdk-5-10-3-6470/79464/11 "2023-02-14T03:32:19Z")

</div>

Hi @chunsiong.zoom Thank you for the quick response

1. I am not able to find which endpoint / how I will get the user data containing id, first\_name, last name as shown in Screenshot.

2. Is there any other end point to identify if the user has permission to start the meeting?  
So only to the appropriate user with start meeting permission I can use the StartMeetingWithOutLogin method and other I can just join the meeting.

Thanks

---

<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:** [February 15, 2023, 2:37am UTC](https://devforum.zoom.us/t/start-meeting-by-host-or-co-host-for-zoom-sdk-version-sdk-5-10-3-6470/79464/12 "2023-02-15T02:37:45Z")

</div>

you need to call the `/users/user@example.com/token?type=zak&ttl=7200` endpoint if you already know the email address of the user

for endpoint to identify host, you can call the meeting api to check who is the host and alternative host

---

<div class="post-metadata">

**Author:** ![niravd](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@niravd](https://devforum.zoom.us/u/niravd)\
**Post date:** [February 17, 2023, 5:29am UTC](https://devforum.zoom.us/t/start-meeting-by-host-or-co-host-for-zoom-sdk-version-sdk-5-10-3-6470/79464/13 "2023-02-17T05:29:44Z")

</div>

Hi @chunsiong.zoom thank you for the response It will be helpful if you can send me the `/users/user@example.com/token?type=zak&ttl=7200` and meeting api documentation link.

For better understanding.

---

<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:** [February 17, 2023, 5:32am UTC](https://devforum.zoom.us/t/start-meeting-by-host-or-co-host-for-zoom-sdk-version-sdk-5-10-3-6470/79464/14 "2023-02-17T05:32:09Z")

</div>

@niravd

Here’s the API docs for user token  
[https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/userToken](https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/userToken)

Here’s the API docs for meeting details  
[https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/meeting](https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/meeting)

---

<div class="post-metadata">

**Author:** ![niravd](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@niravd](https://devforum.zoom.us/u/niravd)\
**Post date:** [February 20, 2023, 4:25am UTC](https://devforum.zoom.us/t/start-meeting-by-host-or-co-host-for-zoom-sdk-version-sdk-5-10-3-6470/79464/15 "2023-02-20T04:25:11Z")

</div>

Thank you @chunsiong.zoom for the reply we will work on the solution provided above and get back to you incase any queries.

---

<div class="post-metadata">

**Author:** ![niravd](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@niravd](https://devforum.zoom.us/u/niravd)\
**Post date:** [March 1, 2023, 7:02pm UTC](https://devforum.zoom.us/t/start-meeting-by-host-or-co-host-for-zoom-sdk-version-sdk-5-10-3-6470/79464/16 "2023-03-01T19:02:28Z")

</div>

Hi @chunsiong.zoom  
for the above mentioned scenario to Authorise should I create SSO or OAuth App

[https://marketplace.zoom.us/develop/create](https://marketplace.zoom.us/develop/create)

The users using my app wont be part of my zoom account licence, i.e any member with the personal zoom account can be my application user,

Also in this case how will the user authorisation (handshake of information from my app with Zoom oauth) done.

Thanks

---

<div class="post-metadata">

**Author:** ![niravd](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@niravd](https://devforum.zoom.us/u/niravd)\
**Post date:** [March 27, 2023, 4:19pm UTC](https://devforum.zoom.us/t/start-meeting-by-host-or-co-host-for-zoom-sdk-version-sdk-5-10-3-6470/79464/17 "2023-03-27T16:19:36Z")

</div>

Hi @chunsiong.zoom

Hope you are doing well,  
I am trying to pass this API for OAuth for user authorization  
GET api  
[https://zoom.us/oauth/authorize?response\_type=code&client\_id=7lstjK9NTyett\_oeXtFiEQ&redirect\_uri=https://example.com](https://zoom.us/oauth/authorize?response_type=code&client_id=7lstjK9NTyett_oeXtFiEQ&redirect_uri=https://example.com)

Replacing my client\_id and redirect\_uri

But I am not getting the expected response, Attached the screenshot taken from Postman

 ![Screenshot 2023-03-27 at 9.47.37 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/c/4ca4df556687ea4b0a9f620c3b97c7eaab43c65a.png)

Request your response for the same.

Thanks,  
Nirav

---

<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:** [April 27, 2023, 2:20am UTC](https://devforum.zoom.us/t/start-meeting-by-host-or-co-host-for-zoom-sdk-version-sdk-5-10-3-6470/79464/18 "2023-04-27T02:20:17Z")

</div>

Closed on April 27, 2023, 2:20am UTC

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