# Getting error "Invalid api key or secret" while creating webinar using api with key and secret key from the valid account

**URL:** <https://devforum.zoom.us/t/getting-error-invalid-api-key-or-secret-while-creating-webinar-using-api-with-key-and-secret-key-from-the-valid-account/6313>\
**Category:** API and Webhooks\
**Created:** [October 18, 2019, 9:49am UTC](https://devforum.zoom.us/t/getting-error-invalid-api-key-or-secret-while-creating-webinar-using-api-with-key-and-secret-key-from-the-valid-account/6313 "2019-10-18T09:49:18Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashishk](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@ashishk](https://devforum.zoom.us/u/ashishk)\
**Post date:** [October 18, 2019, 9:49am UTC](https://devforum.zoom.us/t/getting-error-invalid-api-key-or-secret-while-creating-webinar-using-api-with-key-and-secret-key-from-the-valid-account/6313/1 "2019-10-18T09:49:18Z")

</div>

Hi,

Actually, we are using some other license details with version 1 api methods for creating the webinar and meeting and that is still working fine.

Now, we have using the free trial version license and its key and secret key to create webinar and meeting with the version v1 api methods and getting this error “Invalid api key or secret.”

Can you track the given request and find out the where is the gap actually. Please guide us on the same.

Please guide us on the same.

zoom id : [ashishk@gc-solutions.net](mailto:ashishk@gc-solutions.net)  
Api Key : 0MD3jMTVRIG\_OxbMC5Fi3g  
Api Secret : `redacted`  
Host Id : kknbMs3STjqh3fYec58I9g

Request :  
[https://api.zoom.us/v1/webinar/create?api\_key=0MD3jMTVRIG\_OxbMC5Fi3g&api\_secret=dMtMtNrew8WqsUbPsIHcs3d5BZI0rhajB9wG&topic=anand&type=5&start\_time=2019-09-30T13:42:00ZZ&duration=30&host\_id=kknbMs3STjqh3fYec58I9g&timezone=GMT+5:30](https://api.zoom.us/v1/webinar/create?api_key=0MD3jMTVRIG_OxbMC5Fi3g&api_secret=dMtMtNrew8WqsUbPsIHcs3d5BZI0rhajB9wG&topic=anand&type=5&start_time=2019-09-30T13:42:00ZZ&duration=30&host_id=kknbMs3STjqh3fYec58I9g&timezone=GMT+5:30) &option\_registration = true

Output Error:  
{“error”:{“code”:200,“message”:“Invalid api key or secret.”}}

---

<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:** [October 18, 2019, 4:47pm UTC](https://devforum.zoom.us/t/getting-error-invalid-api-key-or-secret-while-creating-webinar-using-api-with-key-and-secret-key-from-the-valid-account/6313/2 "2019-10-18T16:47:27Z")

</div>

Hey @ashishk,

Try switching your user to “Pro” in your [user settings](https://zoom.us/account/user). You have the free trail which is good, but your user needs to be at least a pro user to use APIs (free while in free trial).

 ![04%20AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/6/6bda3a0a33370ad92790306d0eca3dfd3340a9f2.png)

Let me know if it works after you make this change.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![ashishk](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@ashishk](https://devforum.zoom.us/u/ashishk)\
**Post date:** [December 9, 2019, 6:59am UTC](https://devforum.zoom.us/t/getting-error-invalid-api-key-or-secret-while-creating-webinar-using-api-with-key-and-secret-key-from-the-valid-account/6313/3 "2019-12-09T06:59:07Z")

</div>

Hi Tommy,

Still, I have getting same error. Although profile is upgraded from ‘Basic’ to ‘Pro’.

Regards,  
Priyanka

---

<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:** [December 9, 2019, 8:46pm UTC](https://devforum.zoom.us/t/getting-error-invalid-api-key-or-secret-while-creating-webinar-using-api-with-key-and-secret-key-from-the-valid-account/6313/4 "2019-12-09T20:46:35Z")

</div>

Hey @ashishk,

Please try using v2 of our API and let me know if you still see the error:

[https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinarcreate](https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinarcreate)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![ashishk](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@ashishk](https://devforum.zoom.us/u/ashishk)\
**Post date:** [December 10, 2019, 7:57am UTC](https://devforum.zoom.us/t/getting-error-invalid-api-key-or-secret-while-creating-webinar-using-api-with-key-and-secret-key-from-the-valid-account/6313/5 "2019-12-10T07:57:37Z")

</div>

Hi Tommy,

Still not working kindly find the screenshot:

 ![Zoom](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/4/4c7562e2f7107b06efa896d969caa88a99b1f865.png)

Regards,  
Priyanka

---

<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:** [December 10, 2019, 7:09pm UTC](https://devforum.zoom.us/t/getting-error-invalid-api-key-or-secret-while-creating-webinar-using-api-with-key-and-secret-key-from-the-valid-account/6313/6 "2019-12-10T19:09:47Z")

</div>

Hey @ashishk,

Please try subsititting the {userId} with `me`.

The request will look like this: `https://api.zoom.us/v2/users/me/webinars`.

Let me know if that works!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![ashishk](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@ashishk](https://devforum.zoom.us/u/ashishk)\
**Post date:** [December 11, 2019, 5:19am UTC](https://devforum.zoom.us/t/getting-error-invalid-api-key-or-secret-while-creating-webinar-using-api-with-key-and-secret-key-from-the-valid-account/6313/8 "2019-12-11T05:19:55Z")

</div>

Hi Tommy,

I have tried, still not working. Kindly find the details:

zoom id : [ashishk@gc-solutions.net](mailto:ashishk@gc-solutions.net)  
Api Key : 0MD3jMTVRIG\_OxbMC5Fi3g  
Host Id : Zhhey1DzR\_qgA4RfQmcZZg

Regards,  
Priyanka

---

<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:** [December 11, 2019, 6:22pm UTC](https://devforum.zoom.us/t/getting-error-invalid-api-key-or-secret-while-creating-webinar-using-api-with-key-and-secret-key-from-the-valid-account/6313/9 "2019-12-11T18:22:37Z")

</div>

Hey @ashishk,

How are you setting the access\_token?

It needs to be set in the Headers of the request like this:

`"Authorization": "Bearer ACCESS_TOKEN_HERE"`

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![ashishk](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@ashishk](https://devforum.zoom.us/u/ashishk)\
**Post date:** [December 19, 2019, 11:30am UTC](https://devforum.zoom.us/t/getting-error-invalid-api-key-or-secret-while-creating-webinar-using-api-with-key-and-secret-key-from-the-valid-account/6313/10 "2019-12-19T11:30:43Z")

</div>

Hi Tommy,

Still, I am getting same error PFA screenshot:

 ![zoom1](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/7/7f2e3499ab30310c89de3d09124f6a6edc0b6539.png)

Regards,  
Priyanka

---

<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:** [December 19, 2019, 9:04pm UTC](https://devforum.zoom.us/t/getting-error-invalid-api-key-or-secret-while-creating-webinar-using-api-with-key-and-secret-key-from-the-valid-account/6313/11 "2019-12-19T21:04:25Z")

</div>

Hey @ashishk,

Can you schedule a Zoom meeting with me here so I can help further?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![ashishk](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@ashishk](https://devforum.zoom.us/u/ashishk)\
**Post date:** [December 23, 2019, 12:13pm UTC](https://devforum.zoom.us/t/getting-error-invalid-api-key-or-secret-while-creating-webinar-using-api-with-key-and-secret-key-from-the-valid-account/6313/12 "2019-12-23T12:13:39Z")

</div>

Hi,

Thanks for your response. Can we schedule the zoom meeting between 10:00 AM to 7:00PM IST.

Regards  
Priyanka

---

<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:** [December 23, 2019, 5:29pm UTC](https://devforum.zoom.us/t/getting-error-invalid-api-key-or-secret-while-creating-webinar-using-api-with-key-and-secret-key-from-the-valid-account/6313/13 "2019-12-23T17:29:51Z")

</div>

Hey @ashishk,

Can you please try creating a [new Zoom OAuth app here](https://marketplace.zoom.us/develop/create), and then try again?

Here are instructions on how to setup your app and the “Send a test request” feature on our docs:

> [@API Integration Development](https://devforum.zoom.us/t/api-integration-development/5249/4):
>
> Hey @catalyze.business, Just to confirm, you are using the [OAuth App Type](https://marketplace.zoom.us/docs/guides/getting-started/app-types/create-oauth-app) credentials? Here are the steps I took to successfully call the GET Retrieve Meeting Participants endpoint in the sandbox, [Create an Account-level OAuth app](https://marketplace.zoom.us/develop/create). Use https://zoom.us as redirect and whitelist url. Also add the dashboard:read:admin scope on the Scopes page. [Click the purple “Get Access Token” button here](https://marketplace.zoom.us/docs/api-reference/zoom-api/dashboards/dashboardmeetingparticipants#send-a-test-request). Enter your OAuth Apps Client and Secret in the respective inputs and click…

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![ashishk](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@ashishk](https://devforum.zoom.us/u/ashishk)\
**Post date:** [December 30, 2019, 12:03pm UTC](https://devforum.zoom.us/t/getting-error-invalid-api-key-or-secret-while-creating-webinar-using-api-with-key-and-secret-key-from-the-valid-account/6313/14 "2019-12-30T12:03:14Z")

</div>

Hi,

As mentioned, i had follow mentioned steps but still not working. PFA screenshot

 ![zoom30dec](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/e/e8573b1338d090844ad985538029ee22af2ae89f.png)

Regards,  
Priyanka

---

<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:** [December 30, 2019, 5:03pm UTC](https://devforum.zoom.us/t/getting-error-invalid-api-key-or-secret-while-creating-webinar-using-api-with-key-and-secret-key-from-the-valid-account/6313/15 "2019-12-30T17:03:15Z")

</div>

Hey @ashishk,

Can you schedule a Zoom meeting with me here so I can help further?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![amol.garud84](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/amol.garud84/32/9597_2.png) [@amol.garud84](https://devforum.zoom.us/u/amol.garud84)\
**Post date:** [June 2, 2020, 12:02pm UTC](https://devforum.zoom.us/t/getting-error-invalid-api-key-or-secret-while-creating-webinar-using-api-with-key-and-secret-key-from-the-valid-account/6313/16 "2020-06-02T12:02:30Z")

</div>

i am also getting same error.kindly help me out with this.

thanks in advance

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/1/1d82f71d3a2ddd0d9547a2ebfbc0747496db3bd7.png)

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [June 3, 2020, 6:42am UTC](https://devforum.zoom.us/t/getting-error-invalid-api-key-or-secret-while-creating-webinar-using-api-with-key-and-secret-key-from-the-valid-account/6313/17 "2020-06-03T06:42:40Z")

</div>

Hi @amol.garud84,

How are you generating your API Key/Secret?

You can access a test one for your account here[1] or generate a new one programmatically here[2].

1 - [https://marketplace.zoom.us/docs/guides/auth/jwt#testing](https://marketplace.zoom.us/docs/guides/auth/jwt#testing)  
2 - [https://marketplace.zoom.us/docs/guides/auth/jwt#generating-jwts](https://marketplace.zoom.us/docs/guides/auth/jwt#generating-jwts)

Let us know if this helps.

Thanks
