Invalid access token calling Zoom API from Apex-Salesforce

Description
I am getting Invalid access token error while calling the endpoint https://api.zoom.us/v2/users from Apex. I have already checked the API Key and Secret.

Error
Response ={“code”:124,“message”:“Invalid access token.”} 401

Which App Type (OAuth / Chatbot / JWT / Webhook)?
JWT. Have created app and got API Key and Secret.

Which Endpoint/s?
https://api.zoom.us/v2/users

How To Reproduce (If applicable)
Steps to reproduce the behavior:

  1. Request URL / Headers (without credentials) / Body : https://api.zoom.us/v2/users
  2. See error: Response ={“code”:124,“message”:“Invalid access token.”} 401

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

Additional context
Add any other context about the problem here.

Hey @vrattan,

How are you generating the JWT Token? Can you try with the JWT Token generated for you in your JWT App settings on the “App Credentials” page?

Thanks,
Tommy

Hi Tommy,

This is working fine for me now. Used an Apex classes to generate token. Thanks for your help.

Vandana

1 Like

Happy to hear you got it working! :slight_smile:

Thanks,
Tommy

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