# Code 124, "Invalid access token."

**URL:** https://devforum.zoom.us/t/code-124-invalid-access-token/13881
**Category:** API and Webhooks
**Created:** [April 19, 2020, 12:04pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/13881 "2020-04-19T12:04:09Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![garry](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/garry/32/6893_2.png) [@garry](https://devforum.zoom.us/u/garry)
#### Post date: [April 19, 2020, 12:04pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/13881/1 "2020-04-19T12:04:09Z")

</div>

**Description**  
This documentation is not detailed enough:  
[https://marketplace.zoom.us/docs/guides/tools-resources/postman/using-postman-to-test-zoom-apis](https://marketplace.zoom.us/docs/guides/tools-resources/postman/using-postman-to-test-zoom-apis)

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

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
{{baseUrl}}/users?status=active&page\_size=30&page\_number=1

**Which Endpoint/s?**  
{{baseUrl}}/users?status=active&page\_size=30&page\_number=1

**How To Reproduce (If applicable)**  
Low confidence that [https://jwt.io/](https://jwt.io/) produced the correct key given that this is the second weekend I have spent and failed on both occasions.  
Your documentation mentions an API Key but I have been given an SDK Key.  
Your documentation mentions an “exp” expiry number, but no help on what the format of this should be?  
The error code 124 means nothing.

**Additional context**  
You need to review your documentation and make it easier for API developers.  
We do not have time to waste, and failure to provide adequate documentation about authentication reflects badly on Zoom.

---

<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: [April 20, 2020, 11:55pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/13881/2 "2020-04-20T23:55:32Z")

</div>

Hey @garry,

Can you send me your account # and email that you used to create the JWT App.

As a workaround, you can use an [Account Level OAuth app](https://marketplace.zoom.us/develop/create) and use the [OAuth flow to get an access\_token](https://marketplace.zoom.us/docs/guides/auth/oauth) to call the Zoom API.

Thanks,  
Tommy

---

<div class="post-metadata">

### Author: ![garry](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/garry/32/6893_2.png) [@garry](https://devforum.zoom.us/u/garry)
#### Post date: [April 24, 2020, 4:34am UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/13881/3 "2020-04-24T04:34:10Z")

</div>

Hi Tommy

Thanks for your reply.

My account number is \< deleted \>

My e-mail address is \< deleted \>

\< deleted \>

When you ask about email I used to create the account, this is interesting as I logged in with Google to create the account, and always have to start Zoom, and am unable to actually use my e-mail and a password to bypass Google login. Perhaps this is the problem?

I will try the workaround you suggested.

Kind Regards, Garry.

---

<div class="post-metadata">

### Author: ![garry](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/garry/32/6893_2.png) [@garry](https://devforum.zoom.us/u/garry)
#### Post date: [April 24, 2020, 4:55am UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/13881/4 "2020-04-24T04:55:02Z")

</div>

Hi Tommy

So I looked into the workarounds you suggested, and they look rather too involved for a quick Postman check, so I did a google search and found complaints similar to mine about JWT earlier this month.

I had been using [JWT.io](http://JWT.io) to create my JWT manually, but found other people had been using [zoom.us](http://zoom.us) to create JWT apps.

When I did the same, I received a new JWT bearer token, then plugged that into Postman and voila, my API calls are now working.

I also reset my [garry@trisys.co.uk](mailto:garry@trisys.co.uk) password having found a reset password link (via google) as there is not one on the profile page.

Thank you so much for your help as it galvanised me to take another path.

Kind Regards, Garry.

---

<div class="post-metadata">

### Author: ![garry](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/garry/32/6893_2.png) [@garry](https://devforum.zoom.us/u/garry)
#### Post date: [April 24, 2020, 5:58am UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/13881/5 "2020-04-24T05:58:38Z")

</div>

Hi Tommy

I have now progressed onto your SDK and have followed the guidelines at [https://marketplace.zoom.us/docs/sd/native-sdks/web](https://marketplace.zoom.us/docs/sd/native-sdks/web)

however your sample code fails because you expect API keys to be 22 characters in length however mine is 36 characters.

“Api key length error, must 22”

Other people have complained about this at

[https://devforum.zoom.us/t/invalid-parameter-websdk-1-7-6/14070](https://devforum.zoom.us/t/invalid-parameter-websdk-1-7-6/14070)

Sorry if some of the above URL’s are incorrect however Google Mail seemingly now does not support text pasting this morning!

Kind Regards, Garry.

 ![zoom-api-key-length-error.jpg](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/a/a1f78a02a876600af937713cbb659302f4bedb07.jpeg)

---

<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: [April 25, 2020, 12:11am UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/13881/6 "2020-04-25T00:11:02Z")

</div>

Hey @garry,

Just replied to your post here:

> [@Invalid parameter - webSDK 1.7.6](https://devforum.zoom.us/t/invalid-parameter-websdk-1-7-6/14070/14):
>
> Hey @garry, @wizard_files3, @trevorgreenleaf, @nick1, @dorairajs, The invalid parameter issue will be fixed in the upcoming 1.7.7 release this weekend. Thanks, Tommy

Thanks,  
Tommy

---

<div class="post-metadata">

### Author: ![add](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@add](https://devforum.zoom.us/u/add)
#### Post date: [May 11, 2020, 12:05pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/13881/7 "2020-05-11T12:05:14Z")

</div>

i face same problem please help me!

---

<div class="post-metadata">

### Author: ![garry](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/garry/32/6893_2.png) [@garry](https://devforum.zoom.us/u/garry)
#### Post date: [May 11, 2020, 12:43pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/13881/8 "2020-05-11T12:43:58Z")

</div>

Hi Tommy

Did this get fixed as expected?  
I just saw a comment today from another user who says it hasn’t been fixed?

Kind Regards, Garry.

---

<div class="post-metadata">

### Author: ![garry](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/garry/32/6893_2.png) [@garry](https://devforum.zoom.us/u/garry)
#### Post date: [May 11, 2020, 1:02pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/13881/9 "2020-05-11T13:02:59Z")

</div>

So I pulled the latest code from [https://github.com/zoom/sample-app-web](https://github.com/zoom/sample-app-web)  
I then plugged my API keys into js/index.js and I still get the same error:

Invalid parameter

---

<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: [May 15, 2020, 6:16pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/13881/10 "2020-05-15T18:16:22Z")

</div>

Hey @garry, @add,

Make sure you are using a [JWT App](https://marketplace.zoom.us/docs/guides/build/jwt-app) for your API keys.

Thanks,  
Tommy

---

<div class="post-metadata">

### Author: ![Jayasree](https://avatars.discourse-cdn.com/v4/letter/j/57b2e6/32.png) [@Jayasree](https://devforum.zoom.us/u/Jayasree)
#### Post date: [August 4, 2020, 1:36pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/13881/11 "2020-08-04T13:36:56Z")

</div>

Is this fixed . I am facing the same issue account number 3004285681

---

<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: [August 5, 2020, 8:51pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/13881/12 "2020-08-05T20:51:25Z")

</div>

Hey @Jayasree,

The issue in the original topic is fixed yes. Can you please create a new topic and fill out the post template so we have enough info to help? 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

### Author: ![mmichel](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@mmichel](https://devforum.zoom.us/u/mmichel)
#### Post date: [September 12, 2020, 4:05pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/13881/13 "2020-09-12T16:05:18Z")

</div>

Good Morning, I can’t use my NYCDOE account. [https://nycdoe.zoom.us/](https://nycdoe.zoom.us/) I get this error: Token expired (124). [https://nycdoe.zoom.us/confirm\_sso\_change\_account?from=web&code=YRdCD7VQEjBNNmxkYJjzFsDh0--UIsp8NAg0U-5lmUc.BQkAAAF0gw9\_JwAAAlgXTU1pY2hlbEBzY2hvb2xzLm55Yy5nb3YHFmgwcjVnVUFRU0ZLVjJ2VXVzdmRCaHdkAAAAAAAAAhhyN2hVa2JsV0Zud04zTHArd0NtTGtnPT0gNnZMUTEzNHU0NS9XdDlkakExY051Z0JKRXlrbHZNL0IWamVOLVJ6ZndUUE8wRm1TNTllYXpQZwAAAA](https://nycdoe.zoom.us/confirm_sso_change_account?from=web&code=YRdCD7VQEjBNNmxkYJjzFsDh0--UIsp8NAg0U-5lmUc.BQkAAAF0gw9_JwAAAlgXTU1pY2hlbEBzY2hvb2xzLm55Yy5nb3YHFmgwcjVnVUFRU0ZLVjJ2VXVzdmRCaHdkAAAAAAAAAhhyN2hVa2JsV0Zud04zTHArd0NtTGtnPT0gNnZMUTEzNHU0NS9XdDlkakExY051Z0JKRXlrbHZNL0IWamVOLVJ6ZndUUE8wRm1TNTllYXpQZwAAAA)

---

<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 15, 2020, 4:18pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/13881/14 "2020-09-15T16:18:01Z")

</div>

Hi @mmichel,

Can you please reach out to [support.zoom.us](http://support.zoom.us)? They will be best suited to assist you with your account.

Thanks,  
Will

---

<div class="post-metadata">

### Author: ![zoom31](https://avatars.discourse-cdn.com/v4/letter/z/439d5e/32.png) [@zoom31](https://devforum.zoom.us/u/zoom31)
#### Post date: [October 29, 2020, 9:18am UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/13881/15 "2020-10-29T09:18:03Z")

</div>

Hey@tommy  
i am using account level oAuth app . i am receving code in redirect URL but how will i receive the same in my java code? Please help

---

<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 30, 2020, 4:50pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/13881/16 "2020-10-30T16:50:48Z")

</div>

Hey @zoom31,

If you’re going through the OAuth flow to generate an access\_token, after you grab the code from the URL following installation of the app, you will need to pass this code as a parameter in your request to [this endpoint](https://marketplace.zoom.us/docs/guides/auth/oauth):  
`POST https://zoom.us/oauth/token`

This request will return your access\_token, and in Java, it would look something like this:

```auto
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
  .url("https://zoom.us/oauth/token?grant_type=authorization_code&code={yourCode}&redirect_uri={yourRedirectUri")
  .method("POST", body)
  .addHeader("Authorization", "Basic {Encoded Client Secret: Client Key}")
  .addHeader("Cookie", "_zm_lang=en-US; _zm_mtk_guid=85b1581b57884cae8199dc6228eace1e; _zm_ssid=us04_c_J32Z0u9AScqMznQ7cNB9CA; cred=A3DE8E87AE078B87BA581767EDAA8A84; _zm_ctaid=B3N5y88sRFaHL5bVR0TtdA.1603312359599.420bfa07089f494998402c43c972f6c0; _zm_chtaid=93")
  .build();
Response response = client.newCall(request).execute();

```

Let me know if this helps,  
Will

---

<div class="post-metadata">

### Author: ![shivalik.chopra](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@shivalik.chopra](https://devforum.zoom.us/u/shivalik.chopra)
#### Post date: [January 29, 2021, 9:11am UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/13881/17 "2021-01-29T09:11:53Z")

</div>

Hi,  
Can anyone please help me with Zoom API integration with Drupal? Need to create Zoom Webinars from the Drupal admin panel?

Currently, I am getting client error (Some authentication error)  
I am getting 124 Invalid access token while checking through postman.

Thanks

---

<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: [January 30, 2021, 7:49pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token/13881/18 "2021-01-30T19:49:38Z")

</div>

Hey @shivalik.chopra ,

Please create a new topic and fill out the post template so we have enough info to help! 🙂

Thanks,  
Tommy
