# I created a room using API, can participants enter the room without a host?

**URL:** <https://devforum.zoom.us/t/i-created-a-room-using-api-can-participants-enter-the-room-without-a-host/35662>\
**Category:** API and Webhooks\
**Created:** [November 11, 2020, 3:34am UTC](https://devforum.zoom.us/t/i-created-a-room-using-api-can-participants-enter-the-room-without-a-host/35662 "2020-11-11T03:34:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![citrus7g](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/citrus7g/32/18568_2.png) [@citrus7g](https://devforum.zoom.us/u/citrus7g)\
**Post date:** [November 11, 2020, 3:34am UTC](https://devforum.zoom.us/t/i-created-a-room-using-api-can-participants-enter-the-room-without-a-host/35662/1 "2020-11-11T03:34:51Z")

</div>

When a participant attempts to access the room with the join\_url returned through API, participant sees the message below.

“Please wait for the host to start this meeting”

I tried to set ‘join\_before\_host’=\>false and ‘join\_before\_host’=\>true both.  
But the results are the same.

I can check options like the image below on the zoom website.

Is there any way that participants can enter the room without a host? (should create it using API)  
2~3 people have to go into the room and have a meeting without a host.

I think I can turn off the ‘Waiting Room’ option. How can I turn it off using API?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/8/68b108dfe58d30b7dd903f8a40a6e940e223ca92.png)

```
  public function createAMeeting( $data = array() ) {
            $post_time = $data['start_date'];
   $start_time = gmdate( "Y-m-d\TH:i:s", strtotime( $post_time ) );
            $createAMeetingArray = array();
            if ( ! empty( $data['alternative_host_ids'] ) ) {
                if ( count( $data['alternative_host_ids'] ) > 1 ) {
                    $alternative_host_ids = implode( ",", $data['alternative_host_ids'] );
                } else {
                    $alternative_host_ids = $data['alternative_host_ids'][0];
                }
            }
            $createAMeetingArray['topic'] = $data['meetingTopic'];
            $createAMeetingArray['agenda'] = ! empty( $data['agenda'] ) ? $data['agenda'] : "";
            $createAMeetingArray['type'] = ! empty( $data['type'] ) ? $data['type'] : 3; // 2 is default (1: Instant meeting. 2: Scheduled meeting. 3: Recurring meeting with no fixed time. 4: Recurring meeting with fixed time.)
            $createAMeetingArray['start_time'] = $start_time;
            $createAMeetingArray['timezone'] = $data['timezone'];
            $createAMeetingArray['password'] = ! empty( $data['password'] ) ? $data['password'] : "";
            $createAMeetingArray['duration'] = ! empty( $data['duration'] ) ? $data['duration'] : 60;
            $createAMeetingArray['settings'] = array(
                'join_before_host' => ! empty( $data['join_before_host'] ) ? true : false,
                'host_video' => ! empty( $data['option_host_video'] ) ? true : false,
                'participant_video' => ! empty( $data['option_participants_video'] ) ? true : false,
                'mute_upon_entry' => ! empty( $data['option_mute_participants'] ) ? true : false,
                'enforce_login' => ! empty( $data['option_enforce_login'] ) ? true : false,
                'auto_recording' => ! empty( $data['option_auto_recording'] ) ? $data['option_auto_recording'] : "none",
                'alternative_hosts' => isset( $alternative_host_ids ) ? $alternative_host_ids : ""
            );
            return $this->sendRequest($createAMeetingArray);
        }

try {
	$z = $zoom_meeting->createAMeeting(
		array(
			'start_date'=>date("Y-m-d h:i:s", strtotime('tomorrow')),
			'meetingTopic'=>'Talk Test',

			'option_host_video'=>true,
			'option_participants_video'=>true,
			'join_before_host'=>false,

			'timezone'=>'Asia/Seoul'
		)
	);
	print_r($z);
}
```

---

<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:** [November 11, 2020, 8:12pm UTC](https://devforum.zoom.us/t/i-created-a-room-using-api-can-participants-enter-the-room-without-a-host/35662/2 "2020-11-11T20:12:20Z")

</div>

Hi @citrus7g,

Can you try disabling your waiting room? If the waiting room is turned on, this will override the join before host setting.

Let me know if this helps!  
Will

---

<div class="post-metadata">

**Author:** ![citrus7g](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/citrus7g/32/18568_2.png) [@citrus7g](https://devforum.zoom.us/u/citrus7g)\
**Post date:** [November 12, 2020, 5:46am UTC](https://devforum.zoom.us/t/i-created-a-room-using-api-can-participants-enter-the-room-without-a-host/35662/3 "2020-11-12T05:46:46Z")

</div>

Thank you.  
I disabled the waiting room option. But the option didn’t work.

`'waiting_room'=>false,`

---

<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:** [November 13, 2020, 2:36pm UTC](https://devforum.zoom.us/t/i-created-a-room-using-api-can-participants-enter-the-room-without-a-host/35662/4 "2020-11-13T14:36:35Z")

</div>

Hi @citrus7g,

Thanks for confirming. Are you passing a value for password? Please note that you will need either a password or a waiting room. If you don’t pass a value for password, the waiting room will default to on.

Let me know if this helps,  
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:** [December 14, 2020, 12:36am UTC](https://devforum.zoom.us/t/i-created-a-room-using-api-can-participants-enter-the-room-without-a-host/35662/5 "2020-12-14T00:36:45Z")

</div>

Closed on December 14, 2020, 12:36am UTC

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