# How To Get Zoom token and User ID while integrating the sdk with android?

**URL:** <https://devforum.zoom.us/t/how-to-get-zoom-token-and-user-id-while-integrating-the-sdk-with-android/645>\
**Category:** Android\
**Tags:** htq, dc\
**Created:** [July 16, 2017, 1:47pm UTC](https://devforum.zoom.us/t/how-to-get-zoom-token-and-user-id-while-integrating-the-sdk-with-android/645 "2017-07-16T13:47:48Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![asif.naxtre](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/asif.naxtre/32/44435_2.png) [@asif.naxtre](https://devforum.zoom.us/u/asif.naxtre)\
**Post date:** [February 22, 2021, 5:43am UTC](https://devforum.zoom.us/t/how-to-get-zoom-token-and-user-id-while-integrating-the-sdk-with-android/645/21 "2021-02-22T05:43:01Z")

</div>

Hi there,

I am trying to run the sample for android as mentioned in the documentation. However I am not able to get it done since i don’t have the USER\_ID, ZOOM\_ACCESS\_TOKEN, SDK\_JWTTOKEN.

Can you please help me to get these things, i tried to get my user id using the REST API as mentioned in the document, but it was not successful.  
Using the following GET API.

[https://api.zoom.us/v2/users/{email}](https://api.zoom.us/v2/users/%7Bemail%7D)

[https://api.zoom.us/v2/users/asif.naxtre@gmail.com](https://api.zoom.us/v2/users/asif.naxtre@gmail.com)

I am getting the below response.

{  
“code”: 124,  
“message”: “Invalid access token.”  
}

---

<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:** [February 22, 2021, 6:19pm UTC](https://devforum.zoom.us/t/how-to-get-zoom-token-and-user-id-while-integrating-the-sdk-with-android/645/22 "2021-02-22T18:19:02Z")

</div>

Hi @asif.naxtre, thanks for using our SDK.

> i don’t have the USER\_ID, ZOOM\_ACCESS\_TOKEN, SDK\_JWTTOKEN.

The only required piece of information here is the JWT. We have some very helpful documentation on how to generate this token [here](https://marketplace.zoom.us/docs/sdk/native-sdks/android/mastering-zoom-sdk/sdk-initialization#composing-jwt-for-sdk-initialization).

Next, can you tell me a little bit about your use case? There are some cases wherein a ZAK token would be necessary, but let’s make sure that yours is one of them before we go through the trouble of utilizing the REST API. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![asif.naxtre](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/asif.naxtre/32/44435_2.png) [@asif.naxtre](https://devforum.zoom.us/u/asif.naxtre)\
**Post date:** [March 2, 2021, 5:06am UTC](https://devforum.zoom.us/t/how-to-get-zoom-token-and-user-id-while-integrating-the-sdk-with-android/645/23 "2021-03-02T05:06:22Z")

</div>

Currently I am getting error while trying to get my USER\_ID for the email id.

[https://api.zoom.us/v2/users/{email}](https://api.zoom.us/v2/users/%7Bemail%7D)

[https://api.zoom.us/v2/users/asif.naxtre@gmail.com](https://api.zoom.us/v2/users/asif.naxtre@gmail.com)

I am getting the below response.

{  
“code”: 124,  
“message”: “Invalid access token.”  
}

---

<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:** [March 2, 2021, 4:57pm UTC](https://devforum.zoom.us/t/how-to-get-zoom-token-and-user-id-while-integrating-the-sdk-with-android/645/24 "2021-03-02T16:57:02Z")

</div>

Hi @asif.naxtre,

If you are definitely set on utilizing the REST API, please use the #api-and-webhooks category for assistance. Once you have successfully retrieved the ZAK token from the API, please let me know if you require any assistance with the SDK.

Thanks!

---

<div class="post-metadata">

**Author:** ![asif.naxtre](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/asif.naxtre/32/44435_2.png) [@asif.naxtre](https://devforum.zoom.us/u/asif.naxtre)\
**Post date:** [March 3, 2021, 4:59am UTC](https://devforum.zoom.us/t/how-to-get-zoom-token-and-user-id-while-integrating-the-sdk-with-android/645/25 "2021-03-03T04:59:51Z")

</div>

Hi Jon,

Can you guide me to get my USER\_ID, since for further things I need to pass USER\_ID in the request.

---

<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:** [March 3, 2021, 5:15pm UTC](https://devforum.zoom.us/t/how-to-get-zoom-token-and-user-id-while-integrating-the-sdk-with-android/645/26 "2021-03-03T17:15:34Z")

</div>

Hi @asif.naxtre,

Please use the #api-and-webhooks category for this and one of my colleagues will be more than happy to assist. 🙂

Thanks!

[Previous page](https://devforum.zoom.us/t/how-to-get-zoom-token-and-user-id-while-integrating-the-sdk-with-android/645.md?page=1)
