# Create meeting API is responsed back with Request Body should be a valid JSON object

**URL:** <https://devforum.zoom.us/t/create-meeting-api-is-responsed-back-with-request-body-should-be-a-valid-json-object/22459>\
**Category:** API and Webhooks\
**Created:** [June 26, 2020, 9:48am UTC](https://devforum.zoom.us/t/create-meeting-api-is-responsed-back-with-request-body-should-be-a-valid-json-object/22459 "2020-06-26T09:48:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![umeshsamant5001](https://avatars.discourse-cdn.com/v4/letter/u/c0e974/32.png) [@umeshsamant5001](https://devforum.zoom.us/u/umeshsamant5001)\
**Post date:** [June 26, 2020, 9:48am UTC](https://devforum.zoom.us/t/create-meeting-api-is-responsed-back-with-request-body-should-be-a-valid-json-object/22459/1 "2020-06-26T09:48:33Z")

</div>

**Description**  
A clear and concise description of what the question is.  
Getting Request Body should be a valid JSON object when create meeting API is called through PHP, But same jason generated through application works well in Postman  
**Error**  
The full error message or issue you are running into.

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
Knowing the endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.  
I am using JWT  
**Which Endpoint/s?**  
Knowing the API endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.  
[https://api.zoom.us/v2/users/abc@gmail.com/meetings](https://api.zoom.us/v2/users/abc@gmail.com/meetings)  
**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:

1. Request URL / Headers (without credentials) / Body
2. See error

**Screenshots (If applicable)**  
If applicable, add screenshots to help explain your problem.  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/3/37acc59801d16167c0072cc6c0a219efee4b7893.png)  
**Additional context**  
Add any other context about the problem here.

Here is the json created and passed to API request and works well in postman but gives above error,

#### json

{  
“topic”:“Akkalkot Darshan”,  
“type”:“8”,  
“start\_time”:“2020-06-26T14:30:00Z”,  
“duration”:60,  
“password”:“sws”,  
“recurrence”:{  
“type”:“1”,“repeat\_interval”:“1”,“weekly\_days”:“4”,“monthly\_day”:30,“monthly\_week”:“4”,“monthly\_week\_day”:“4”,“end\_times”:1,“end\_date\_time”:“2020-07-04T16:20:00Z”},  
“settings”:{  
“host\_video”:true,  
“participant\_video”:true,  
“cn\_meeting”:false  
,“in\_meeting”:false  
,“join\_before\_host”:false,  
“mute\_upon\_entry”:false,  
“watermark”:false,  
“use\_pmi”:false,  
“approval\_type”:0,  
“registration\_type”:1,  
“audio”:“both”,  
“auto\_recording”:“none”,  
“alternative\_hosts”:"",  
“close\_registration”:true,  
“waiting\_room”:true,  
“contact\_name”:“Umesh”,  
“[contact\_email":"abc@gmail.com](mailto:contact_email%22:%22abc@gmail.com)”,  
“registrants\_email\_notification”:“true”,  
“meeting\_authentication”:true,  
“authentication\_option”:"",  
“authentication\_domains”:""  
}  
}

---

<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:** [June 29, 2020, 10:18pm UTC](https://devforum.zoom.us/t/create-meeting-api-is-responsed-back-with-request-body-should-be-a-valid-json-object/22459/2 "2020-06-29T22:18:53Z")

</div>

Hey @umeshsamant5001,

There were a few [fields](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate) that you set the wrong types for. Make sure to double check you are setting integers for integers and booleans for booleans.

This JSON worked for me:

```json
{
  "topic": "Akkalkot Darshan",
  "type": 8,
  "start_time": "2020-06-26T14:30:00Z",
  "duration": 60,
  "password": "123abc",
  "recurrence": {
    "type": "1",
    "repeat_interval": "1",
    "weekly_days": "4",
    "monthly_day": 30,
    "monthly_week": "4",
    "monthly_week_day": "4",
    "end_times": 1,
    "end_date_time": "2020-07-04T16:20:00Z"
  },
  "settings": {
    "host_video": true,
    "participant_video": true,
    "cn_meeting": false,
    "in_meeting": false,
    "join_before_host": false,
    "mute_upon_entry": false,
    "watermark": false,
    "use_pmi": false,
    "approval_type": 0,
    "registration_type": 1,
    "audio": "both",
    "auto_recording": "none",
    "alternative_hosts": "",
    "close_registration": true,
    "waiting_room": true,
    "contact_name": "Umesh",
    "contact_email": "abc@gmail.com",
    "registrants_email_notification": true,
    "meeting_authentication": true,
    "authentication_option": "",
    "authentication_domains": ""
  }
}

```

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![umeshsamant5001](https://avatars.discourse-cdn.com/v4/letter/u/c0e974/32.png) [@umeshsamant5001](https://devforum.zoom.us/u/umeshsamant5001)\
**Post date:** [June 30, 2020, 9:12am UTC](https://devforum.zoom.us/t/create-meeting-api-is-responsed-back-with-request-body-should-be-a-valid-json-object/22459/3 "2020-06-30T09:12:43Z")

</div>

Thanks Tommy for your valuable time.  
I was wondering why same jason input works well in postman but fails through API request from php application.  
Some where it should be specified where the exact problem is. Because any one would prepare the json which works well in postman or any other tool for get/post zoom API request.  
Thank you so much for the solution.

Umesh…

---

<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 1, 2020, 9:52pm UTC](https://devforum.zoom.us/t/create-meeting-api-is-responsed-back-with-request-body-should-be-a-valid-json-object/22459/4 "2020-07-01T21:52:34Z")

</div>

Hey @umeshsamant5001,

It could be a case of an extra " or something in your PHP Application.

Happy to help!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 10:32pm UTC](https://devforum.zoom.us/t/create-meeting-api-is-responsed-back-with-request-body-should-be-a-valid-json-object/22459/5 "2020-08-21T22:32:09Z")

</div>

Closed on August 21, 2020, 10:32pm UTC


