Using this template helps us debug your issues more effectively
Description
A clear and concise description of what the question is.
I am trying to register a user to a webinar using the API call /v2/webinars/{id}/registrants but getting Invalid access token
Error
The full error message or issue you are running into.
[code] => 124
[message] => Invalid access token.
Which App Type (OAuth / Chatbot / JWT / Webhook)?
Knowing the endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with. api.zoom.us/v2/webinars/{id}/registrants
Which Endpoint/s?
Knowing the API endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with. api.zoom.us/v2/webinars/{id}/registrants
How To Reproduce (If applicable)
Steps to reproduce the behavior:
Request URL / Headers (without credentials) / Body
See error
Screenshots (If applicable)
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Plese make sure that you are following the relevant steps in our JWT App or OAuth App documentation depending on what you are using.
If that doesn’t help, please send an email to developersupport@zoom.us with a link to this thread. In that email, please provide the token that you used as well as the full request that was made.
Please let me know how long the access token remains valid.
In our system we have to call the zoom API anyday multiple times and we want it to be authorized only once, thereafter we only want to use the access/refresh token to complete the API calls. Please suggest how we proceed.
Awesome! I’m glad that you were able to resolve your issue.
If you’re using an OAuth app, you’ll want to check if the Access Token is expired before making your request. An Access Token is valid for. A token is valid for one hour so if it has been longer than one hour you’ll want to use the Refresh Token to request a new Access Token before making your request.
A Refresh Token is valid for 15 years. Once you make a request with an invalid Access Token you’ll need to reauthorize the app.