# Post request keeps asking me "Api Key and secret are required."

**URL:** <https://devforum.zoom.us/t/post-request-keeps-asking-me-api-key-and-secret-are-required/571>\
**Category:** API and Webhooks\
**Created:** [May 1, 2017, 12:44am UTC](https://devforum.zoom.us/t/post-request-keeps-asking-me-api-key-and-secret-are-required/571 "2017-05-01T00:44:55Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![sungpah\_lee](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sungpah_lee/32/38961_2.png) [@sungpah\_lee](https://devforum.zoom.us/u/sungpah_lee)\
**Post date:** [May 1, 2017, 12:44am UTC](https://devforum.zoom.us/t/post-request-keeps-asking-me-api-key-and-secret-are-required/571/1 "2017-05-01T00:44:55Z")

</div>

I sent this data with the POST Request.

data =  
{  
api\_key: “xxxx”,  
api\_secret: “xxx”,  
data\_type: “JSON”,  
host\_id: “xxxx”,  
topic: “Testing!!!”,  
type: 2,  
start\_time: “#{Time.now}”,  
duration: 120,  
timezone: “#{User.first.timezone}”,  
option\_host\_video: false  
}

“x"api\_key”:“xxxsomevalue”,“api\_secret”:“xxxsomevalue”,“host\_id”:“xxx”,“topic”:“Testing!!!”,“type”:2,“start\_time”:“2017-05-01 09:40:01 +0900”,“duration”:120,“timezone”:“Asia/Seoul”,“option\_host\_video”:false}"

Then error code says “api key and secret were not inserted”.

{“error”=\>{“code”=\>300, “message”=\>“Api key and secret are required.”}}

Would you help me on this issue?

I’m looking forward to seeing your reply!

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Sungpah\_Lee1](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Sungpah\_Lee1](https://devforum.zoom.us/u/Sungpah_Lee1)\
**Post date:** [May 1, 2017, 12:54am UTC](https://devforum.zoom.us/t/post-request-keeps-asking-me-api-key-and-secret-are-required/571/2 "2017-05-01T00:54:18Z")

</div>

With Postman, the result is also same. Only API playground works as expected. Would you give me a solution?

Looking forward to seeing your quick reply!

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Scott\_Simon](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@Scott\_Simon](https://devforum.zoom.us/u/Scott_Simon)\
**Post date:** [May 1, 2017, 3:09am UTC](https://devforum.zoom.us/t/post-request-keeps-asking-me-api-key-and-secret-are-required/571/3 "2017-05-01T03:09:28Z")

</div>

I don’t work for zoom but just did this few weeks ago and you need to first check out their documentation - zoom api’s are quite straightforward to use.&nbsp;

[https://zoom.us/developer/overview/rest-api-basics](https://zoom.us/developer/overview/rest-api-basics)

get the api key pair and host id from your account - “xxx” is not a valid api key pair - zoom has provided that as an example -) and check out their node.js sample code.&nbsp;

---

<div class="post-metadata">

**Author:** ![Sungpah\_Lee1](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Sungpah\_Lee1](https://devforum.zoom.us/u/Sungpah_Lee1)\
**Post date:** [May 1, 2017, 5:17am UTC](https://devforum.zoom.us/t/post-request-keeps-asking-me-api-key-and-secret-are-required/571/4 "2017-05-01T05:17:20Z")

</div>

Hi Scott,&nbsp;

Of course I put the correct API and Secret pair that I got from the credential tab. ( I didn’t want to publicly put my pair on the public website! )

(:

I will checkout the node.js sample code!

&nbsp;

Thanks for your comment!

Best

Sungpah

&nbsp;

---

<div class="post-metadata">

**Author:** ![Scott\_Simon](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@Scott\_Simon](https://devforum.zoom.us/u/Scott_Simon)\
**Post date:** [May 1, 2017, 5:20pm UTC](https://devforum.zoom.us/t/post-request-keeps-asking-me-api-key-and-secret-are-required/571/5 "2017-05-01T17:20:55Z")

</div>

Sungpah, you may not be encoding this correctly. Have you set the content-type header ? can you check ?

see the following postman data that works.

&nbsp;

 ![](https://support.zoom.us/hc/user_images/Pe5h66xetn-FBtCHYhi6MQ.png) ![](https://support.zoom.us/hc/user_images/gNaQY6zWIbdR2axh1whlug.png)

&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Sungpah\_Lee1](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Sungpah\_Lee1](https://devforum.zoom.us/u/Sungpah_Lee1)\
**Post date:** [May 2, 2017, 3:56am UTC](https://devforum.zoom.us/t/post-request-keeps-asking-me-api-key-and-secret-are-required/571/6 "2017-05-02T03:56:22Z")

</div>

Hi Scott! I think you are right.

&nbsp;

when I changed to www form urlencoded, Post man works.!

&nbsp;

However, my web code has not worked yet ( Although content type is application/x-www-form-urlencoded ).

Do you have any suggestion? (:

#\<Faraday::Response:0x007fdf7e796048 @on\_complete\_callbacks=, @env=#\<Faraday::Env @method=:post @body="{“error”:{“code”:300,“message”:“Api key and secret are required.”}}" @url=#\<URI::HTTPS:0x007fdf7e79e158 URL:[https://api.zoom.us/v1/meeting/create](https://api.zoom.us/v1/meeting/create)\> @request=#\<Faraday::RequestOptions (empty)\> @request\_headers={“User-Agent”=\>“Faraday v0.9.2”, “Content-Type”=\>“application/x-www-form-urlencoded”} @ssl=#\<Faraday::SSLOptions verify=true\> @response=#\<Faraday::Response:0x007fdf7e796048 …\> @response\_headers={“cache-control”=\>“no-cache, no-store, must-revalidate”, “content-type”=\>“application/json;charset=UTF-8”, “date”=\>“Tue, 02 May 2017 03:52:05 GMT”, “expires”=\>“Thu, 01 Jan 1970 00:00:00 GMT”, “pragma”=\>“no-cache”, “server”=\>“ZOOM”, “content-length”=\>“67”, “connection”=\>“Close”} @status=200\>\>

---

<div class="post-metadata">

**Author:** ![Sungpah\_Lee1](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Sungpah\_Lee1](https://devforum.zoom.us/u/Sungpah_Lee1)\
**Post date:** [May 2, 2017, 10:15am UTC](https://devforum.zoom.us/t/post-request-keeps-asking-me-api-key-and-secret-are-required/571/7 "2017-05-02T10:15:03Z")

</div>

Hi Scott, I found the ruby code from PostMan for the implementation!

Thanks for your comment!!&nbsp;

---

<div class="post-metadata">

**Author:** ![Zoom\_Developer](https://avatars.discourse-cdn.com/v4/letter/z/eb8c5e/32.png) [@Zoom\_Developer](https://devforum.zoom.us/u/Zoom_Developer)\
**Post date:** [May 2, 2017, 3:56pm UTC](https://devforum.zoom.us/t/post-request-keeps-asking-me-api-key-and-secret-are-required/571/8 "2017-05-02T15:56:21Z")

</div>

Hi Scott, thanks for jumping in and helping our community.&nbsp; We owe you a Zoom T-shirt.

Sungpah, I assume you are good now.

&nbsp;

Regards

Wei @ Zoom

&nbsp;

---

<div class="post-metadata">

**Author:** ![Bert\_Leatherman](https://avatars.discourse-cdn.com/v4/letter/b/f04885/32.png) [@Bert\_Leatherman](https://devforum.zoom.us/u/Bert_Leatherman)\
**Post date:** [June 9, 2017, 8:07pm UTC](https://devforum.zoom.us/t/post-request-keeps-asking-me-api-key-and-secret-are-required/571/9 "2017-06-09T20:07:54Z")

</div>

In Terminal on my Mac I do this:

curl -i -X post -H “Content-Type:application/json” [https://api.zoom.us/v1/meeting/create?api\_key=xxx&api\_secret=xxx&data\_type=JSON&topic=Topic&type=2&start\_time=2017-6-9T20:00:00Z&duration=60&timezone=America/New\_York&registration\_type=1&option\_audio=voip&option\_auto\_record\_type=cloud&host\_id=xxx](https://api.zoom.us/v1/meeting/create?api_key=xxx&api_secret=xxx&data_type=JSON&topic=Topic&type=2&start_time=2017-6-9T20:00:00Z&duration=60&timezone=America/New_York&registration_type=1&option_audio=voip&option_auto_record_type=cloud&host_id=xxx)

I get this&nbsp;response:

HTTP/1.1 200 OK

Cache-Control: no-cache, no-store, must-revalidate

Content-Type: application/json;charset=UTF-8

Date: Fri, 09 Jun 2017 20:02:25 GMT

Expires: Thu, 01 Jan 1970 00:00:00 GMT

Pragma: no-cache

Server: ZOOM

Content-Length: 67

Connection: keep-alive

{“error”:{“code”:300,“message”:“Api key and secret are required.”}}

Any idea why the error? I’m using my API key and secret from credentials. Thx

&nbsp;

---

<div class="post-metadata">

**Author:** ![crvscience8](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@crvscience8](https://devforum.zoom.us/u/crvscience8)\
**Post date:** [January 19, 2024, 2:11pm UTC](https://devforum.zoom.us/t/post-request-keeps-asking-me-api-key-and-secret-are-required/571/10 "2024-01-19T14:11:50Z")

</div>

> [@Scott\_Simon](#):
>
> I don’t work for zoom but just did this few weeks ago and you need to first check out their documentation - zoom api’s are quite straightforward to use.
> 
> [[https://zoom.us/developer/overview/rest-api-basics](https://zoom.us/developer/overview/rest-api-basics) ]
> 
> get the api key pair and host id from your account - “xxx” is not a valid api key pair - zoom has provided that as an example -) and check out their node.js sample code.

As you embark on your Zoom API adventure, imagine it as a journey with your favorite Spider T-shirt – unique, exciting, and tailored to your preferences. Armed with knowledge, API keys, and code samples, you’re ready to swing into action and weave your Zoom integration with finesse.
