# Getting the error {'code': 124, 'message': 'Invalid access token.'} when using zoom ouath app. How to remove it?

**URL:** <https://devforum.zoom.us/t/getting-the-error-code-124-message-invalid-access-token-when-using-zoom-ouath-app-how-to-remove-it/74473>\
**Category:** Chat\
**Created:** [August 18, 2022, 10:42am UTC](https://devforum.zoom.us/t/getting-the-error-code-124-message-invalid-access-token-when-using-zoom-ouath-app-how-to-remove-it/74473 "2022-08-18T10:42:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![mailagent](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mailagent/32/33951_2.png) [@mailagent](https://devforum.zoom.us/u/mailagent)\
**Post date:** [August 18, 2022, 10:42am UTC](https://devforum.zoom.us/t/getting-the-error-code-124-message-invalid-access-token-when-using-zoom-ouath-app-how-to-remove-it/74473/1 "2022-08-18T10:42:12Z")

</div>

Getting the error {‘code’: 124, ‘message’: ‘Invalid access token.’} when using zoom ouath app.

I am using oauth app to view channels, send message to channels, send private message etc

However I am getting zoom error “invalid access token” even after refreshing the token.

I even tried revoking the token followed by generating the token and then refreshing. Still getting the same error.

Please tell me why I am getting this error and how to remove it?

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [August 18, 2022, 10:12pm UTC](https://devforum.zoom.us/t/getting-the-error-code-124-message-invalid-access-token-when-using-zoom-ouath-app-how-to-remove-it/74473/2 "2022-08-18T22:12:26Z")

</div>

Hi @mailagent  
Thanks for reaching out to the Zoom Developer Forum and welcome to our community, I am happy to help here!

Could you please make sure that you have the right scopes added to your app before authorizing and trying to call the API?

---

<div class="post-metadata">

**Author:** ![mailagent](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mailagent/32/33951_2.png) [@mailagent](https://devforum.zoom.us/u/mailagent)\
**Post date:** [August 19, 2022, 5:10am UTC](https://devforum.zoom.us/t/getting-the-error-code-124-message-invalid-access-token-when-using-zoom-ouath-app-how-to-remove-it/74473/3 "2022-08-19T05:10:33Z")

</div>

Yes, I have the right scopes added. The scopes I have are :

View current user’s chat channels/chat\_channel:read  
View and manage current user’s chat channels/chat\_channel:write  
View current user’s chat contact information/chat\_contact:read  
View current user’s chat messages/chat\_message:read  
View and manage current user’s chat messages/chat\_message:write  
View current user’s contacts/contact:read  
View your user information/user:read  
View and manage your user information/user:write  
View user info/user\_info:read  
View user’s zak token/user\_zak:read

I was able to view channels, send message to channels, send private message till 13 August 2022. However after that I am getting {‘code’: 124, ‘message’: ‘Invalid access token.’} .

I even created a fresh oauth app, in that too I am getting the same error.

Please tell me how to remove this error.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [August 19, 2022, 8:53pm UTC](https://devforum.zoom.us/t/getting-the-error-code-124-message-invalid-access-token-when-using-zoom-ouath-app-how-to-remove-it/74473/4 "2022-08-19T20:53:27Z")

</div>

Interesting… @mailagent  
Thanks for sharing more details with me.  
could you please send me the email associated with your account in a Private Message so I can debug your issue further?

---

<div class="post-metadata">

**Author:** ![mailagent](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mailagent/32/33951_2.png) [@mailagent](https://devforum.zoom.us/u/mailagent)\
**Post date:** [August 22, 2022, 5:38am UTC](https://devforum.zoom.us/t/getting-the-error-code-124-message-invalid-access-token-when-using-zoom-ouath-app-how-to-remove-it/74473/5 "2022-08-22T05:38:31Z")

</div>

My email associated with my account is ----------

Please debug the issue further and tell me how to remove the error.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [August 22, 2022, 12:07pm UTC](https://devforum.zoom.us/t/getting-the-error-code-124-message-invalid-access-token-when-using-zoom-ouath-app-how-to-remove-it/74473/6 "2022-08-22T12:07:56Z")

</div>

Thanks @mailagent  
I have created an internal ticket (ZSEE-62181) about this issue  
I will come back with an update as soon as I hear back from them  
Cheers,  
Elisa

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [August 22, 2022, 5:13pm UTC](https://devforum.zoom.us/t/getting-the-error-code-124-message-invalid-access-token-when-using-zoom-ouath-app-how-to-remove-it/74473/7 "2022-08-22T17:13:15Z")

</div>

Hi @mailagent  
I will send you a private message with some updates

---

<div class="post-metadata">

**Author:** ![mailagent](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mailagent/32/33951_2.png) [@mailagent](https://devforum.zoom.us/u/mailagent)\
**Post date:** [August 24, 2022, 4:11am UTC](https://devforum.zoom.us/t/getting-the-error-code-124-message-invalid-access-token-when-using-zoom-ouath-app-how-to-remove-it/74473/8 "2022-08-24T04:11:40Z")

</div>

Hi Elisa,

After reading your private message instructions,  
I removed the app from my account and added it again and tried calling the endpoint again. It returned me the access token. But when I tried to use it, to view channels, it gave the error again : {‘code’: 124, ‘message’: ‘Invalid access token.’}.

Please tell me how to remove the error.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [August 24, 2022, 4:15pm UTC](https://devforum.zoom.us/t/getting-the-error-code-124-message-invalid-access-token-when-using-zoom-ouath-app-how-to-remove-it/74473/9 "2022-08-24T16:15:24Z")

</div>

Thanks for the update @mailagent  
Let me look into this again

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [August 24, 2022, 4:19pm UTC](https://devforum.zoom.us/t/getting-the-error-code-124-message-invalid-access-token-when-using-zoom-ouath-app-how-to-remove-it/74473/10 "2022-08-24T16:19:59Z")

</div>

I just looked into your app and it looks like it is working now.  
What endpoint are you calling that is throwing you this error?  
Just to double check could you please add your app again?  
thanks  
Elisa

---

<div class="post-metadata">

**Author:** ![mailagent](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mailagent/32/33951_2.png) [@mailagent](https://devforum.zoom.us/u/mailagent)\
**Post date:** [August 26, 2022, 5:30am UTC](https://devforum.zoom.us/t/getting-the-error-code-124-message-invalid-access-token-when-using-zoom-ouath-app-how-to-remove-it/74473/11 "2022-08-26T05:30:32Z")

</div>

Hi Elisa,

I double checked and added my app again. This time it is working. The endpoints which I used were [https://zoom.us/oauth/token](https://zoom.us/oauth/token) for generating acces\_token and [https://api.zoom.us/v2/chat/users/me/channels](https://api.zoom.us/v2/chat/users/me/channels) for getting channels.

I will contact you in case I face any issues again.

Thank you

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [August 26, 2022, 2:10pm UTC](https://devforum.zoom.us/t/getting-the-error-code-124-message-invalid-access-token-when-using-zoom-ouath-app-how-to-remove-it/74473/12 "2022-08-26T14:10:42Z")

</div>

Amazing!!! @mailagent  
I am happy to hear it works now!  
Let me know if there is anything else you need

Cheers,  
Elisa

---

<div class="post-metadata">

**Author:** ![mailagent](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mailagent/32/33951_2.png) [@mailagent](https://devforum.zoom.us/u/mailagent)\
**Post date:** [August 29, 2022, 10:24am UTC](https://devforum.zoom.us/t/getting-the-error-code-124-message-invalid-access-token-when-using-zoom-ouath-app-how-to-remove-it/74473/13 "2022-08-29T10:24:08Z")

</div>

Hi Elisa,

I am not able to send private messages, rest of the endpoints are working. I am getting the error "{“code”:300,“message”:“User does not exist”} for the private message endpoint “[https://api.zoom.us/v2/chat/users/me/messages](https://api.zoom.us/v2/chat/users/me/messages)” even though the contact is present and right permissions are given to app.

I was able to send private messages earlier.

Please tell me how to remove this error for private messages.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [August 29, 2022, 7:20pm UTC](https://devforum.zoom.us/t/getting-the-error-code-124-message-invalid-access-token-when-using-zoom-ouath-app-how-to-remove-it/74473/14 "2022-08-29T19:20:45Z")

</div>

Hi @mailagent  
Thanks for sharing more details with me.  
Please make sure that you are adding the query parameter at\_contact when sending a private message to another contact within your account, or you could also try to\_contact

Here is a link to our docs:

> **[Zoom Chat API](https://marketplace.zoom.us/docs/api-reference/chat/methods/#operation/sendaChatMessage)**
>
> API Reference for /api-reference/chat/methods

---

<div class="post-metadata">

**Author:** ![mailagent](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mailagent/32/33951_2.png) [@mailagent](https://devforum.zoom.us/u/mailagent)\
**Post date:** [August 30, 2022, 9:38am UTC](https://devforum.zoom.us/t/getting-the-error-code-124-message-invalid-access-token-when-using-zoom-ouath-app-how-to-remove-it/74473/15 "2022-08-30T09:38:41Z")

</div>

Hi Elisa,

I am using “to\_contact” to send message to a contact. That gave the error {“code”:300,“message”:"User does not exist.} .

Then I also tried adding “at\_contact” but then also I received the same error {“code”:300,“message”:"User does not exist}.

The user exists in my account. Stil I am getting this error.

Please tell me how to fix this error, at least for case 1 i.e. using to\_contact only.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [August 30, 2022, 4:54pm UTC](https://devforum.zoom.us/t/getting-the-error-code-124-message-invalid-access-token-when-using-zoom-ouath-app-how-to-remove-it/74473/16 "2022-08-30T16:54:36Z")

</div>

Hi @mailagent  
Thanks for reaching out back to me! Can we please move to our private conversation again ?

---

<div class="post-metadata">

**Author:** ![mailagent](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mailagent/32/33951_2.png) [@mailagent](https://devforum.zoom.us/u/mailagent)\
**Post date:** [August 31, 2022, 9:20am UTC](https://devforum.zoom.us/t/getting-the-error-code-124-message-invalid-access-token-when-using-zoom-ouath-app-how-to-remove-it/74473/17 "2022-08-31T09:20:53Z")

</div>

Sure. I messaged you on private conversation. Please see.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [August 31, 2022, 2:28pm UTC](https://devforum.zoom.us/t/getting-the-error-code-124-message-invalid-access-token-when-using-zoom-ouath-app-how-to-remove-it/74473/18 "2022-08-31T14:28:18Z")

</div>

Thanks! I will take it from there!

---

<div class="post-metadata">

**Author:** ![paramveer.singh](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/paramveer.singh/32/51411_2.png) [@paramveer.singh](https://devforum.zoom.us/u/paramveer.singh)\
**Post date:** [August 25, 2023, 1:16pm UTC](https://devforum.zoom.us/t/getting-the-error-code-124-message-invalid-access-token-when-using-zoom-ouath-app-how-to-remove-it/74473/19 "2023-08-25T13:16:21Z")

</div>

Hello,

I am facing a similar issue.  
I am working with OAuth, my ultimate goal is to generate meeting reports.

However I keep getting the code124. Therefore I decided to slim down my scopes to test if i can access my meetings first. The error still pops up.

These are the scopes:

- View your meetings /meeting:read
- View and manage your meetings /meeting:write
- View your user information /user:read
- View user info /user\_info:read

I am using postman to first test the output, ultimately I would like to create a python script.

I would be grateful for your help.

P.S. I had an app about 2 months prior to the present day and i was able to get the info.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [August 28, 2023, 5:16pm UTC](https://devforum.zoom.us/t/getting-the-error-code-124-message-invalid-access-token-when-using-zoom-ouath-app-how-to-remove-it/74473/20 "2023-08-28T17:16:09Z")

</div>

Hi @paramveer.singh  
Thanks for reaching out to us!  
Are you still having this issue?

[Next page](https://devforum.zoom.us/t/getting-the-error-code-124-message-invalid-access-token-when-using-zoom-ouath-app-how-to-remove-it/74473.md?page=2)
