# 124 Invalid access token

**URL:** <https://devforum.zoom.us/t/124-invalid-access-token/31339>\
**Category:** API and Webhooks\
**Created:** [September 25, 2020, 10:18pm UTC](https://devforum.zoom.us/t/124-invalid-access-token/31339 "2020-09-25T22:18:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drensys](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/drensys/32/12721_2.png) [@Drensys](https://devforum.zoom.us/u/Drensys)\
**Post date:** [September 25, 2020, 10:18pm UTC](https://devforum.zoom.us/t/124-invalid-access-token/31339/1 "2020-09-25T22:18:46Z")

</div>

**Description**  
I am sending a request to:  
PATCH [https://api.zoom.us/v2/accounts/{ID}/lock\_settings](https://api.zoom.us/v2/accounts/%7BID%7D/lock_settings)

if I send request to different link, it is working fine,  
I tried with JWT and Oauth2 none of them working for /accounts!

and it is responding with invalid access token  
**Error**  
The full error message or issue you are running into.

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

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
Knowing the endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.

[Screen Shot 2020-09-25 at 6.16.10 PM|690x427](https://devforum.zoom.us/uploads/short-url/4PJMXcrXqYWveN7OgkRaG2PRFjc.png)

---

<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 25, 2020, 10:19pm UTC](https://devforum.zoom.us/t/124-invalid-access-token/31339/2 "2020-09-25T22:19:30Z")

</div>

Hey @Drensys

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:

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

> [@Code 124, Invalid access token](https://devforum.zoom.us/t/-/4060):
>
> Hello, I created JWT app, and want to test some endpoints from within API documentation, just using authorization in headers with Bearer + copy pasted JWT from credentials section, and still could not get it working with response Invalid access token. Is there something what I am missing?

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

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:** ![Drensys](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/drensys/32/12721_2.png) [@Drensys](https://devforum.zoom.us/u/Drensys)\
**Post date:** [September 28, 2020, 9:28pm UTC](https://devforum.zoom.us/t/124-invalid-access-token/31339/3 "2020-09-28T21:28:53Z")

</div>

Is there any way to change the personal meeting password of the rooms through API? I tried to send a request to change the meeting password and users meeting password, none of them worked ☹ Please help me to change my rooms pmi password through API

---

<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 30, 2020, 7:09pm UTC](https://devforum.zoom.us/t/124-invalid-access-token/31339/4 "2020-09-30T19:09:08Z")

</div>

Hi @Drensys,

Your PMI will automatically use the passcode set in your settings. This will need to be set through the UI. You can read about this here:

> **[Meeting and webinar passcodes](https://support.zoom.us/hc/en-us/articles/360033559832-Meeting-and-webinar-passcodes#h_f526f167-d9d6-488a-a5fb-56f78e7051dd)**
>
> Note: Starting September 27, Zoom will require that all meetings have a Passcode or a Waiting Room enabled for accounts with a single licensed user, Pro accounts with 2 or more licenses, and Busine...

Let me know if this helps!

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![Drensys](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/drensys/32/12721_2.png) [@Drensys](https://devforum.zoom.us/u/Drensys)\
**Post date:** [October 5, 2020, 4:21pm UTC](https://devforum.zoom.us/t/124-invalid-access-token/31339/5 "2020-10-05T16:21:22Z")

</div>

Yes, I found this to do through UI, I would like to automize this process, which every day I have to change this password and it would be ideal if I can do it through an API call or some way to auto-generate and set a new password every day!

---

<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:** [October 6, 2020, 3:25pm UTC](https://devforum.zoom.us/t/124-invalid-access-token/31339/6 "2020-10-06T15:25:25Z")

</div>

Hey @Drensys,

At this time, the PMI password must be set in the UI, though this is a great suggestion. If you’re so inclined, I’d encourage you to submit this as a feature request here: #feature-requests.

Thanks,  
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:** [November 6, 2020, 1:25am UTC](https://devforum.zoom.us/t/124-invalid-access-token/31339/7 "2020-11-06T01:25:55Z")

</div>

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