# Code 124 Invalid access token

**URL:** <https://devforum.zoom.us/t/code-124-invalid-access-token/116829>\
**Category:** Meetings\
**Tags:** recording, api\
**Created:** [September 3, 2024, 4:54pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/116829 "2024-09-03T16:54:32Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhijeetgund0](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/abhijeetgund0/32/49141_2.png) [@abhijeetgund0](https://devforum.zoom.us/u/abhijeetgund0)\
**Post date:** [September 3, 2024, 4:54pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/116829/1 "2024-09-03T16:54:32Z")

</div>

@tommy  
**Zoom API v2/users/**  
returning this error with my app please check it asap I’m stuck  
**Error?**  
_{ code: 124, message: ‘Invalid access token.’ }_

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [September 3, 2024, 7:36pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/116829/2 "2024-09-03T19:36:15Z")

</div>

Hi @abhijeetgund0 , were you able to previously generate a correct and valid token or is this your first time trying to do this?

---

<div class="post-metadata">

**Author:** ![abhijeetgund0](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/abhijeetgund0/32/49141_2.png) [@abhijeetgund0](https://devforum.zoom.us/u/abhijeetgund0)\
**Post date:** [September 4, 2024, 7:49am UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/116829/4 "2024-09-04T07:49:31Z")

</div>

@gianni.zoom I’m trying this first time

---

<div class="post-metadata">

**Author:** ![freelancer.nak](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/freelancer.nak/32/40968_2.png) [@freelancer.nak](https://devforum.zoom.us/u/freelancer.nak)\
**Post date:** [September 4, 2024, 3:06pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/116829/5 "2024-09-04T15:06:03Z")

</div>

@abhijeetgund0 Hope you will be fine.

Are you getting valid access token with proper scopes through OAuth2.0 flow?

Steps

1. Create General/STS app on [marketplace.zoom.us](http://marketplace.zoom.us)
2. Configure app information, redirect URL and add users scopes
3. Follow OAuth2.0 docs from Zoom
4. Apply OAuth2.0 and get access token

Use that access token.

Still any query. Share that here.

Thanks

---

<div class="post-metadata">

**Author:** ![abhijeetgund0](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/abhijeetgund0/32/49141_2.png) [@abhijeetgund0](https://devforum.zoom.us/u/abhijeetgund0)\
**Post date:** [September 4, 2024, 3:21pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/116829/6 "2024-09-04T15:21:01Z")

</div>

@freelancer.nak  
I did all above things properly. Still I’m facing same issue.  
Also, I’m going through this doc [JWT With Zoom](https://developers.zoom.us/docs/internal-apps/jwt/)  
for token generation using [jwt.io](http://jwt.io).  
Attached screenshots of app credentials and app type  
[redacted]

---

<div class="post-metadata">

**Author:** ![freelancer.nak](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/freelancer.nak/32/40968_2.png) [@freelancer.nak](https://devforum.zoom.us/u/freelancer.nak)\
**Post date:** [September 4, 2024, 3:57pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/116829/7 "2024-09-04T15:57:19Z")

</div>

@abhijeetgund0

JWT apps are deprecated.

Please follow this → [Zoom OAuth2.0](https://developers.zoom.us/docs/integrations/oauth/)

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [September 4, 2024, 4:29pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/116829/8 "2024-09-04T16:29:29Z")

</div>

Hi @abhijeetgund0 , as @freelancer.nak said, JWT app types are deprecated. I see from the screenshot, you’ve created a Server-to-Server app, which ideal for internal requests. The purpose is the same like with previous JWT apps.

Please do not use the guidance Naeem shared, as that is for OAuth apps that may be used for external users… unless of course, that is the type of app you intended to develop.

For Server-to-Server, this is the correct documentation: [Internal apps (Server-to-server)](https://developers.zoom.us/docs/internal-apps/)

---

<div class="post-metadata">

**Author:** ![freelancer.nak](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/freelancer.nak/32/40968_2.png) [@freelancer.nak](https://devforum.zoom.us/u/freelancer.nak)\
**Post date:** [September 4, 2024, 4:37pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/116829/9 "2024-09-04T16:37:33Z")

</div>

> [@gianni.zoom](#):
>
> as that is for OAuth apps that may be used for external users… unless of course, that is the type of app you intended to develop.

@abhijeetgund0 You can use that app for internal users also.

For external users your app must be published on Zoom Marketplace.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [September 4, 2024, 4:39pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/116829/10 "2024-09-04T16:39:35Z")

</div>

Hi @freelancer.nak , I am aware. However, the auth process is slightly different between S2S and standard OAuth apps. Additionally, the token performance is different. There’s no refresh token for S2S.

---

<div class="post-metadata">

**Author:** ![abhijeetgund0](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/abhijeetgund0/32/49141_2.png) [@abhijeetgund0](https://devforum.zoom.us/u/abhijeetgund0)\
**Post date:** [September 4, 2024, 5:38pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/116829/11 "2024-09-04T17:38:36Z")

</div>

Thanks guys for your quick response.  
But I’m not able to use generated access token with Zoom Meeting Get Audio/Video Raw Data sdk. Could you please check my account id which I mentioned in above screenshots?

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [September 4, 2024, 6:04pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/116829/12 "2024-09-04T18:04:40Z")

</div>

Hi @abhijeetgund0 , please link what you are referring to. I removed your screenshot due to sensitive info.
