# Getting 124 "Invalid access token." errors

**URL:** <https://devforum.zoom.us/t/getting-124-invalid-access-token-errors/76909>\
**Category:** API and Webhooks\
**Created:** [October 4, 2022, 10:06am UTC](https://devforum.zoom.us/t/getting-124-invalid-access-token-errors/76909 "2022-10-04T10:06:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![reece.selwood](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@reece.selwood](https://devforum.zoom.us/u/reece.selwood)\
**Post date:** [October 4, 2022, 10:06am UTC](https://devforum.zoom.us/t/getting-124-invalid-access-token-errors/76909/1 "2022-10-04T10:06:53Z")

</div>

Hey,

Our app has started getting this response when we make requests to any meetings endpoint:

```auto
{
    "code": 124,
    "message": "Invalid access token."
}

```

I’ve verified this in postman. If I generate a new access token for the app, using the same account as always, I get a 124 any time I try to use it.

It only seems to happen for new tokens. I can refresh an existing token and make successful API requests.

Has something changed?

---

<div class="post-metadata">

**Author:** ![david5](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/david5/32/40553_2.png) [@david5](https://devforum.zoom.us/u/david5)\
**Post date:** [October 4, 2022, 2:48pm UTC](https://devforum.zoom.us/t/getting-124-invalid-access-token-errors/76909/2 "2022-10-04T14:48:55Z")

</div>

Is it possible you’re hitting this issue? [Randomly receiving "Invalid access token" for Server-to-Server OAuth - #22 by david5](https://devforum.zoom.us/t/randomly-receiving-invalid-access-token-for-server-to-server-oauth/74432/22)

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [October 6, 2022, 12:38am UTC](https://devforum.zoom.us/t/getting-124-invalid-access-token-errors/76909/3 "2022-10-06T00:38:52Z")

</div>

Thanks for sharing this insight @david5!

> [@Randomly receiving "Invalid access token" for Server-to-Server OAuth](https://devforum.zoom.us/t/randomly-receiving-invalid-access-token-for-server-to-server-oauth/74432/22):
>
> For posterity and anyone else who happens to run across this thread while scratching their head about how Server-to-Server OAuth works: Requesting a new Server-to-Server OAuth token invalidates the previous one. Zoom can increase the “index” count for your account, allowing you to request different tokens with different indexes that do not interfere with each other (i.e. requesting a token for index 1 doesn’t invalidate the token requested for index 2). The token index is specified in the call…

---

<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 9, 2023, 4:15pm UTC](https://devforum.zoom.us/t/getting-124-invalid-access-token-errors/76909/4 "2023-10-09T16:15:18Z")

</div>

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