Invalid access token when calling API endpoint /v2/webinars/{id}/registrants

Using this template helps us debug your issues more effectively :slight_smile:

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:

  1. Request URL / Headers (without credentials) / Body
  2. See error

Screenshots (If applicable)
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Hey @rupak,

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.

Thanks,
Max

Hello Max,
I was using the PHP wrapper GitHub - espresso-dev/zoom-php: A simple PHP class for accessing the Zoom API and i had to make changes to it to call the API correctly. Now i am getting proper response.

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.

Best Regards,
Rupak

Hey @rupak,

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.

Let me know if that helps.

Thanks,
Max

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