r3c
(Omar)
September 23, 2022, 1:23am
1
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:
How to use our Server-to-Server OAuth with Postman?
As some of you might be aware of, our JWT app is being deprecated by June 2023 and we encourage you to migrate to the newly introduced Server-to-Server OAuth App
That being said, here is a quick and simple guide on how to use or new app with Postman
As stated in our documentation here:
This new app type facilitates OAuth-authenticated requests between servers without end-user involvement. And this grant type enable your private server a…
Best,
Elisa
r3c
(Omar)
September 26, 2022, 2:48pm
3
Hi @elisa.zoom we are getting the token following the guide below:
could you share the request url that you are sending please @r3c
r3c
(Omar)
September 26, 2022, 8:21pm
5
Hi @elisa.zoom do you mean the url we are using to get the tokens?
r3c
(Omar)
September 26, 2022, 8:28pm
6
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}