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

Hello, it seems the api https://api.zoom.us/v2/users/{userId}/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?

This seems to be fixed already. Thanks!

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

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

Hey @jiulongw,

To confirm, are you trying to get a Zoom Oauth access_token? Or a user token?

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

Thanks,
Tommy

@tommy Thanks for your reply.

This happens when I use a valid access_token to call https://api.zoom.us/v2/users/{userId}/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), 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…

        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 :slight_smile:.

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

Thanks,
-Jiulong

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 We will continue improving our doc.

Thanks!

@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

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

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…)

1 Like

Thanks for sharing @jiulongw! :slight_smile:

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

Thanks,
Tommy

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

Thanks,

Hey @ezeiatech.dev,

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

You can get the userID by calling GET /users or by JWT decoding your access_token.

Thanks,
Tommy

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.

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

Thanks,
Tommy

@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.

Hey @ezeiatech.dev,

The docs for GET /users/{userId}/token 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