# Code 300: Request Body should be a valid JSON object while creating meeting link

**URL:** <https://devforum.zoom.us/t/code-300-request-body-should-be-a-valid-json-object-while-creating-meeting-link/77142>\
**Category:** Meetings\
**Created:** [October 9, 2022, 12:56am UTC](https://devforum.zoom.us/t/code-300-request-body-should-be-a-valid-json-object-while-creating-meeting-link/77142 "2022-10-09T00:56:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hmshah.1984](https://avatars.discourse-cdn.com/v4/letter/h/45deac/32.png) [@hmshah.1984](https://devforum.zoom.us/u/hmshah.1984)\
**Post date:** [October 9, 2022, 12:56am UTC](https://devforum.zoom.us/t/code-300-request-body-should-be-a-valid-json-object-while-creating-meeting-link/77142/1 "2022-10-09T00:56:15Z")

</div>

### Format Your New Topic as Follows:

**API Endpoint(s) and/or Zoom API Event(s)**  
[https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/meetingCreate](https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/meetingCreate)  
[https://marketplace.zoom.us/docs/guides/auth/oauth/](https://marketplace.zoom.us/docs/guides/auth/oauth/)

**Description**  
I am using OAuth type app and we would like our end users (recruiters) to create zoom meeting link from our website and share it with candidate to schedule an interview.

To do so, I am following below article:  
[https://marketplace.zoom.us/docs/guides/auth/oauth/](https://marketplace.zoom.us/docs/guides/auth/oauth/)

I am stuck while calling below API:  
[https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/meetingCreate](https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/meetingCreate)

**Error?**  
When I pass token and meeting request details, I am getting error message in post man:  
400 Bad Request.  
Code: 300  
Message: Request Body should be a valid JSON object.

I verified that json is in valid format and below is cURL for reference.

cURL:  
curl --location --request POST ‘[https://api.zoom.us/v2/users/me/meetings](https://api.zoom.us/v2/users/me/meetings)’   
–header ‘Authorization: Bearer [REDACTED]’   
–header ‘Content-Type: application/json’   
–header ‘Cookie: TS018dd1ba=01ade282b0400749d5cd032c22f3659903441491e779049d4d23bd9884a9087dcd4bacdf31e09d3d6287f1cdc3afb1320c463c3e15; \_\_cf\_bm=hYSAaaXo0rhbmDyRXOVdNcAbR6wYfoIcF9P7tnhy5Sw-1665276171-0-ASmtPzQm7XC1+PBhAH1DHw3kKdrIfkHMv5RYdNSmU+x/PXMhUmN0SHi4SwB3bAoVC2SS7kcsM67wlQ998qxyxrI=; \_zm\_mtk\_guid=39c5f417ca1a408c87f463d69ddfbd0c; \_zm\_page\_auth=us05\_c\_5B8fYgDPQmO9SZ6NI55YRw; \_zm\_ssid=us05\_c\_dvYkhEV6TkCeWTqyuoJc7A; \_zm\_visitor\_guid=39c5f417ca1a408c87f463d69ddfbd0c; TS01f92dc5=01ade282b0400749d5cd032c22f3659903441491e779049d4d23bd9884a9087dcd4bacdf31e09d3d6287f1cdc3afb1320c463c3e15; cred=EE482C2437DAAB4DB569BA5440CCD06B’   
–data-raw ‘{  
“agenda”: “Interview scheduled with Candidate”,  
“default\_password”: false,  
“duration”: 30,  
“password”: “ddj4S49efe”,  
“pre\_schedule”: false,  
“schedule\_for”: “[REDACTED]”,  
“settings”: {  
“allow\_multiple\_devices”: false,  
“alternative\_hosts”: null,  
“alternative\_hosts\_email\_notification”: null,  
“approval\_type”: 0,  
“audio”: 0,  
“authentication\_domains”: null,  
“authentication\_option”: null,  
“auto\_recording”: 0,  
“calendar\_type”: 1,  
“close\_registration”: false,  
“contact\_email”: null,  
“contact\_name”: null,  
“email\_notification”: false,  
“encryption\_type”: 0,  
“focus\_mode”: false,  
“global\_dial\_in\_countries”: null,  
“host\_video”: false,  
“in\_meeting”: false,  
“jbh\_time”: 0,  
“join\_before\_host”: true,  
“meeting\_authentication”: false,  
“meeting\_invitees”: {  
“email”: “[REDACTED]”  
},  
“mute\_upon\_entry”: false,  
“participant\_video”: false,  
“private\_meeting”: false,  
“registrants\_confirmation\_email”: false,  
“registrants\_email\_notification”: false,  
“registration\_type”: 0,  
“show\_share\_button”: false,  
“use\_pmi”: false,  
“waiting\_room”: false,  
“watermark”: false,  
“host\_save\_video\_order”: false,  
“alternative\_host\_update\_polls”: false  
},  
“start\_time”: “2022-10-09T00:30:25.044Z”,  
“template\_id”: null,  
“timezone”: null,  
“topic”: “Interview scheduled”,  
“type”: 2  
}’

---

<div class="post-metadata">

**Author:** ![hmshah.1984](https://avatars.discourse-cdn.com/v4/letter/h/45deac/32.png) [@hmshah.1984](https://devforum.zoom.us/u/hmshah.1984)\
**Post date:** [October 10, 2022, 1:16pm UTC](https://devforum.zoom.us/t/code-300-request-body-should-be-a-valid-json-object-while-creating-meeting-link/77142/2 "2022-10-10T13:16:17Z")

</div>

Hi Support team,

Can you please review my post and help me remove roadblock?

Basically, I am getting Request Body should be a valid JSON object error while calling creating meeting link zoom API. I have put details of my request in earlier post.

Please help to resolve this matter ASAP.

Thanks,  
Hardik

---

<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:** [October 10, 2022, 1:37pm UTC](https://devforum.zoom.us/t/code-300-request-body-should-be-a-valid-json-object-while-creating-meeting-link/77142/3 "2022-10-10T13:37:04Z")

</div>

Hi @hmshah.1984  
Thanks for reaching out to the Zoom Developer Forum, I am happy to help here!  
I took a look into the request body you are sending, and it looks like you are passing the wrong  
ecryption\_type, if you look into our Docs, it has to be a string and you are passing an integer.

Also for the meeting\_invitees, you should be sending an array of objects, like so:

```
"meeting_invitees": [
  {
    "email": "jchill@example.com"
  }
],

```

could you please try making these changes and try again.  
Best,  
elisa

---

<div class="post-metadata">

**Author:** ![hmshah.1984](https://avatars.discourse-cdn.com/v4/letter/h/45deac/32.png) [@hmshah.1984](https://devforum.zoom.us/u/hmshah.1984)\
**Post date:** [October 10, 2022, 1:56pm UTC](https://devforum.zoom.us/t/code-300-request-body-should-be-a-valid-json-object-while-creating-meeting-link/77142/4 "2022-10-10T13:56:01Z")

</div>

Thanks!  
It got resolved by using example json provided in your documentation.

---

<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:** [October 10, 2022, 3:34pm UTC](https://devforum.zoom.us/t/code-300-request-body-should-be-a-valid-json-object-while-creating-meeting-link/77142/5 "2022-10-10T15:34:24Z")

</div>

Happy to hear that worked! @hmshah.1984
