# Curl Request for creating meeting suddenly doesn't work without changes

**URL:** <https://devforum.zoom.us/t/curl-request-for-creating-meeting-suddenly-doesnt-work-without-changes/49240>\
**Category:** API and Webhooks\
**Created:** [April 30, 2021, 4:53am UTC](https://devforum.zoom.us/t/curl-request-for-creating-meeting-suddenly-doesnt-work-without-changes/49240 "2021-04-30T04:53:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcdampil23](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jcdampil23/32/26583_2.png) [@jcdampil23](https://devforum.zoom.us/u/jcdampil23)\
**Post date:** [April 30, 2021, 4:53am UTC](https://devforum.zoom.us/t/curl-request-for-creating-meeting-suddenly-doesnt-work-without-changes/49240/1 "2021-04-30T04:53:56Z")

</div>

## Using this template helps us debug your issues more effectively 🙂

**Description**  
Good Day,

I programmed our website to work with the zoom oauth api and i used curl in php to make the requests to your api,  
the code for creating meeting has worked since about february however when i tried it now it no longer works but i can still get a list of meetings, get a specific meeting and edit a meeting.  
This is the code i use to create a meeting

$url = ‘[https://api.zoom.us/v2/users/me/meetings](https://api.zoom.us/v2/users/me/meetings)’;  
$headers = ['Authorization:Bearer ’ . $this-\>session-\>userdata[‘zoom\_auth’][‘access\_token’], ‘Content-Type: application/json’];  
$data = $this-\>curl\_requests($url, $headers, ‘CREATES’, $params1);  
var\_dump($data)

function curl\_requests($url, $headers, $method, $params) {  
$ch = curl\_init();  
curl\_setopt($ch, CURLOPT\_URL, $url);  
curl\_setopt($ch, CURLOPT\_RETURNTRANSFER, true);  
curl\_setopt($ch, CURLOPT\_HTTPHEADER, $headers);  
curl\_setopt($ch, CURLOPT\_CUSTOMREQUEST, ‘POST’);  
curl\_setopt($ch, CURLOPT\_POSTFIELDS, json\_encode($params));  
$result = curl\_exec($ch);  
if (curl\_errno($ch)) {  
$test = curl\_error($ch);  
} else {  
$test = json\_decode($result, true);  
if (!$this-\>is\_json($result)) {  
$test = $result;  
}  
}  
curl\_close($ch);  
return $test;  
}

**Error**  
My biggest problem is there is no error to signify what i actually did wrong, whenever I var\_dump the result it returns null

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/a/eac9c9178318f7ce6616c95f60ea0cb89e152673.png)

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
I have been using the OAuth

**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.

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:

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

**Screenshots (If applicable)**

**Additional context**  
Add any other context about the problem here.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [April 30, 2021, 9:25pm UTC](https://devforum.zoom.us/t/curl-request-for-creating-meeting-suddenly-doesnt-work-without-changes/49240/2 "2021-04-30T21:25:03Z")

</div>

Hey @jcdampil23,

Thank you for reaching out to the Zoom Developer Forum. First, I’m noticing in you screenshot you have a scheduled _webinar_ whereas the [List Meetings API](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetings) will only return _meetings_.

If that doesn’t help, can you share the API response that you’re seeing. That is, the HTTP Status and Response body that are returned?

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![jcdampil23](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jcdampil23/32/26583_2.png) [@jcdampil23](https://devforum.zoom.us/u/jcdampil23)\
**Post date:** [May 2, 2021, 1:07pm UTC](https://devforum.zoom.us/t/curl-request-for-creating-meeting-suddenly-doesnt-work-without-changes/49240/3 "2021-05-02T13:07:53Z")

</div>

Ahh yes, its actually a zoom meeting so its working fine, i can curl request the meetings that were scheduled, and can also edit a chosen meeting,

the only issue is when i attempt to create a new meeting, nothing happens no error code just a null value, it also used to work before just it suddenly won’t anymorr

---

<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:** [May 3, 2021, 7:25pm UTC](https://devforum.zoom.us/t/curl-request-for-creating-meeting-suddenly-doesnt-work-without-changes/49240/4 "2021-05-03T19:25:25Z")

</div>

Hey @jcdampil23 ,

Can you please share your **request body JSON** that you are using when calling the [Create Meeting API](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate)? This will help us reproduce the issue.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![jcdampil23](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jcdampil23/32/26583_2.png) [@jcdampil23](https://devforum.zoom.us/u/jcdampil23)\
**Post date:** [May 4, 2021, 1:49am UTC](https://devforum.zoom.us/t/curl-request-for-creating-meeting-suddenly-doesnt-work-without-changes/49240/5 "2021-05-04T01:49:14Z")

</div>

ahhh sure this is what i use  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/6/c61fab8777fc39b1e28dd2db3bbb4268e1b73309.png)  
then i json encode it in the curl request, it may be called a webinar but it is actually just a 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 4, 2021, 7:58pm UTC](https://devforum.zoom.us/t/curl-request-for-creating-meeting-suddenly-doesnt-work-without-changes/49240/6 "2021-05-04T19:58:35Z")

</div>

Hey @jcdampil23,

Thanks for sharing this—do you have the raw JSON after it’s encoded? It’s possible your request body could be causing the issue after you encode it.

Additionally, have you tried submitting the request in Postman, cURL, using our test request tool (under each endpoint in our docs) to see if you get the same response?

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![jcdampil23](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jcdampil23/32/26583_2.png) [@jcdampil23](https://devforum.zoom.us/u/jcdampil23)\
**Post date:** [May 5, 2021, 4:13am UTC](https://devforum.zoom.us/t/curl-request-for-creating-meeting-suddenly-doesnt-work-without-changes/49240/7 "2021-05-05T04:13:51Z")

</div>

Thank you for the idea to use Postman,  
I tried to make a meeting using it and it worked, then i realized after reading the documentation for creating a meeting again, that i was inputting a string that had more than 10 characters in the password field.

So apparently the solution was to either limit the password string to 10 characters or just don’t input it and let the zoom api create one on it’s own

Thank you, sorry for wasting your time when i could have read the documentation better.

---

<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 5, 2021, 9:14pm UTC](https://devforum.zoom.us/t/curl-request-for-creating-meeting-suddenly-doesnt-work-without-changes/49240/8 "2021-05-05T21:14:40Z")

</div>

Hey @jcdampil23,

No worries, I’m glad you figured it out. And thanks for letting us know. 🙂

Best,  
Will

---

<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 5, 2021, 7:15am UTC](https://devforum.zoom.us/t/curl-request-for-creating-meeting-suddenly-doesnt-work-without-changes/49240/9 "2021-06-05T07:15:09Z")

</div>

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