# Zoom Webinar API giving error

**URL:** <https://devforum.zoom.us/t/zoom-webinar-api-giving-error/72148>\
**Category:** API and Webhooks\
**Created:** [July 13, 2022, 12:50pm UTC](https://devforum.zoom.us/t/zoom-webinar-api-giving-error/72148 "2022-07-13T12:50:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![najararifahmad](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/najararifahmad/32/39220_2.png) [@najararifahmad](https://devforum.zoom.us/u/najararifahmad)\
**Post date:** [July 13, 2022, 12:50pm UTC](https://devforum.zoom.us/t/zoom-webinar-api-giving-error/72148/1 "2022-07-13T12:50:36Z")

</div>

**Description**  
_Not able to create Webinar._

**Error?**  
_TInvalid api key or secret._

**API Endpoint/s?**  
_/users/{userId}/webinars?userId={userId}_

**How To Reproduce**  
_Steps to reproduce the behavior:_  
_1. Request URL: [https://api.zoom.us/v2/users/najararifahmad@gmail.com/webinars?userId=najararifahmad@gmail.com](https://api.zoom.us/v2/users/najararifahmad@gmail.com/webinars?userId=najararifahmad@gmail.com)_  
_2. Bearer_  
_3. Invalid api key or secret._

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [July 14, 2022, 12:37pm UTC](https://devforum.zoom.us/t/zoom-webinar-api-giving-error/72148/2 "2022-07-14T12:37:17Z")

</div>

Hi @najararifahmad  
Thanks for reaching out to the Zoom Developer Forum, I am happy to help here!  
It looks like your request URL is incorrect and it should look something like this:  
[https://api.zoom.us/v2/users/najararifahmad@gmail.com/webinars](https://api.zoom.us/v2/users/najararifahmad@gmail.com/webinars)

Let me know if this helps

---

<div class="post-metadata">

**Author:** ![najararifahmad](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/najararifahmad/32/39220_2.png) [@najararifahmad](https://devforum.zoom.us/u/najararifahmad)\
**Post date:** [July 14, 2022, 12:46pm UTC](https://devforum.zoom.us/t/zoom-webinar-api-giving-error/72148/3 "2022-07-14T12:46:19Z")

</div>

Hi @elisa.zoom  
I have modified the request url as follows:  
[https://api.zoom.us/v2/users/najararifahmad@gmail.com/webinars](https://api.zoom.us/v2/users/najararifahmad@gmail.com/webinars)

But I still gives me the error:  
{  
“code”: 200,  
“message”: “Invalid api key or secret.”  
}

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [July 14, 2022, 1:05pm UTC](https://devforum.zoom.us/t/zoom-webinar-api-giving-error/72148/4 "2022-07-14T13:05:42Z")

</div>

Hey @najararifahmad  
Thanks for confirming this!  
This error could be related to the way you are generating your Bearer token.  
Are you using a JWT token for this?

---

<div class="post-metadata">

**Author:** ![najararifahmad](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/najararifahmad/32/39220_2.png) [@najararifahmad](https://devforum.zoom.us/u/najararifahmad)\
**Post date:** [July 14, 2022, 1:12pm UTC](https://devforum.zoom.us/t/zoom-webinar-api-giving-error/72148/5 "2022-07-14T13:12:40Z")

</div>

Hi @elisa.zoom

I am using the below url for generating the JWT token.  
[https://zoom.us/oauth/token](https://zoom.us/oauth/token)

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [July 15, 2022, 1:27pm UTC](https://devforum.zoom.us/t/zoom-webinar-api-giving-error/72148/6 "2022-07-15T13:27:44Z")

</div>

Are you using the Server to Server OAuth app?  
If so, here is a guide that can help you:

> [@How to user Server-to-Sever OAuth app with Postman](https://devforum.zoom.us/t/how-to-user-server-to-sever-oauth-app-with-postman/70848):
>
> 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](https://marketplace.zoom.us/docs/guides/build/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…

Cheers,  
Elisa

---

<div class="post-metadata">

**Author:** ![najararifahmad](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/najararifahmad/32/39220_2.png) [@najararifahmad](https://devforum.zoom.us/u/najararifahmad)\
**Post date:** [July 18, 2022, 10:42am UTC](https://devforum.zoom.us/t/zoom-webinar-api-giving-error/72148/7 "2022-07-18T10:42:03Z")

</div>

Hi elisa.zoom

I have done this step and now I am getting the following result:  
Webinar plan is missing. You must subscribe to the webinar plan and enable webinars for this user in order to perform this action: dOCuS\_DfRc2m99xo\_fajFA.

Can you please share the link with me where I can purchase the appropriate Webinar plan?

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [July 19, 2022, 2:40pm UTC](https://devforum.zoom.us/t/zoom-webinar-api-giving-error/72148/8 "2022-07-19T14:40:42Z")

</div>

Hey @najararifahmad  
Sure, you can look here:

> **[Video Conferencing, Web Conferencing, Webinars, Screen Sharing](https://zoom.us/buy?plan=pro&period=annual&from=webinar500&addon_period=annual#zp_v2)**
>
> Zoom is the leader in modern enterprise video communications, with an easy, reliable cloud platform for video and audio conferencing, chat, and webinars across mobile, desktop, and room systems. Zoom Rooms is the original software-based conference...

Find more help here:

> **[Getting started with billing management](https://support.zoom.us/hc/en-us/articles/201363263-Getting-started-with-billing-management)**
>
> You can use the Billing page in the Zoom web portal to view your current plan, billing, and invoice history. You can also update your subscription and payment information. 
> 
> This article covers:
> 
> 
> ...

Cheers,  
Elisa

---

<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 19, 2022, 12:41am UTC](https://devforum.zoom.us/t/zoom-webinar-api-giving-error/72148/9 "2022-08-19T00:41:28Z")

</div>

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