# Trying to get recordings, using ZoomAPIWrapper, Invalid access token error

**URL:** <https://devforum.zoom.us/t/trying-to-get-recordings-using-zoomapiwrapper-invalid-access-token-error/31018>\
**Category:** API and Webhooks\
**Created:** [September 22, 2020, 6:39pm UTC](https://devforum.zoom.us/t/trying-to-get-recordings-using-zoomapiwrapper-invalid-access-token-error/31018 "2020-09-22T18:39:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![skrajewski001](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/skrajewski001/32/15690_2.png) [@skrajewski001](https://devforum.zoom.us/u/skrajewski001)\
**Post date:** [September 22, 2020, 6:39pm UTC](https://devforum.zoom.us/t/trying-to-get-recordings-using-zoomapiwrapper-invalid-access-token-error/31018/1 "2020-09-22T18:39:28Z")

</div>

**Description**  
I am using [ZoomAPIWrapper](https://github.com/skwirrel/ZoomAPIWrapper) which is real handy. My goal is to list all recordings for a user, not myself. When I pass ‘me’ it works. The API credentials work great for calling the users list. I created a Account-level app with JWT Credentials. I am an admin on the instance. The wrapper uses the key and secret to connect

**Error**  
When I try to get a list of a user’s recordings I get  
(  
[code] =\> 124  
[message] =\> Invalid access token.  
)

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
JWT app

**Which Endpoint/s?**  
/accounts/{accountId}/recordings

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:  
try to get recordings using this wrapper.

**Screenshots (If applicable)**

**Additional context**

---

<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:** [September 22, 2020, 6:39pm UTC](https://devforum.zoom.us/t/trying-to-get-recordings-using-zoomapiwrapper-invalid-access-token-error/31018/2 "2020-09-22T18:39:55Z")

</div>

Hey @skrajewski001

Thanks for posting on the Zoom Devforum! I am still learning, but I will try my best to help answer your question. 🙂

Checkout these related threads that may have the answer you are looking for:

> [@List all recording of an account with error code 124: Invalid access token](https://devforum.zoom.us/t/-/6936):
>
> We were using JWT method to call Zoom API, this was working fine with most of APIs, like the endpoints GET “/users” and etc. But when we want to get the full cloud recording list of our account, at endpoints: GET “/accounts/{accountId}/recordings” (reference: [https://marketplace.zoom.us/docs/api-reference/zoom-api/cloud-recording/getaccountcloudrecording](https://marketplace.zoom.us/docs/api-reference/zoom-api/cloud-recording/getaccountcloudrecording)), we got error code 124 “Invalid access token”. Do we have to use other auth, like Oauth2 to call this API? Thanks

> [@Getting Invalid Access token Error](https://devforum.zoom.us/t/-/951):
>
> Hi, &nbsp; I am using the postman, I have configured the postman and generating the token as mentioned on this link ([https://developer.zoom.us/blog/using-zoom-apis-version-2-with-postman/](https://developer.zoom.us/blog/using-zoom-apis-version-2-with-postman/)). But when I tried to hit a request ([https://api.zoom.us/v2/users?status=active&page\_size=30&page\_number=1](https://api.zoom.us/v2/users?status=active&page_size=30&page_number=1)), I got the following error: { “code”: 124, “message”: “Invalid access token.” } &nbsp; Kindly help me to resolve this issue. &nbsp; Regards

> [@Always getting Invalid access token](https://devforum.zoom.us/t/-/3334):
>
> Hi, I’m trying to use the API using OAuth2. I’m trying use postman or /docs/api-reference/zoom-api/users/users which make a simple request to fetch users via “[api.zoom.us](http://api.zoom.us)”/v2/users I keep getting the invalid token error. I generated a token using [https://jwt.io/](https://jwt.io/) But if I use a token from the application site, the request is successful I rechecked the api secret and api key I want to generate a token, and not to take it from the site. What should I do to get a valid token? Thank…

If these threads did not help, please let us know by replying back here and someone from the Developer Relations team will get back to you shortly.

Thanks,  
DeveloperBot

---

<div class="post-metadata">

**Author:** ![skrajewski001](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/skrajewski001/32/15690_2.png) [@skrajewski001](https://devforum.zoom.us/u/skrajewski001)\
**Post date:** [September 22, 2020, 6:42pm UTC](https://devforum.zoom.us/t/trying-to-get-recordings-using-zoomapiwrapper-invalid-access-token-error/31018/3 "2020-09-22T18:42:11Z")

</div>

These did not help with my problem.

---

<div class="post-metadata">

**Author:** ![skrajewski001](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/skrajewski001/32/15690_2.png) [@skrajewski001](https://devforum.zoom.us/u/skrajewski001)\
**Post date:** [September 23, 2020, 3:08pm UTC](https://devforum.zoom.us/t/trying-to-get-recordings-using-zoomapiwrapper-invalid-access-token-error/31018/4 "2020-09-23T15:08:14Z")

</div>

I think I figured it out! The ‘me’ was working. I just didn’t see in the response info that it was defaulting to the last day’s worth of recordings. If I changed the from/to in the query I got more recordings.

Appending the token to the download URL is working as described in other posts. It just took a bit to really understand what I was getting from the API call to see it was working.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [September 23, 2020, 9:57pm UTC](https://devforum.zoom.us/t/trying-to-get-recordings-using-zoomapiwrapper-invalid-access-token-error/31018/5 "2020-09-23T21:57:06Z")

</div>

Hey @skrajewski001,

Ah, I see! Thanks for updating the thread with your solution—I’m sure you won’t be the only one to work through this. 🙂

Best,  
Will

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [October 24, 2020, 7:57am UTC](https://devforum.zoom.us/t/trying-to-get-recordings-using-zoomapiwrapper-invalid-access-token-error/31018/6 "2020-10-24T07:57:09Z")

</div>

Closed on October 24, 2020, 7:57am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
