# Access Token not working for some APIs

**URL:** <https://devforum.zoom.us/t/access-token-not-working-for-some-apis/23519>\
**Category:** API and Webhooks\
**Created:** [July 8, 2020, 7:20am UTC](https://devforum.zoom.us/t/access-token-not-working-for-some-apis/23519 "2020-07-08T07:20:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhishekdwivedi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/abhishekdwivedi/32/1305_2.png) [@abhishekdwivedi](https://devforum.zoom.us/u/abhishekdwivedi)\
**Post date:** [July 8, 2020, 7:20am UTC](https://devforum.zoom.us/t/access-token-not-working-for-some-apis/23519/1 "2020-07-08T07:20:19Z")

</div>

**Description**  
I have made an OAuth app and generated access and refresh tokens for the same. The tokens were working fine for the APIs I hit, except few where i get error code 124.

**Error**  
When using the api [https://marketplace.zoom.us/docs/api-reference/zoom-api/accounts/getaccountlocksettings](https://marketplace.zoom.us/docs/api-reference/zoom-api/accounts/getaccountlocksettings)  
I get error code 124 and message the access token invalid on postman. Other APIs are working fine.

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

---

<div class="post-metadata">

**Author:** ![abhishekdwivedi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/abhishekdwivedi/32/1305_2.png) [@abhishekdwivedi](https://devforum.zoom.us/u/abhishekdwivedi)\
**Post date:** [July 8, 2020, 7:58am UTC](https://devforum.zoom.us/t/access-token-not-working-for-some-apis/23519/2 "2020-07-08T07:58:32Z")

</div>

Got the solution  
for the endpoint - /accounts/{accountId}/lock\_settings  
I was passing the accountId of the admin instead had to use me in place of the accountId

---

<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 10, 2020, 4:23pm UTC](https://devforum.zoom.us/t/access-token-not-working-for-some-apis/23519/3 "2020-07-10T16:23:50Z")

</div>

Thanks for sharing the solution! 🙂

-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:39pm UTC](https://devforum.zoom.us/t/access-token-not-working-for-some-apis/23519/4 "2020-08-21T22:39:14Z")

</div>

Closed on August 21, 2020, 10:39pm UTC


