# Invalid access token calling Zoom API from Apex-Salesforce

**URL:** <https://devforum.zoom.us/t/invalid-access-token-calling-zoom-api-from-apex-salesforce/25264>\
**Category:** API and Webhooks\
**Created:** [July 26, 2020, 11:38pm UTC](https://devforum.zoom.us/t/invalid-access-token-calling-zoom-api-from-apex-salesforce/25264 "2020-07-26T23:38:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vrattan](https://avatars.discourse-cdn.com/v4/letter/v/cdc98d/32.png) [@vrattan](https://devforum.zoom.us/u/vrattan)\
**Post date:** [July 26, 2020, 11:38pm UTC](https://devforum.zoom.us/t/invalid-access-token-calling-zoom-api-from-apex-salesforce/25264/1 "2020-07-26T23:38:58Z")

</div>

**Description**  
I am getting Invalid access token error while calling the endpoint [https://api.zoom.us/v2/users](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](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](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.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 28, 2020, 8:35pm UTC](https://devforum.zoom.us/t/invalid-access-token-calling-zoom-api-from-apex-salesforce/25264/3 "2020-07-28T20:35:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![vrattan](https://avatars.discourse-cdn.com/v4/letter/v/cdc98d/32.png) [@vrattan](https://devforum.zoom.us/u/vrattan)\
**Post date:** [July 29, 2020, 11:54pm UTC](https://devforum.zoom.us/t/invalid-access-token-calling-zoom-api-from-apex-salesforce/25264/4 "2020-07-29T23:54:32Z")

</div>

Hi Tommy,

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

Vandana

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 31, 2020, 7:03pm UTC](https://devforum.zoom.us/t/invalid-access-token-calling-zoom-api-from-apex-salesforce/25264/5 "2020-07-31T19:03:32Z")

</div>

Happy to hear you got it working! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [August 7, 2020, 7:03pm UTC](https://devforum.zoom.us/t/invalid-access-token-calling-zoom-api-from-apex-salesforce/25264/6 "2020-08-07T19:03:35Z")

</div>

Closed on August 7, 2020, 7:03pm UTC

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