# Unable to create meeting via api

**URL:** <https://devforum.zoom.us/t/unable-to-create-meeting-via-api/49739>\
**Category:** API and Webhooks\
**Created:** [May 6, 2021, 11:24am UTC](https://devforum.zoom.us/t/unable-to-create-meeting-via-api/49739 "2021-05-06T11:24:03Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinit.patil](https://avatars.discourse-cdn.com/v4/letter/v/9fc29f/32.png) [@vinit.patil](https://devforum.zoom.us/u/vinit.patil)\
**Post date:** [May 6, 2021, 11:24am UTC](https://devforum.zoom.us/t/unable-to-create-meeting-via-api/49739/1 "2021-05-06T11:24:04Z")

</div>

**Description**  
Unable to create meeting via API

**Error**  
{“code”:300,“message”:“Request Body should be a valid JSON object.”}

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
JWT

**Which Endpoint/s?**  
[https://api.zoom.us/v2/users/userId/meetings](https://api.zoom.us/v2/users/userId/meetings)

**Additional context**  
i am continously getting {“code”:300,“message”:“Request Body should be a valid JSON object.”} below is the Json body. "{ ““topic””: ““Demo Zoom API””, ““type””: "“2"”, ““start\_time””: "“2021-05-06T[17:00:00](https://www.youtube.com/watch?v=wHR9zdEQ-rg)"”, ““duration””: ““120"”, ““timezone””: ““UTC””, ““agenda””: ““DEMO Meeting””}”

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [May 7, 2021, 4:21pm UTC](https://devforum.zoom.us/t/unable-to-create-meeting-via-api/49739/2 "2021-05-07T16:21:42Z")

</div>

Hi @vinit.patil,

It looks like your JSON request body is invalid—I see that you have extra quotes around each field. You will want to make sure you’re formatting your body correctly. I recommend leveraging the embedded Postman tool located in our documentation on the bottom of this page for reference 🙂

> **[Create a meeting - Meetings - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate)**
>
> Create a meeting for a user. This API has a daily rate limit of 100 requests per day. Therefore, only 100 Create a Meeting API requests are permitted wi...

Thanks!  
Will

---

<div class="post-metadata">

**Author:** ![vinit.patil](https://avatars.discourse-cdn.com/v4/letter/v/9fc29f/32.png) [@vinit.patil](https://devforum.zoom.us/u/vinit.patil)\
**Post date:** [May 10, 2021, 12:43pm UTC](https://devforum.zoom.us/t/unable-to-create-meeting-via-api/49739/3 "2021-05-10T12:43:07Z")

</div>

Hi Will,  
I was able to create the meeting. The issue was the bodyType selected was “application/xml” instead of “application/json” hence it was showing invalid json object.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [May 11, 2021, 3:50am UTC](https://devforum.zoom.us/t/unable-to-create-meeting-via-api/49739/4 "2021-05-11T03:50:58Z")

</div>

Hi, @vinit.patil,  
Glad to hear you able to resolve that issue. Should you have any additional questions or comments, please let us know.

Best,  
Donte

---

<div class="post-metadata">

**Author:** ![vinit.patil](https://avatars.discourse-cdn.com/v4/letter/v/9fc29f/32.png) [@vinit.patil](https://devforum.zoom.us/u/vinit.patil)\
**Post date:** [May 11, 2021, 4:36am UTC](https://devforum.zoom.us/t/unable-to-create-meeting-via-api/49739/5 "2021-05-11T04:36:23Z")

</div>

Hi @donte.zoom ,

I have one question related to the JWT Token. I do not want the JWT Token to expire. At the moment it expires after every 90 min. Even if i increase the expiration time, it sets back to 90 min again. please suggest how can i set the expiration time for a longer time.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [May 11, 2021, 1:17pm UTC](https://devforum.zoom.us/t/unable-to-create-meeting-via-api/49739/6 "2021-05-11T13:17:30Z")

</div>

Hi, @vinit.patil,  
Great question! Aside from the App Credentials tab in the Marketplace (see screenshot below), you can set the expiration time for a longer time at [https://jwt.io/](http://jwt.io/). Timestamps are in [Unix epoch format](https://www.epochconverter.com/).

App Marketplace Screenshot:  
 ![Screen Shot 2021-05-11 at 9.12.34 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/b/8b30aa9d0e3e8d92ab39f4980d563dacb4f745be.png)

Best,  
Donte

---

<div class="post-metadata">

**Author:** ![vinit.patil](https://avatars.discourse-cdn.com/v4/letter/v/9fc29f/32.png) [@vinit.patil](https://devforum.zoom.us/u/vinit.patil)\
**Post date:** [May 11, 2021, 2:54pm UTC](https://devforum.zoom.us/t/unable-to-create-meeting-via-api/49739/7 "2021-05-11T14:54:42Z")

</div>

> [@donte.zoom](#):
>
> de from the App Credentials tab in the Marketplace (see screenshot

Thanks Donte, Could you please give me steps to perform this as i haven’t done this before. i tried but i think i am missing something.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [May 13, 2021, 4:21pm UTC](https://devforum.zoom.us/t/unable-to-create-meeting-via-api/49739/8 "2021-05-13T16:21:51Z")

</div>

Hey, @vinit.patil,  
Happy to help, here’s how to set the expiration time in the [Marketplace](https://marketplace.zoom.us/):

1. Sign-in into the [App Marketplace](https://marketplace.zoom.us/)
2. Navigate to the Manage screen, select your JWT APP
3. On the App Credentials tab, select the **View JWT Token** drop down arrow
4. Next, select one of the radio options to set the expiration time

Please let me know if this helps.

Best,  
Donte

---

<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:** [June 13, 2021, 2:22am UTC](https://devforum.zoom.us/t/unable-to-create-meeting-via-api/49739/9 "2021-06-13T02:22:05Z")

</div>

Closed on June 13, 2021, 2:22am UTC

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