# Generated ZAK not able to join as HOST in Ionic SDK

**URL:** <https://devforum.zoom.us/t/generated-zak-not-able-to-join-as-host-in-ionic-sdk/7938>\
**Category:** Ionic\
**Created:** [February 7, 2020, 11:02am UTC](https://devforum.zoom.us/t/generated-zak-not-able-to-join-as-host-in-ionic-sdk/7938 "2020-02-07T11:02:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![meetings1](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@meetings1](https://devforum.zoom.us/u/meetings1)\
**Post date:** [February 7, 2020, 11:02am UTC](https://devforum.zoom.us/t/generated-zak-not-able-to-join-as-host-in-ionic-sdk/7938/1 "2020-02-07T11:02:46Z")

</div>

We are trying to generate zoom access token using following api url  
**"[https://api.zoom.us/v2/users/](https://api.zoom.us/v2/users/)" + userId + “/token?type=_zak_”;**

Access token is generated. But when we use the same in IONIC. The user enters the meeting as a participant instead of joining as a host.

```auto
this.zoomService.startMeetingWithZAK(meetingNumber, displayName, zoomToken, zoomAccessToken, userId, options)
  .then((success: any) => console.log(success))
  .catch((error: any) => console.log(error));

```

Please guide us through

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [February 8, 2020, 12:49am UTC](https://devforum.zoom.us/t/generated-zak-not-able-to-join-as-host-in-ionic-sdk/7938/2 "2020-02-08T00:49:07Z")

</div>

Hi [meetings1](https://devforum.zoom.us/u/meetings1),

Thanks for the post. I just tried with our Ionic demo app and I am able to host a meeting with the tokens. Could you have a try with our iOS SDK demo([https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/getting-started/prerequisites](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/getting-started/prerequisites)) or the Android SDK demo([https://marketplace.zoom.us/docs/sdk/native-sdks/android/getting-started/prerequisites](https://marketplace.zoom.us/docs/sdk/native-sdks/android/getting-started/prerequisites)), and see if the same token and credentials work as expected?

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![neerajs](https://avatars.discourse-cdn.com/v4/letter/n/9fc348/32.png) [@neerajs](https://devforum.zoom.us/u/neerajs)\
**Post date:** [May 25, 2020, 6:50am UTC](https://devforum.zoom.us/t/generated-zak-not-able-to-join-as-host-in-ionic-sdk/7938/4 "2020-05-25T06:50:41Z")

</div>

@meetings1 Can you post your headers for the request you make to generate ZAK?

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 17, 2020, 6:48am UTC](https://devforum.zoom.us/t/generated-zak-not-able-to-join-as-host-in-ionic-sdk/7938/5 "2020-06-17T06:48:23Z")

</div>

Closed on June 17, 2020, 6:48am UTC


