# Create Webinar api giving 400 bad request whenever passing alternative\_hosts key

**URL:** <https://devforum.zoom.us/t/create-webinar-api-giving-400-bad-request-whenever-passing-alternative-hosts-key/83408>\
**Category:** API and Webhooks\
**Created:** [February 20, 2023, 9:13am UTC](https://devforum.zoom.us/t/create-webinar-api-giving-400-bad-request-whenever-passing-alternative-hosts-key/83408 "2023-02-20T09:13:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohit.jain1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mohit.jain1/32/45648_2.png) [@mohit.jain1](https://devforum.zoom.us/u/mohit.jain1)\
**Post date:** [February 20, 2023, 9:13am UTC](https://devforum.zoom.us/t/create-webinar-api-giving-400-bad-request-whenever-passing-alternative-hosts-key/83408/1 "2023-02-20T09:13:13Z")

</div>

### Before Creating a New Topic:

_If you’re experiencing unexpected API/Zoom API Events (webhooks) behavior please search the forum with relevant keywords (e.x. error message) and follow the guidance outlined in those posts. Please also leverage the following support links:_

* * *

### Format Your New Topic as Follows:

**API Endpoint(s) and/or Zoom API Event(s)**  
[https://api.zoom.us/v2/users/${email}/webinars](https://api.zoom.us/v2/users/$%7Bemail%7D/webinars)

**Description**  
Whenever I am passing alternative host to my api request it is giving 400 bad request  
const webinarData: any = await this.httpUtilService.request({  
method: ‘POST’,  
url: createWebinarUrl(email),  
data: {  
duration: 60 \* 11,  
settings: {  
allow\_multiple\_devices: false,  
approval\_type: 0,  
alternative\_hosts: coHostDetails,  
},  
},  
headers: {  
Authorization: `Bearer ${accessToken}`,  
},  
});

My cohostids are comma separated  
Am i missing something

**Error?**  
_The full error message or issue you are running into, where applicable._

**How To Reproduce**  
_Steps to reproduce the behavior:_  
_1. Request URL / Headers **(without credentials or sensitive info like emails, uuid, etc.)** / Body_  
_2. Authentication method or app type_  
_3. Any errors_

---

<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, 2023, 6:00pm UTC](https://devforum.zoom.us/t/create-webinar-api-giving-400-bad-request-whenever-passing-alternative-hosts-key/83408/2 "2023-02-22T18:00:38Z")

</div>

Hi @mohit.jain1  
Thanks for reaching out to the Zoom Developer forum and welcome to our community!  
Can you please confirm if the alternative hosts that you are passing in your requests, are users under your account?

---

<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:** [February 26, 2024, 9:37am UTC](https://devforum.zoom.us/t/create-webinar-api-giving-400-bad-request-whenever-passing-alternative-hosts-key/83408/3 "2024-02-26T09:37:09Z")

</div>

Closed on February 26, 2024, 9:37am UTC

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