# Problem to create a new meeting with API

**URL:** <https://devforum.zoom.us/t/problem-to-create-a-new-meeting-with-api/64353>\
**Category:** API and Webhooks\
**Created:** [February 15, 2022, 4:52pm UTC](https://devforum.zoom.us/t/problem-to-create-a-new-meeting-with-api/64353 "2022-02-15T16:52:28Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel.correia](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/daniel.correia/32/35164_2.png) [@daniel.correia](https://devforum.zoom.us/u/daniel.correia)\
**Post date:** [February 15, 2022, 4:52pm UTC](https://devforum.zoom.us/t/problem-to-create-a-new-meeting-with-api/64353/1 "2022-02-15T16:52:28Z")

</div>

Today, we’re testing the following body to create a new meeting, with a JWT authentification :

topic=Meeting test&duration=30&start\_time=2022-02-20T05:00:00&type=2

However response we get a completely different (topic, start date meeting, created date, uuid is not not my userid, my userid is returned on the hostid property !!!)

Response Body:  
{  
“page\_size”: 30,  
“total\_records”: 1,  
“next\_page\_token”: “”,  
“meetings”: [  
{  
“uuid”: “…”,  
“id”: 86149045375,  
“host\_id”: “…”,  
“topic”: “Dominique Esclar”,  
“type”: 2,  
“start\_time”: “2022-01-27T08:30:00Z”,  
“duration”: 60,  
“timezone”: “Europe/Paris”,  
“created\_at”: “2022-01-27T08:35:06Z”,  
“join\_url”: [Launch Meeting - Zoom](https://us06web.zoom.us/j/86149045375?pwd=VFF1Q1d6dncxRUg1bnEza2ZMUlRCQT09)  
}  
]  
}  
Response Status Code = 200

I tried several times and always got the same result. By renewing my token each time.  
I don’t see the meeting in my zoom dashboard

---

<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:** [February 15, 2022, 7:42pm UTC](https://devforum.zoom.us/t/problem-to-create-a-new-meeting-with-api/64353/2 "2022-02-15T19:42:01Z")

</div>

Hi @daniel.correia

Thank you for reaching out to the Zoom Developer forum and welcome to the community!  
Could you please share with me the request body that you are sending when creating the meeting?  
It looks like you are passing the topic, start time and type on the request URL.

Thanks  
Elisa

---

<div class="post-metadata">

**Author:** ![daniel.correia](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/daniel.correia/32/35164_2.png) [@daniel.correia](https://devforum.zoom.us/u/daniel.correia)\
**Post date:** [February 16, 2022, 2:49pm UTC](https://devforum.zoom.us/t/problem-to-create-a-new-meeting-with-api/64353/3 "2022-02-16T14:49:54Z")

</div>

Hi @elisa.zoom

This is the URL used to create a new meeting (GET METHOD) :

[https://api.zoom.us/v2/users/A9hD-GT4TOqTOTkRPLh6DA/meetings?topic=Meeting](https://api.zoom.us/v2/users/A9hD-GT4TOqTOTkRPLh6DA/meetings?topic=Meeting) test&duration=30&start\_time=2022-02-20T05:00:00&type=2

---

<div class="post-metadata">

**Author:** ![daniel.correia](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/daniel.correia/32/35164_2.png) [@daniel.correia](https://devforum.zoom.us/u/daniel.correia)\
**Post date:** [February 16, 2022, 3:43pm UTC](https://devforum.zoom.us/t/problem-to-create-a-new-meeting-with-api/64353/4 "2022-02-16T15:43:33Z")

</div>

@elisa.zoom

I tested again with the same URL.  
Now I get this result  
{  
“page\_size”: 30,  
“total\_records”: 0,  
“next\_page\_token”: “”,  
“meetings”: [  
]  
}

Response Status Code = 200

No meeting created in the dashborad

---

<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:** [February 16, 2022, 11:13pm UTC](https://devforum.zoom.us/t/problem-to-create-a-new-meeting-with-api/64353/5 "2022-02-16T23:13:07Z")

</div>

Hi @daniel.correia  
I see.  
To create a meeting, you will have to call the Create a meeting endpoint (POST METHOD)  
[https://marketplace.zoom.us/docs/api-reference/zoom-api/methods#operation/meetingCreate](https://marketplace.zoom.us/docs/api-reference/zoom-api/methods#operation/meetingCreate)

And the request URL should look something like this:  
/users/me/meetings  
You should not include the topic, duration and start time in the request URL.

You must send those fields in your request body, here is an example:

```auto
{
  "topic": "my meeting",
  "type": 2,
  "duration": 30,
  "settings": {
    "host_video": true,
    "join_before_host": true,
    "mute_upon_entry": true
  }
}

```

Hope this helps,  
Elisa

---

<div class="post-metadata">

**Author:** ![daniel.correia](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/daniel.correia/32/35164_2.png) [@daniel.correia](https://devforum.zoom.us/u/daniel.correia)\
**Post date:** [February 17, 2022, 3:15pm UTC](https://devforum.zoom.us/t/problem-to-create-a-new-meeting-with-api/64353/6 "2022-02-17T15:15:36Z")

</div>

Hi @elisa.zoom

With this request body (with or without start-time parameter)  
{  
“topic”: “Meeting test DC”,  
“start\_time”: “2022-02-20T05:00:00”,  
“type”: 2,  
“settings”: {  
“host\_video”: true,  
“join\_before\_host”: true,  
“mute\_upon\_entry”: true  
}  
}

I get this error  
Response Status Code = 401  
{“code”:124,“message”:“Invalid access token.”}

if I want to list users, **with the same JWT token** , I get a correct response  
{  
“page\_count”: 1,  
“page\_number”: 1,  
“page\_size”: 30,  
“total\_records”: 4,  
“users”: [  
{  
“id”: “…”,  
“first\_name”: “jean”,  
“last\_name”: “n…”,  
“email”: “[n....@gmail.com](mailto:n....@gmail.com)”,  
“type”: 1,  
“pmi”: 8926839846,  
“timezone”: “Europe/Paris”,  
“verified”: 1,  
“dept”: “”,  
“created\_at”: “2018-09-25T16:27:33Z”,  
“last\_login\_time”: “2022-01-27T08:33:41Z”,  
“last\_client\_version”: “5.9.1.3506(mac)”,  
“group\_ids”: [  
“edUf44laRX6cYuEXXXXX”  
],  
“language”: “fr-FR”,  
“phone\_number”: “”,  
“status”: “active”,  
“role\_id”: “2”  
},

TIA

---

<div class="post-metadata">

**Author:** ![daniel.correia](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/daniel.correia/32/35164_2.png) [@daniel.correia](https://devforum.zoom.us/u/daniel.correia)\
**Post date:** [February 17, 2022, 3:30pm UTC](https://devforum.zoom.us/t/problem-to-create-a-new-meeting-with-api/64353/7 "2022-02-17T15:30:29Z")

</div>

To create the JWT token  
I use the HMAC-SHA256. algorithm  
I build claims to look like this  
{“aud”:null,“iss”:“myAPIKey”,“exp”:curDateTime + oneMonth,“iat”:curDateTime }

---

<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:** [February 17, 2022, 9:11pm UTC](https://devforum.zoom.us/t/problem-to-create-a-new-meeting-with-api/64353/8 "2022-02-17T21:11:02Z")

</div>

Hi @daniel.correia  
When you sent the request to create the meeting, did you pass the parameter /me on the Request URL?

---

<div class="post-metadata">

**Author:** ![daniel.correia](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/daniel.correia/32/35164_2.png) [@daniel.correia](https://devforum.zoom.us/u/daniel.correia)\
**Post date:** [February 18, 2022, 8:31am UTC](https://devforum.zoom.us/t/problem-to-create-a-new-meeting-with-api/64353/9 "2022-02-18T08:31:17Z")

</div>

hi @elisa.zoom

I’ve tested by replacing userid parameter by me.  
I get the same error  
Response Status Code = 401  
{“code”:124,“message”:“Invalid access token.”}

---

<div class="post-metadata">

**Author:** ![daniel.correia](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/daniel.correia/32/35164_2.png) [@daniel.correia](https://devforum.zoom.us/u/daniel.correia)\
**Post date:** [February 18, 2022, 4:14pm UTC](https://devforum.zoom.us/t/problem-to-create-a-new-meeting-with-api/64353/10 "2022-02-18T16:14:25Z")

</div>

hi @elisa.zoom

After adding the “BEARER” string before the JWT in the Authorization header, now I get this error:  
_ **Response Status Code = 415** _  
_ **\<?xml version="1.0" encoding="UTF-8" standalone="yes"?\>`300`Unsupported Content Type** _

---

<div class="post-metadata">

**Author:** ![daniel.correia](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/daniel.correia/32/35164_2.png) [@daniel.correia](https://devforum.zoom.us/u/daniel.correia)\
**Post date:** [February 18, 2022, 4:15pm UTC](https://devforum.zoom.us/t/problem-to-create-a-new-meeting-with-api/64353/11 "2022-02-18T16:15:37Z")

</div>

Content type I use is **application/json**

---

<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:** [February 18, 2022, 7:13pm UTC](https://devforum.zoom.us/t/problem-to-create-a-new-meeting-with-api/64353/12 "2022-02-18T19:13:39Z")

</div>

@daniel.correia  
This is an interesting behavior. Have you tried using one of the JWT generated in your marketplace?  
You can grab one from your JWT app where it says JWT token and try to call the same endpoints, just to make sure whats going on.

If this does not work, please send me an email to [developersupport@zoom.us](mailto:developersupport@zoom.us) with your email associated with your account or your account ID. As well as the JWT token so I can debug further

Thanks  
Elisa

---

<div class="post-metadata">

**Author:** ![daniel.correia](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/daniel.correia/32/35164_2.png) [@daniel.correia](https://devforum.zoom.us/u/daniel.correia)\
**Post date:** [February 21, 2022, 3:46pm UTC](https://devforum.zoom.us/t/problem-to-create-a-new-meeting-with-api/64353/13 "2022-02-21T15:46:29Z")

</div>

Hi @elisa.zoom

Yes I tried with the JWT generated on your marketplace, and I get the same error.

I tried also with the POSTMAN application, and it’s works fine…

---

<div class="post-metadata">

**Author:** ![daniel.correia](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/daniel.correia/32/35164_2.png) [@daniel.correia](https://devforum.zoom.us/u/daniel.correia)\
**Post date:** [February 21, 2022, 4:59pm UTC](https://devforum.zoom.us/t/problem-to-create-a-new-meeting-with-api/64353/14 "2022-02-21T16:59:54Z")

</div>

Hi @elisa.zoom

finally it’s ok to create a meeting with the ZOOM API 🤩 : missing parameter (path) in the http header of my request  
Thank you sincerely for your help 😍

---

<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:** [February 22, 2022, 2:42pm UTC](https://devforum.zoom.us/t/problem-to-create-a-new-meeting-with-api/64353/15 "2022-02-22T14:42:13Z")

</div>

Hi @daniel.correia  
Happy to hear you were able to create a meeting!  
I am glad you figured it out!  
Have an excellent week! and you are very welcome 🙂  
Best,  
Elisa

---

<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:** [March 25, 2022, 12:43am UTC](https://devforum.zoom.us/t/problem-to-create-a-new-meeting-with-api/64353/16 "2022-03-25T00:43:00Z")

</div>

Closed on March 25, 2022, 12:43am UTC

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