Problem to create a new meeting with API

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
}
]
}
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

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

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 test&duration=30&start_time=2022-02-20T05:00:00&type=2

@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

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

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:

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

Hope this helps,
Elisa

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”,
“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

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 }

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

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.”}

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"?>300Unsupported Content Type

Content type I use is application/json

@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 with your email associated with your account or your account ID. As well as the JWT token so I can debug further

Thanks
Elisa

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…

1 Like

Hi @elisa.zoom

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

1 Like

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 :slight_smile:
Best,
Elisa

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