# Code 124, “Invalid access token.” for Get meeting's token API

**URL:** https://devforum.zoom.us/t/code-124-invalid-access-token-for-get-meetings-token-api/85064
**Category:** Meetings
**Created:** [March 21, 2023, 1:00pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token-for-get-meetings-token-api/85064 "2023-03-21T13:00:18Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![ritz7](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ritz7/32/46650_2.png) [@ritz7](https://devforum.zoom.us/u/ritz7)
#### Post date: [March 21, 2023, 1:00pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token-for-get-meetings-token-api/85064/1 "2023-03-21T13:00:18Z")

</div>

**API Endpoint** - Get meeting’s token “GET /meetings/{meetingId}/token”  
**Link** - [https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/meetingToken](https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/meetingToken)

**Description**  
Followed all the steps required to get a successful response from the API call. Scope required is added changes that needed in User’s settings are done but got Code 124, “Invalid access token.” as response.

**Error?**  
Raw response for the API  
Status code 401  
{“code”:124,“message”:“Invalid access token.”}

**How To Reproduce**  
_Steps to reproduce the behavior:_  
\*1. Request URL / Headers **([https://api.zoom.us/v2/meetings/](https://api.zoom.us/v2/meetings/)[Meeting Id]/token)**  
_2. Authentication method: OAuth 2_  
_3. {“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: [March 21, 2023, 9:44pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token-for-get-meetings-token-api/85064/2 "2023-03-21T21:44:05Z")

</div>

Hi,

@ritz7 , can you verify that your OAuth token is valid? Were you able to successfully use it with another API endpoint? If you need additional help, reference our public workspace for easy to follow steps on retrieving a valid access token: [Postman](https://www.postman.com/zoom-developer/workspace/zoom-public-workspace/folder/22097587-4ce41fb2-7e24-4787-b0ee-0ef73b1a91e6?ctx=documentation)

---

<div class="post-metadata">

### Author: ![ritz7](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ritz7/32/46650_2.png) [@ritz7](https://devforum.zoom.us/u/ritz7)
#### Post date: [March 23, 2023, 4:43am UTC](https://devforum.zoom.us/t/code-124-invalid-access-token-for-get-meetings-token-api/85064/3 "2023-03-23T04:43:14Z")

</div>

Hi,

Yes the access token works for other API calls it just give error for this particular API call.

---

<div class="post-metadata">

### Author: ![ritz7](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ritz7/32/46650_2.png) [@ritz7](https://devforum.zoom.us/u/ritz7)
#### Post date: [March 28, 2023, 11:18am UTC](https://devforum.zoom.us/t/code-124-invalid-access-token-for-get-meetings-token-api/85064/4 "2023-03-28T11:18:41Z")

</div>

Hi,

Yes the access token works for other API calls it just give error for this particular API call.

---

<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: [March 28, 2023, 8:47pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token-for-get-meetings-token-api/85064/5 "2023-03-28T20:47:38Z")

</div>

Hi @ritz7 ,

Can you please confirm you are querying with the [role](https://support.zoom.us/hc/en-us/articles/115001078646-Using-role-management)/user and [scopes](https://developers.zoom.us/docs/integrations/oauth-scopes/) to access [this endpoint](https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/meetingToken)?

---

<div class="post-metadata">

### Author: ![ritz7](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ritz7/32/46650_2.png) [@ritz7](https://devforum.zoom.us/u/ritz7)
#### Post date: [March 29, 2023, 11:34am UTC](https://devforum.zoom.us/t/code-124-invalid-access-token-for-get-meetings-token-api/85064/7 "2023-03-29T11:34:11Z")

</div>

Hi @gianni.zoom,

I am querying with the role as Owner and the scope ‘meeting:read:admin’ as mentioned in the API [documentation](https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/meetingToken).

Also while I was going through the [scope](https://developers.zoom.us/docs/integrations/) documentation which you shared, I was not able to find " Get meeting’s token" endpoint in the documentation.

---

<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: [March 30, 2023, 3:24am UTC](https://devforum.zoom.us/t/code-124-invalid-access-token-for-get-meetings-token-api/85064/8 "2023-03-30T03:24:15Z")

</div>

> [@ritz7](#):
>
> I am querying with the role as Owner and the scope ‘meeting:read:admin’ as mentioned in the API [documentation](https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/meetingToken).

Please add `meeting.read` as well and test with new access token.

> [@ritz7](#):
>
> Also while I was going through the [scope](https://developers.zoom.us/docs/integrations/) documentation which you shared, I was not able to find " Get meeting’s token" endpoint in the documentation.

Okay that’s something we can update for our docs, thanks for catching.

---

<div class="post-metadata">

### Author: ![ritz7](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ritz7/32/46650_2.png) [@ritz7](https://devforum.zoom.us/u/ritz7)
#### Post date: [March 31, 2023, 5:26am UTC](https://devforum.zoom.us/t/code-124-invalid-access-token-for-get-meetings-token-api/85064/9 "2023-03-31T05:26:02Z")

</div>

Hi @gianni.zoom,

I cannit find “meeting:read” in the scope list, just able to see “meetng:read:admin” and scopes which have “:admin” at the end.

---

<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: [March 31, 2023, 11:18pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token-for-get-meetings-token-api/85064/10 "2023-03-31T23:18:20Z")

</div>

@ritz7 okay, please try removing the scopes, saving and uninstalling the app. Then add the scopes back, save, and re-install the app. Generate a new token and query again.

---

<div class="post-metadata">

### Author: ![ritz7](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ritz7/32/46650_2.png) [@ritz7](https://devforum.zoom.us/u/ritz7)
#### Post date: [April 20, 2023, 6:56am UTC](https://devforum.zoom.us/t/code-124-invalid-access-token-for-get-meetings-token-api/85064/11 "2023-04-20T06:56:03Z")

</div>

HI @gianni.zoom

The type of the app is OAuth and its current status is in Draft.

I had tested the API by removing scopes and adding them back but its of no use, it still gives error. Also there is no option for uninstalling the app, did you mean I have to select “remove app” option and if yes can I get the app back once it is removed.

---

<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: [April 20, 2023, 11:55pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token-for-get-meetings-token-api/85064/12 "2023-04-20T23:55:32Z")

</div>

Hi @ritz7 , I mean clicking on the “Local Test” tab and clicking the remove button. Then also try hitting the “regenerate” button on the “App Credentials” tab and going through the authentication and authorization process again please.

---

<div class="post-metadata">

### Author: ![ritz7](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ritz7/32/46650_2.png) [@ritz7](https://devforum.zoom.us/u/ritz7)
#### Post date: [April 21, 2023, 11:28am UTC](https://devforum.zoom.us/t/code-124-invalid-access-token-for-get-meetings-token-api/85064/13 "2023-04-21T11:28:15Z")

</div>

Hi @gianni.zoom,

As per instructions, I removed the scopes and uninstall the app and then added the scopes and app back and gone through the authorization process and still got the same error code124, “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: [April 21, 2023, 5:51pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token-for-get-meetings-token-api/85064/14 "2023-04-21T17:51:11Z")

</div>

Can you please confirm regenerating the client secret as well? If yes, please send me your developer email associated with the application and client secret and I will proceed with next steps. Thanks!

---

<div class="post-metadata">

### Author: ![ritz7](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ritz7/32/46650_2.png) [@ritz7](https://devforum.zoom.us/u/ritz7)
#### Post date: [April 24, 2023, 8:23am UTC](https://devforum.zoom.us/t/code-124-invalid-access-token-for-get-meetings-token-api/85064/15 "2023-04-24T08:23:02Z")

</div>

Hi @gianni.zoom,

Developer email associated with the application is [Redacted].

---

<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: [April 24, 2023, 5:21pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token-for-get-meetings-token-api/85064/16 "2023-04-24T17:21:10Z")

</div>

Hi @ritz7 , I meant to ask you to private message me, but I’ve redacted your post and messaged you. Please allow me some time to look into it.

---

<div class="post-metadata">

### Author: ![ritz7](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ritz7/32/46650_2.png) [@ritz7](https://devforum.zoom.us/u/ritz7)
#### Post date: [April 25, 2023, 4:21am UTC](https://devforum.zoom.us/t/code-124-invalid-access-token-for-get-meetings-token-api/85064/17 "2023-04-25T04:21:49Z")

</div>

HI @gianni.zoom ,

In the mean time can you please explain what should be the app type for the below mentioned Application.

We are building a new app, which will use **Meetings APIs** and it will be used by various other zoom users not necessarily the users related to developer account. So, should this new app be Account-level app or User-managed app?

---

<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: [April 26, 2023, 6:11pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token-for-get-meetings-token-api/85064/18 "2023-04-26T18:11:38Z")

</div>

Hi @ritz7 ,

Please see below:

> [@Account-level app vs User-managed app for adoption](https://devforum.zoom.us/t/account-level-app-vs-user-managed-app-for-adoption/33295/2):
>
> Hey @geekjock, User managed apps do not require pre approval by default, it is up to the Zoom Admins to configure those settings. slight_smile The biggest difference between Account Level and User Level are Account Level apps are installed once, account wide, and have scopes that allow any user on a Zoom account to use the integration. User level apps are installed per user, and are scoped to that single user. Thanks, Tommy

---

<div class="post-metadata">

### Author: ![analyticshikshas30](https://avatars.discourse-cdn.com/v4/letter/a/9de053/32.png) [@analyticshikshas30](https://devforum.zoom.us/u/analyticshikshas30)
#### Post date: [February 19, 2024, 3:34pm UTC](https://devforum.zoom.us/t/code-124-invalid-access-token-for-get-meetings-token-api/85064/19 "2024-02-19T15:34:03Z")

</div>

Error: Invalid access token.

I am facing the issue while generating token

\<?php // Zoom API credentials $clientid = 'kuWsZwDRYF6FTnERfJrw'; $clientSecret = 'i9lpmiKxCIeb15iwVIhmTkeIhkOBgoJQ'; $token=base64\_encode($clientid.':'.$clientSecret); // API Endpoint for creating a meeting $zoomEndpoint = 'https://api.zoom.us/v2/users/analyticshikshas30@gmail.com/meetings'; // Meeting data $meetingData = array( 'topic' =\> 'Test Meeting', 'type' =\> 2, // Scheduled meeting 'start\_time' =\> date('Y-m-d\TH:i:s', strtotime('+1 day')), // Start time (in UTC) 'duration' =\> 60, // Duration in minutes 'timezone' =\> 'UTC', // Timezone ); // Prepare headers $headers = array( 'Authorization: Bearer' . $token, 'Content-Type: application/json', ); // Make POST request to create meeting $ch = curl\_init(); curl\_setopt($ch, CURLOPT\_URL, $zoomEndpoint); curl\_setopt($ch, CURLOPT\_POST, 1); curl\_setopt($ch, CURLOPT\_POSTFIELDS, json\_encode($meetingData)); curl\_setopt($ch, CURLOPT\_RETURNTRANSFER, true); curl\_setopt($ch, CURLOPT\_HTTPHEADER, $headers); $response = curl\_exec($ch); curl\_close($ch); // Decode JSON response $responseData = json\_decode($response, true); // Check for errors if(isset($responseData['id'])) { // Meeting created successfully $meetingLink = $responseData['join\_url']; echo "Meeting created successfully. Link: $meetingLink"; } else { // Error in creating meeting echo "Error: " . $responseData['message']; } ?\>

---

<div class="post-metadata">

### Author: ![analyticshikshas30](https://avatars.discourse-cdn.com/v4/letter/a/9de053/32.png) [@analyticshikshas30](https://devforum.zoom.us/u/analyticshikshas30)
#### Post date: [February 20, 2024, 7:00am UTC](https://devforum.zoom.us/t/code-124-invalid-access-token-for-get-meetings-token-api/85064/20 "2024-02-20T07:00:04Z")

</div>

anyone please help me

---

<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: [February 22, 2024, 4:16am UTC](https://devforum.zoom.us/t/code-124-invalid-access-token-for-get-meetings-token-api/85064/21 "2024-02-22T04:16:07Z")

</div>

HI @analyticshikshas30 , please create a new topic in the API category and use the new post creation prompts to explain your issue. Thanks!
