# Unable to create meeting with ZAK

**URL:** <https://devforum.zoom.us/t/unable-to-create-meeting-with-zak/59633>\
**Category:** macOS\
**Created:** [November 1, 2021, 12:37pm UTC](https://devforum.zoom.us/t/unable-to-create-meeting-with-zak/59633 "2021-11-01T12:37:21Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcfly](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mcfly](https://devforum.zoom.us/u/mcfly)\
**Post date:** [November 1, 2021, 12:37pm UTC](https://devforum.zoom.us/t/unable-to-create-meeting-with-zak/59633/1 "2021-11-01T12:37:21Z")

</div>

**Description**  
Our company is developing an application that is using Meeting SDK to interact with Zoom.  
Now we need to use a ZAK token to create an instant meeting.  
We successfully obtain a ZAK token from the server, however meeting creation fails.  
To start the meeting, we are calling the [meetingService startMeetingWithZAK:].  
The ZAK elements we pass to this method has following fields:  
**userType** - we have tried the SDKUserType\_APIUser which leads to the “ZoomSDKError\_WrongUsage” error. With any other value we are able to get “ZoomSDKError\_Success”  
**displayName** - We pass the non-empty string here.  
**userId** - “me” or the user identifier we obtain from the backend.  
**displayID** - 0  
**participantId** - 0  
**isDirectShare** - NO  
**isNoVideo** - NO  
**meetingNumber** - 0  
**isNoAuido** - NO  
**vanityID** - nil  
**zak** - ZAK token we obtained from the backend

With these parameters we get “ZoomSDKError\_Success” when calling the “startMeetingWithZAK:”, however the meeting does not start.  
we get the “onMeetingStatusChange:” call with:  
state = ZoomSDKMeetingStatus\_Failed  
error = ZoomSDKMeetingError\_Unknown  
reason = EndMeetingReason\_None

I assume some parameter values are wrong. Can you please suggest what is the correct way to create an instant meeting with ZAK?

**Which macOS Meeting SDK version?**  
5.5.12511.0420

**Device:**

- Device: iMac late 2017
- OS: macOS Big Sur 11.4

---

<div class="post-metadata">

**Author:** ![mullerkeila7](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mullerkeila7/32/32132_2.png) [@mullerkeila7](https://devforum.zoom.us/u/mullerkeila7)\
**Post date:** [November 1, 2021, 2:26pm UTC](https://devforum.zoom.us/t/unable-to-create-meeting-with-zak/59633/2 "2021-11-01T14:26:53Z")

</div>

please provide link of your company

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [November 1, 2021, 8:44pm UTC](https://devforum.zoom.us/t/unable-to-create-meeting-with-zak/59633/3 "2021-11-01T20:44:43Z")

</div>

Hi @mcfly, thanks for the post.

I believe this issue is due to the `userType` param having an incorrect type specified. Instead of `SDKUserType`, can you try using `ZoomSDKUserType_WithoutLogin`? I know that this will produce a warning (which we will work on fixing), but this may resolve the issue.

I’ll also keep this thread updated with any additional information on fixing this param as we look into it.

Thanks!

---

<div class="post-metadata">

**Author:** ![mcfly](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mcfly](https://devforum.zoom.us/u/mcfly)\
**Post date:** [November 2, 2021, 9:44am UTC](https://devforum.zoom.us/t/unable-to-create-meeting-with-zak/59633/4 "2021-11-02T09:44:31Z")

</div>

> [@jon.zoom](#):
>
> ZoomSDKUserType\_WithoutLogin

Hi @jon.zoom , we have tried this, but unfortunately the issue still persists. Do you have any other suggestions?

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [November 3, 2021, 2:04am UTC](https://devforum.zoom.us/t/unable-to-create-meeting-with-zak/59633/5 "2021-11-03T02:04:36Z")

</div>

Hi @mcfly,

After following up on this, we may have found the issue. When you specify that it is an API user, is that because this is a user created through the [`createUsers`](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/usercreate) REST API? If so, this is a limitation imposed by the back end since these types of users can only start meetings scheduled through the REST API.

Thanks!

---

<div class="post-metadata">

**Author:** ![mcfly](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mcfly](https://devforum.zoom.us/u/mcfly)\
**Post date:** [November 3, 2021, 3:25pm UTC](https://devforum.zoom.us/t/unable-to-create-meeting-with-zak/59633/6 "2021-11-03T15:25:36Z")

</div>

Hi @jon.zoom ,  
The user was created with email/password, not via API.  
We tried to specify all possible user types. API option gives immediate failure, other options give ZoomSDKMeetingStatus\_Failed after status “Connecting”

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [November 3, 2021, 6:02pm UTC](https://devforum.zoom.us/t/unable-to-create-meeting-with-zak/59633/7 "2021-11-03T18:02:43Z")

</div>

Hi @mcfly,

Thanks for confirming. The API user type is really only intended to be used for users who were created through the REST API, since that type of user will be limited in what they can do.

Since the error codes you are seeing are vague, it isn’t obvious what could be causing this. Let’s try to rule out some variables to see if we can narrow it down a little. First off, can you try updating to the latest version of the SDK and retesting? If the issue is still present there, is this reproducible in the SDK sample app (using the latest version as well)?

Thanks!

---

<div class="post-metadata">

**Author:** ![mcfly](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mcfly](https://devforum.zoom.us/u/mcfly)\
**Post date:** [November 19, 2021, 10:04am UTC](https://devforum.zoom.us/t/unable-to-create-meeting-with-zak/59633/8 "2021-11-19T10:04:34Z")

</div>

Hi @jon.zoom ,  
Thank you, your suggestions were very helpful. We have found a problem on our side. The issue was that previously we have enabled auto-login in SDK and ZAK does not work at all if the user is logged in in SDK.  
After fixing this, everything started working even on the old SDK version.  
Thank you again!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [November 19, 2021, 10:29pm UTC](https://devforum.zoom.us/t/unable-to-create-meeting-with-zak/59633/9 "2021-11-19T22:29:03Z")

</div>

That’s great to hear you were able to resolve this!

Please don’t hesitate to reach back out in a new topic with any additional questions. 🙂

---

<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:** [December 20, 2021, 8:29am UTC](https://devforum.zoom.us/t/unable-to-create-meeting-with-zak/59633/10 "2021-12-20T08:29:51Z")

</div>

Closed on December 20, 2021, 8:29am UTC

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