# https://api.zoom.us/v2/users/{userId}/token returns empty json body without error details

**URL:** <https://devforum.zoom.us/t/https-api-zoom-us-v2-users-userid-token-returns-empty-json-body-without-error-details/5001>\
**Category:** API and Webhooks\
**Created:** [July 12, 2019, 11:24pm UTC](https://devforum.zoom.us/t/https-api-zoom-us-v2-users-userid-token-returns-empty-json-body-without-error-details/5001 "2019-07-12T23:24:54Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![jiulongw](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jiulongw/32/1121_2.png) [@jiulongw](https://devforum.zoom.us/u/jiulongw)\
**Post date:** [July 12, 2019, 11:24pm UTC](https://devforum.zoom.us/t/https-api-zoom-us-v2-users-userid-token-returns-empty-json-body-without-error-details/5001/1 "2019-07-12T23:24:54Z")

</div>

Hello, it seems the api [https://api.zoom.us/v2/users/{userId}/token](https://api.zoom.us/v2/users/%7BuserId%7D/token) does not return type=token request? I used to be able to get a valid token but it stopped working and returns empty json object, like since half an hour ago. I am able to get zak token, though. Any ideas?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/8/8ed3ac6a501dbef07faaf6caa5a31652f717a424.png)

---

<div class="post-metadata">

**Author:** ![jiulongw](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jiulongw/32/1121_2.png) [@jiulongw](https://devforum.zoom.us/u/jiulongw)\
**Post date:** [July 15, 2019, 7:06pm UTC](https://devforum.zoom.us/t/https-api-zoom-us-v2-users-userid-token-returns-empty-json-body-without-error-details/5001/2 "2019-07-15T19:06:59Z")

</div>

This seems to be fixed already. Thanks!

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [July 15, 2019, 7:11pm UTC](https://devforum.zoom.us/t/https-api-zoom-us-v2-users-userid-token-returns-empty-json-body-without-error-details/5001/3 "2019-07-15T19:11:10Z")

</div>

Hi @jiulongw,

We’re glad that you were able to find a solution for your issue. Let us know if you need anything else.

Thanks

---

<div class="post-metadata">

**Author:** ![jiulongw](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jiulongw/32/1121_2.png) [@jiulongw](https://devforum.zoom.us/u/jiulongw)\
**Post date:** [July 19, 2019, 7:22pm UTC](https://devforum.zoom.us/t/https-api-zoom-us-v2-users-userid-token-returns-empty-json-body-without-error-details/5001/4 "2019-07-19T19:22:04Z")

</div>

Hi this happens again. I can get ZAK and ZPK tokens but not zoom token, which is required to start a meeting.

Do you guys have rate limit on this token? If any error happens, why return 200 with an empty JSON body? How can I trust this API for production usage?

Thanks,  
-Jiulong

---

<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:** [July 19, 2019, 8:15pm UTC](https://devforum.zoom.us/t/https-api-zoom-us-v2-users-userid-token-returns-empty-json-body-without-error-details/5001/5 "2019-07-19T20:15:22Z")

</div>

Hey @jiulongw,

To confirm, are you trying to get a [Zoom Oauth access\_token](https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom#request-access-token)? Or a [user token](https://devforum.zoom.us/t/unable-to-get-users-token-since-half-an-hour-ago/5001/2)?

Also is the issue happening on our “Send a Test Request” feature on our docs, or in your code?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![jiulongw](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jiulongw/32/1121_2.png) [@jiulongw](https://devforum.zoom.us/u/jiulongw)\
**Post date:** [July 19, 2019, 8:28pm UTC](https://devforum.zoom.us/t/https-api-zoom-us-v2-users-userid-token-returns-empty-json-body-without-error-details/5001/6 "2019-07-19T20:28:22Z")

</div>

@tommy Thanks for your reply.

This happens when I use a valid access\_token to call [https://api.zoom.us/v2/users/{userId}/token](https://api.zoom.us/v2/users/%7BuserId%7D/token) in order to get a user’s zoom token.

It happens both on my code, and the “Send a Test Request” feature on Zoom docs.

**For anyone who has similar issue getting zoom token**  
According to this document ([https://marketplace.zoom.us/docs/sdk/native-sdks/preface/zak](https://marketplace.zoom.us/docs/sdk/native-sdks/preface/zak)), under FAQ item 2:

> **2. We currently use “token” in our Start Meeting SDK. We will need to update to use “ZAK.” Can we swap them out?**  
> Unfortunately, The value: User\_id, Zoom\_token & Zoom\_Access\_Token are all required values. They are all required in the authentication process.

This is incorrect. I tried a lot of things when I’m not able to get zoom\_token using REST API, and can confirm that using ZAK alone is enough to start a meeting in Android SDK. Just put ZAK into zoomToken field…

```auto
        params.userType = MeetingService.USER_TYPE_API_USER
        params.userId = userId
        params.zoomToken = zakToken
        params.zoomAccessToken = zakToken
        params.meetingNo = meetingNumber
        params.displayName = displayName

```

So, no need to get that unstable zoom\_token 🙂.

Please update your FAQ if that is the desired usage of ZAK token.

Thanks,  
-Jiulong

---

<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:** [July 19, 2019, 10:05pm UTC](https://devforum.zoom.us/t/https-api-zoom-us-v2-users-userid-token-returns-empty-json-body-without-error-details/5001/8 "2019-07-19T22:05:01Z")

</div>

Hi jiulongw,

Thanks for the reply and pardon the confusion in the doc. The zoom token is the `token` parameter in [https://marketplace.zoom.us/docs/api-reference/zoom-api/users/usertoken](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/usertoken) We will continue improving our doc.

Thanks!

---

<div class="post-metadata">

**Author:** ![ezeiatech.dev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ezeiatech.dev/32/1113_2.png) [@ezeiatech.dev](https://devforum.zoom.us/u/ezeiatech.dev)\
**Post date:** [October 10, 2019, 10:36am UTC](https://devforum.zoom.us/t/https-api-zoom-us-v2-users-userid-token-returns-empty-json-body-without-error-details/5001/10 "2019-10-10T10:36:13Z")

</div>

@jiulongw @tommy hi, i am also getting the same problem i.e blank json how to resolved the problem please help me out. thanks in advance

---

<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:** [October 10, 2019, 8:15pm UTC](https://devforum.zoom.us/t/https-api-zoom-us-v2-users-userid-token-returns-empty-json-body-without-error-details/5001/11 "2019-10-10T20:15:01Z")

</div>

Hey @ezeiatech.dev,

Can you please share your request url, as well as the query params for `userId` and `token` so I can look at the logs?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![jiulongw](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jiulongw/32/1121_2.png) [@jiulongw](https://devforum.zoom.us/u/jiulongw)\
**Post date:** [October 10, 2019, 8:44pm UTC](https://devforum.zoom.us/t/https-api-zoom-us-v2-users-userid-token-returns-empty-json-body-without-error-details/5001/12 "2019-10-10T20:44:01Z")

</div>

From my experience, this will resolve itself after a while (24-48 hours maybe). Maybe there is some kind of [undocumented] rate limit.

For me, I was able to resolve this by using zak token instead of token. zak token will never be empty (at least in my app…)

---

<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:** [October 10, 2019, 9:35pm UTC](https://devforum.zoom.us/t/https-api-zoom-us-v2-users-userid-token-returns-empty-json-body-without-error-details/5001/13 "2019-10-10T21:35:34Z")

</div>

Thanks for sharing @jiulongw! 🙂

@ezeiatech.dev, let us know if this works.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![ezeiatech.dev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ezeiatech.dev/32/1113_2.png) [@ezeiatech.dev](https://devforum.zoom.us/u/ezeiatech.dev)\
**Post date:** [October 11, 2019, 5:23am UTC](https://devforum.zoom.us/t/https-api-zoom-us-v2-users-userid-token-returns-empty-json-body-without-error-details/5001/14 "2019-10-11T05:23:46Z")

</div>

Hi tommy,

Here is my request url and query params

[https://api.zoom.us/v2/users/ezeiatech.dev@gmail.com/token?type=token&access\_token=eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJpc3MiOiAialhIX3pyQl9UcXFLcXNpaVZkQmtTUSIsICJleHAiOiAxNTcxMzA3NTc3fQ.Ssrcan\_c13uyMH23RBLrKiuB\_aBqy1XVIbXgL45W\_Mg](https://api.zoom.us/v2/users/ezeiatech.dev@gmail.com/token?type=token&access_token=eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJpc3MiOiAialhIX3pyQl9UcXFLcXNpaVZkQmtTUSIsICJleHAiOiAxNTcxMzA3NTc3fQ.Ssrcan_c13uyMH23RBLrKiuB_aBqy1XVIbXgL45W_Mg)

Thanks,

---

<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:** [October 11, 2019, 4:57pm UTC](https://devforum.zoom.us/t/https-api-zoom-us-v2-users-userid-token-returns-empty-json-body-without-error-details/5001/15 "2019-10-11T16:57:16Z")

</div>

Hey @ezeiatech.dev,

Can you try passing in the userId instead of the email?

You can get the userID by calling [GET /users](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/users) or by [JWT decoding your access\_token](https://jwt.io).

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![nitish.pandey](https://avatars.discourse-cdn.com/v4/letter/n/73ab20/32.png) [@nitish.pandey](https://devforum.zoom.us/u/nitish.pandey)\
**Post date:** [October 14, 2019, 6:08pm UTC](https://devforum.zoom.us/t/https-api-zoom-us-v2-users-userid-token-returns-empty-json-body-without-error-details/5001/16 "2019-10-14T18:08:06Z")

</div>

Hey @tommy I am facing problem to create a webinar form android zoom sdk. There are 2 type of example in zoom android sdk first for joining meeting(example2) and second one(simple) is to create a meeting using zoom login or api login. than what is the process to create a webinar via zoom android sdk.

---

<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:** [October 14, 2019, 6:10pm UTC](https://devforum.zoom.us/t/https-api-zoom-us-v2-users-userid-token-returns-empty-json-body-without-error-details/5001/17 "2019-10-14T18:10:22Z")

</div>

Hey @nitish.pandey, thanks for posting and using Zoom.

Can you create a **new topic** in the Android category so our Android SDK engineer can assist?

[https://devforum.zoom.us/c/mobile-sdk/mobilertc-android-stack-development](https://devforum.zoom.us/c/mobile-sdk/mobilertc-android-stack-development)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![ezeiatech.dev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ezeiatech.dev/32/1113_2.png) [@ezeiatech.dev](https://devforum.zoom.us/u/ezeiatech.dev)\
**Post date:** [October 23, 2019, 5:45am UTC](https://devforum.zoom.us/t/https-api-zoom-us-v2-users-userid-token-returns-empty-json-body-without-error-details/5001/18 "2019-10-23T05:45:27Z")

</div>

@tommy My response Josn is still blank so i am unable to get token, I have tried all the above suggestion,i have already shared the url above please help me out.

---

<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:** [October 23, 2019, 3:55pm UTC](https://devforum.zoom.us/t/https-api-zoom-us-v2-users-userid-token-returns-empty-json-body-without-error-details/5001/19 "2019-10-23T15:55:14Z")

</div>

Hey @ezeiatech.dev,

The docs for [GET /users/{userId}/token](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/usertoken) state that:

“If a user signed into Zoom using Google or Facebook, a null value will be returned for the token. To get the token with this API, ask the user to sign into Zoom using their email and password instead.”

Do you know if your users are logging in with their Zoom Email and Password when installing your app?

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, 6:58pm UTC](https://devforum.zoom.us/t/https-api-zoom-us-v2-users-userid-token-returns-empty-json-body-without-error-details/5001/20 "2020-08-21T18:58:39Z")

</div>


