# Retrieve Zoom Token

**URL:** <https://devforum.zoom.us/t/retrieve-zoom-token/18959>\
**Category:** API and Webhooks\
**Created:** [May 25, 2020, 11:03am UTC](https://devforum.zoom.us/t/retrieve-zoom-token/18959 "2020-05-25T11:03:28Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![priyakvb](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/priyakvb/32/3712_2.png) [@priyakvb](https://devforum.zoom.us/u/priyakvb)\
**Post date:** [May 25, 2020, 11:03am UTC](https://devforum.zoom.us/t/retrieve-zoom-token/18959/1 "2020-05-25T11:03:28Z")

</div>

Trying to start a meeting from given mobile sample.  
Provided with my web API Key and web API Secret.

Able to get the JWTAcess token and Zoom Access token but unable to get Zoom token for the user.

Getting empty braces as response, i can provide you with my keys if required.

> **[2.1.1 Authentication - 2.1 Non-login / API User - 2. Start / Join Meeting -...](https://marketplace.zoom.us/docs/sdk/native-sdks/android/mastering-zoom-sdk/start-join-meeting/api-user/authentication)**
>
> Authentication ---- Non-login / API User
> 
> 
> 
> Contents
> 
> 
> 
> To host a scheduled meeting with a non-login user, you will need to retrieve the following three...

Followed from the above link even, but i  
am not getting any response.

**Which version?**  
v4.6.21666.0429

 ![Screenshot 2020-05-25 at 4.32.21 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/6/62cbb5a230a83be7023124dd8e09a99fbcf70696.png)

---

<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:** [May 27, 2020, 7:23am UTC](https://devforum.zoom.us/t/retrieve-zoom-token/18959/2 "2020-05-27T07:23:50Z")

</div>

Hi @priyakvb,

Thanks for the post. I just tested our demo app and the corresponding part is working.

- If you are able to send requests to Zoom REST API([https://marketplace.zoom.us/docs/api-reference/introduction](https://marketplace.zoom.us/docs/api-reference/introduction)), then your API key & secret should be fine.
- Please have a try with the following steps:
  1. Change the SDK\_Key and SDK\_Secret in [https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/sample/src/main/java/us/zoom/sdksample/initsdk/AuthConstants.java](https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/sample/src/main/java/us/zoom/sdksample/initsdk/AuthConstants.java) to be your SDK key & secret
  2. Change the API\_Key, API\_Secret and User\_ID to be your credentials:[https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/sample/src/main/java/us/zoom/sdksample/startjoinmeeting/apiuser/APIUserConstants.java;](https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/sample/src/main/java/us/zoom/sdksample/startjoinmeeting/apiuser/APIUserConstants.java;) The User\_ID could be the user ID retrieved from Zoom API or be your email address
  3. Schedule a meeting using Zoom client or Zoom API, then launch the demo app, navigate to “API User”, enter the meeting number to start a meeting

Please have a try, hope this helps. Thanks!  
3.

---

<div class="post-metadata">

**Author:** ![priyakvb](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/priyakvb/32/3712_2.png) [@priyakvb](https://devforum.zoom.us/u/priyakvb)\
**Post date:** [May 27, 2020, 5:31pm UTC](https://devforum.zoom.us/t/retrieve-zoom-token/18959/3 "2020-05-27T17:31:22Z")

</div>

HI Carson,

I really appreciate your response, I tried the same, for your reference i am providing all the keys of mine with all the response, please have a look at these and do the needful.

**JWTAcessToken** : \*\*\*\*\*\*\*\*\*\*\*

\*\*Requesting ZoomToken \*\*

* * *

**Responce** {}

Request ZAK

* * *

Responce  
{  
“token”: “\*\*\*\*\*\*\*\*\*\*\*”  
}

SDK Key

* * *

SDK Secret

* * *

Provided with all the credentials you had stated above, Let me know if you require anything else or where exactly i am wrong so that we can fix the issue asap.

Looking forward for your reply…

---

<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:** [May 28, 2020, 8:27am UTC](https://devforum.zoom.us/t/retrieve-zoom-token/18959/4 "2020-05-28T08:27:04Z")

</div>

Hi @priyakvb,

Thanks for the reply. I have edited your response since you have provided your SDK credentials here. This is a publicly available forum so please do not post any sensitive credentials here. If you need to provide private information in the future, please let me know and I will provide a way to achieve that. **Please re-generate your SDK credentials on the Marketplace as soon as possible since I am not sure how many people have seen your credentials before I see it**.

Back to the issue you are facing, thanks for providing the info. I tried to test the tokens you have provided, and the tokens in “JWTAccessToken” and the access token in the “Requesting Zoom Token” are not valid. It is expected to receive empty response if the JWT token is not valid. The access token in the “Request ZAK” is valid but expired.

Please make sure you are using API key & secret to form the JWT token when communicating with the Zoom API and please double check the JWT token you are using to retrieve the Zoom token. You may also refer to the instruction here to generate the JWT and test it:

- [https://marketplace.zoom.us/docs/guides/auth/jwt](https://marketplace.zoom.us/docs/guides/auth/jwt)
- [https://marketplace.zoom.us/docs/guides/guides/postman/using-postman-to-test-zoom-apis](https://marketplace.zoom.us/docs/guides/guides/postman/using-postman-to-test-zoom-apis)

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![priyakvb](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/priyakvb/32/3712_2.png) [@priyakvb](https://devforum.zoom.us/u/priyakvb)\
**Post date:** [May 28, 2020, 11:12am UTC](https://devforum.zoom.us/t/retrieve-zoom-token/18959/5 "2020-05-28T11:12:34Z")

</div>

Hi Carson,

I really appreciate your response,  
Tested everything from my end and even generated new SDK secret key, but still not getting the zoomToken.  
Please let me know where to provide the keys i am using and if there is any possibility to share my query on call so that i can show the exact issue by sharing my screen.

It will be really helpful if you can arrange this so that it will be feasible to resolve the issue quickly.

I forgot to mention, i am using the Zoom provided sample code.

Looking forward for your reply…

---

<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:** [May 29, 2020, 7:19am UTC](https://devforum.zoom.us/t/retrieve-zoom-token/18959/6 "2020-05-29T07:19:39Z")

</div>

Hi @priyakvb,

If you are sending requests to Zoom API, you will need API key &secret instead of SDK key & secret. Since Zoom API and SDK are 2 different products, they are not using the same credentials. You may refer to the instruction here to test your requests with Zoom API:[https://marketplace.zoom.us/docs/api-reference/using-zoom-apis;](https://marketplace.zoom.us/docs/api-reference/using-zoom-apis;) Please have a try with other Zoom API and see if it works.

Thanks!

---

<div class="post-metadata">

**Author:** ![priyakvb](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/priyakvb/32/3712_2.png) [@priyakvb](https://devforum.zoom.us/u/priyakvb)\
**Post date:** [May 29, 2020, 7:36am UTC](https://devforum.zoom.us/t/retrieve-zoom-token/18959/7 "2020-05-29T07:36:28Z")

</div>

Hi Carson

I really appreciate your response.  
As per your suggestion i had changed the SDK Key,

For getting the ZoomAPI key, i am using the API key, API Secret key only, able to generate JWT Token and ZOOM Access Token, but we are still getting Zoom User Token as blank{}.

It will be really helpful if you can arrange a call so that i can share my screen, so that it will be feasible to resolve the issue quickly.

Looking forward for your reply…

---

<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:** [May 29, 2020, 7:57am UTC](https://devforum.zoom.us/t/retrieve-zoom-token/18959/8 "2020-05-29T07:57:43Z")

</div>

Hi @priyakvb,

Thanks for the prompt reply. That’s unexpected. I understand what you are experiencing but I could not reproduce it on my side. As the issue you are facing is related to the usage of API, let me forward your question to the API section and have one of the API experts to help you.

@michael_p.zoom Could you help with this? Thanks!

---

<div class="post-metadata">

**Author:** ![kathuriasimran94](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kathuriasimran94/32/11150_2.png) [@kathuriasimran94](https://devforum.zoom.us/u/kathuriasimran94)\
**Post date:** [June 29, 2020, 7:46am UTC](https://devforum.zoom.us/t/retrieve-zoom-token/18959/9 "2020-06-29T07:46:45Z")

</div>

I am getting same issue in my application. I have create sdk type app at zoom developer account. After that i hvae sucessfully init sdk and get jwt token but unable to get zoom access token, i am getting Zoom Token as blank{}, i am using ‘[https://api.zoom.us/v2/me/token?type=zak&access\_token=](https://api.zoom.us/v2/me/token?type=zak&access_token=)" + JWT\_TOKEN’  
api to get accesstoken and also not getting anything from type=token

---

<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:** [June 30, 2020, 9:12pm UTC](https://devforum.zoom.us/t/retrieve-zoom-token/18959/10 "2020-06-30T21:12:56Z")

</div>

Hey @kathuriasimran94,

Make sure the Zoom user you are trying to get the token for has signed into Zoom using the email flow.

If they have just signed in using google auth it will not return the token.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![kathuriasimran94](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kathuriasimran94/32/11150_2.png) [@kathuriasimran94](https://devforum.zoom.us/u/kathuriasimran94)\
**Post date:** [July 1, 2020, 5:03am UTC](https://devforum.zoom.us/t/retrieve-zoom-token/18959/11 "2020-07-01T05:03:39Z")

</div>

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/5/5696537d43a46ef845ef2eaac6e14dfe6d28b99c.png)  
hello,  
Thank you for your response. Yes previously i was using google auth but i have created account using email flow but still i am getting empty string as response and also also service in sdk are null, and i want to know if i want to create meeting in my application Is it necessary to login zoom in app first?

---

<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 1, 2020, 11:50pm UTC](https://devforum.zoom.us/t/retrieve-zoom-token/18959/12 "2020-07-01T23:50:17Z")

</div>

Hey @kathuriasimran94,

Can you try passing in your userID instead of `me` when requesting a token with JWT? Also try adding the ttl param.

`https://api.zoom.us/v2/users/{userId}/token?type=zak&ttl=3600`

> **[Get a User Token - Users - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/usertoken)**
>
> Retrieve a user's token. This token is used for starting meetings with the Client SDK.
> Scopes: user:read:admin user:read
> 
> Rate Limit Label: Light
> If a ...

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, 10:32pm UTC](https://devforum.zoom.us/t/retrieve-zoom-token/18959/13 "2020-08-21T22:32:47Z")

</div>


