# Getting "Invalid Access Token" Error with Zoom OAuth API Requests

**URL:** <https://devforum.zoom.us/t/getting-invalid-access-token-error-with-zoom-oauth-api-requests/119826>\
**Category:** API and Webhooks\
**Created:** [October 25, 2024, 9:42am UTC](https://devforum.zoom.us/t/getting-invalid-access-token-error-with-zoom-oauth-api-requests/119826 "2024-10-25T09:42:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![benstokes.pk8](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/benstokes.pk8/32/64430_2.png) [@benstokes.pk8](https://devforum.zoom.us/u/benstokes.pk8)\
**Post date:** [October 25, 2024, 9:42am UTC](https://devforum.zoom.us/t/getting-invalid-access-token-error-with-zoom-oauth-api-requests/119826/1 "2024-10-25T09:42:31Z")

</div>

Hello Zoom Dev Community,

I’m building an integration with Zoom’s OAuth API to access user data, but I keep getting an “Invalid Access Token” error on my requests. I’m following the OAuth 2.0 process as documented, and the token seems valid in terms of structure and expiration time.

Here’s what I’ve tried so far:

- Double-checked that I’m using the correct client ID and client secret.
- Confirmed that the access token is received successfully and is included in the request header as `Authorization: Bearer {access_token}`.
- Verified that the token hasn’t expired before making requests.
- Ensured that the necessary scopes (like `user:read` and `meeting:read`) are granted.

Despite all this, each API call returns a 401 error with “Invalid Access Token.” Has anyone experienced a similar issue or have any advice on troubleshooting this?

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [October 25, 2024, 1:49pm UTC](https://devforum.zoom.us/t/getting-invalid-access-token-error-with-zoom-oauth-api-requests/119826/2 "2024-10-25T13:49:37Z")

</div>

@benstokes.pk8 do you have a sample code how you are retrieving and using the access token?

---

<div class="post-metadata">

**Author:** ![benstokes.pk8](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/benstokes.pk8/32/64430_2.png) [@benstokes.pk8](https://devforum.zoom.us/u/benstokes.pk8)\
**Post date:** [October 26, 2024, 11:09am UTC](https://devforum.zoom.us/t/getting-invalid-access-token-error-with-zoom-oauth-api-requests/119826/3 "2024-10-26T11:09:58Z")

</div>

Thank you for the quick response! Here’s a sample of the code I’m using to retrieve and utilize the access token:

### Step 1: Retrieve the Access Token

```auto
import requests

def get_access_token():
    url = "https://zoom.us/oauth/token"
    headers = {
        "Authorization": "Basic [base64_encoded(client_id:client_secret)]",
        "Content-Type": "application/x-www-form-urlencoded"
    }
    payload = {
        "grant_type": "authorization_code",
        "code": "authorization_code",
        "redirect_uri": "your_redirect_uri"
    }
    response = requests.post(url, headers=headers, data=payload)
    return response.json().get("access_token")

```

### Step 2: Make an API Request

```auto
def get_user_data(access_token):
    url = "https://api.zoom.us/v2/users/me"
    headers = {
        "Authorization": f"Bearer {access_token}"
    }
    response = requests.get(url, headers=headers)
    return response.json()

```

After retrieving the access token, I include it in the request header as shown. I also verified the scopes and checked that the token hasn’t expired. Despite these, I still encounter the “Invalid Access Token” error.

Any insights or further recommendations would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![benstokes.pk8](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/benstokes.pk8/32/64430_2.png) [@benstokes.pk8](https://devforum.zoom.us/u/benstokes.pk8)\
**Post date:** [October 27, 2024, 12:45pm UTC](https://devforum.zoom.us/t/getting-invalid-access-token-error-with-zoom-oauth-api-requests/119826/4 "2024-10-27T12:45:31Z")

</div>

Is there anyone who can help me? 😀

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [October 31, 2025, 4:21am UTC](https://devforum.zoom.us/t/getting-invalid-access-token-error-with-zoom-oauth-api-requests/119826/5 "2025-10-31T04:21:52Z")

</div>

Closed on October 31, 2025, 4:21am UTC

This topic was automatically closed 368 days after the last reply. New replies are no longer allowed.
