Invalid access token - Server-to-Server OAuth

API Endpoint(s) and/or Zoom API Event(s)
https://api.zoom.us/v2/users/{user_id}

Description
We have a Server-to-Server OAuth app that it’s returning the “Invalid access token” within the hour of being issued. We have even tried to use the token through postman getting the same response.

Error?
{"code":124,"message":"Invalid access token."}

How To Reproduce

Steps to reproduce the behavior:
*1. https://api.zoom.us/v2/users/{user_id}
*2. The request above was made within the valid time of the access token.

When decoding the token the issued at and expired at values were:

exp: 1663897232,
iat: 1663893632

And the request time was 2022-09-22T21:06:13.983131

Hi @r3c
Thanks for reaching out to the Zoom Developer Forum, I am happy to help here!
Could you please share with me how are you requesting the access token?
Here is a very helpful post that I have create that might help you troubleshoot your issue:

Best,
Elisa

Hi @elisa.zoom we are getting the token following the guide below:

could you share the request url that you are sending please @r3c

Hi @elisa.zoom do you mean the url we are using to get the tokens?

@elisa.zoom I think I found my exact problem Randomly receiving "Invalid access token" for Server-to-Server OAuth

Hi @r3c
Have you been able to resolve this issue?
And by the URL yes I mean the request that should look something like this:

https://zoom.us/oauth/token?grant_type=account_credentials&account_id={account_ID}