# Access token is required

**URL:** <https://devforum.zoom.us/t/access-token-is-required/1346>\
**Category:** API and Webhooks\
**Created:** [June 11, 2018, 6:26pm UTC](https://devforum.zoom.us/t/access-token-is-required/1346 "2018-06-11T18:26:26Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Magesh\_Selvaraj](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@Magesh\_Selvaraj](https://devforum.zoom.us/u/Magesh_Selvaraj)\
**Post date:** [June 11, 2018, 6:26pm UTC](https://devforum.zoom.us/t/access-token-is-required/1346/1 "2018-06-11T18:26:26Z")

</div>

&nbsp;Hi,

I get {“code”:124,“message”:“Access token is required.”} when I use zoom v2. I use jjwt lib for java. Below is the code.

public static List\<UserMeetings\> futureMeetingList(String email) throws Exception {  
Date exp = new Date(System.currentTimeMillis() + 100000);  
Map\<String,Object\> form = new HashMap\<String,Object\>();  
form.put(“iss”, api\_key);  
form.put(“exp”, exp.getTime());  
form.put(“type”, “scheduled”);  
form.put(“page\_size”, 1);  
form.put(“page\_number”, 1);  
byte key = api\_secret.getBytes();  
String base64Encodedkey = TextCodec.BASE64.encode(key);  
System.out.println(base64Encodedkey);  
String compact = Jwts.builder().setClaims(form).setExpiration(exp)  
.signWith(SignatureAlgorithm.HS256, base64Encodedkey).compact();  
System.out.println(compact);  
List\<UserMeetings\> allUsersList = new ArrayList\<UserMeetings\>();  
ClientConfig config = new DefaultClientConfig();  
config.getFeatures().put(JSONConfiguration.FEATURE\_POJO\_MAPPING, Boolean.TRUE);  
config.getClasses().add(JacksonJsonProvider.class);  
Client client = Client.create(config);  
client.addFilter(new LoggingFilter(System.out));  
String meetingurl = futureMeetingUrl.replaceAll(“userId”, URLEncoder.encode(email, “UTF-8”));  
System.out.println(meetingurl);  
WebResource service = client.resource(meetingurl);  
ClientResponse response = service  
.type(MediaType.APPLICATION\_FORM\_URLENCODED).accept(MediaType.APPLICATION\_JSON)  
.post(ClientResponse.class, compact);  
System.out.println("Form response " + response.getEntity(String.class));  
return allUsersList;  
}

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:** [June 11, 2018, 9:17pm UTC](https://devforum.zoom.us/t/access-token-is-required/1346/2 "2018-06-11T21:17:48Z")

</div>

Hi Magesh,&nbsp;

Would you be able to tell us what API you are using?&nbsp;

---

<div class="post-metadata">

**Author:** ![Magesh\_Selvaraj](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@Magesh\_Selvaraj](https://devforum.zoom.us/u/Magesh_Selvaraj)\
**Post date:** [June 11, 2018, 9:21pm UTC](https://devforum.zoom.us/t/access-token-is-required/1346/3 "2018-06-11T21:21:54Z")

</div>

Hi Michael,

We’re using the below REST API

[https://api.zoom.us/v2/users/{userId}/meetings](https://api.zoom.us/v2/users/%7BuserId%7D/meetings)

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:** [June 11, 2018, 9:46pm UTC](https://devforum.zoom.us/t/access-token-is-required/1346/4 "2018-06-11T21:46:52Z")

</div>

Hi Magesh,&nbsp;

Were you able to use your correct API Key & secret provide by our developer portal?&nbsp;[https://developer.zoom.us/me/#api](https://developer.zoom.us/me/#api)

---

<div class="post-metadata">

**Author:** ![Magesh\_Selvaraj](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@Magesh\_Selvaraj](https://devforum.zoom.us/u/Magesh_Selvaraj)\
**Post date:** [June 11, 2018, 10:50pm UTC](https://devforum.zoom.us/t/access-token-is-required/1346/5 "2018-06-11T22:50:17Z")

</div>

Yes, it works in the portal

---

<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:** [June 12, 2018, 4:34pm UTC](https://devforum.zoom.us/t/access-token-is-required/1346/6 "2018-06-12T16:34:05Z")

</div>

Hi Magesh,&nbsp;

Could you email us your account ID to [developersupport@zoom.us](mailto:developersupport@zoom.us) so that we can take a closer look?

---

<div class="post-metadata">

**Author:** ![Magesh\_Selvaraj](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@Magesh\_Selvaraj](https://devforum.zoom.us/u/Magesh_Selvaraj)\
**Post date:** [June 12, 2018, 6:34pm UTC](https://devforum.zoom.us/t/access-token-is-required/1346/7 "2018-06-12T18:34:53Z")

</div>

Thanks Michael, I got it working.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [April 21, 2022, 9:57am UTC](https://devforum.zoom.us/t/access-token-is-required/1346/8 "2022-04-21T09:57:02Z")

</div>

Great to hear you have it working, @Magesh_Selvaraj ! I will go ahead and close this post.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [April 21, 2022, 9:57am UTC](https://devforum.zoom.us/t/access-token-is-required/1346/9 "2022-04-21T09:57:30Z")

</div>


