# How to add invitees when creating meeting via API

**URL:** <https://devforum.zoom.us/t/how-to-add-invitees-when-creating-meeting-via-api/62578>\
**Category:** API and Webhooks\
**Created:** [January 12, 2022, 6:27pm UTC](https://devforum.zoom.us/t/how-to-add-invitees-when-creating-meeting-via-api/62578 "2022-01-12T18:27:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bk-zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bk-zoom/32/33992_2.png) [@bk-zoom](https://devforum.zoom.us/u/bk-zoom)\
**Post date:** [January 12, 2022, 6:27pm UTC](https://devforum.zoom.us/t/how-to-add-invitees-when-creating-meeting-via-api/62578/1 "2022-01-12T18:27:07Z")

</div>

What is the proper way for attaching the invitee(s) to a meeting when created via the API?

You documentation ([https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate)) states there is a settings parameter to add “meeting\_invitees” which should be an array object of emails inside the settings parameter, i am getting back error with this payload:

```auto
{
  "topic": "test meeting",
  "type": "2",
  "start_time": "2022-02-01T19:00:00+00:00",
  "duration": "30",
  "timezone": "UTC",
  "password": "string1",
  "agenda": "This is the agenda text",
  "settings": {
    "meeting_invitees": [
      "persona@email.com"
    ],
    "alternative_hosts": "alt@host.com",
    "alternative_hosts_email_notification": "false",
    "registrants_email_notification": "true",
    "registrants_confirmation_email": "true"
  }
}

```

Error:

```auto
<error>
    <code>300</code>
    <message>Request Body should be a valid JSON object.</message>
</error>

```

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [January 13, 2022, 2:18am UTC](https://devforum.zoom.us/t/how-to-add-invitees-when-creating-meeting-via-api/62578/2 "2022-01-13T02:18:25Z")

</div>

Hi @bk-zoom ,

I was able to reproduce this error as well. I’ve opened up an inquiry with our API engineers (ZOOM-338682). I’ll keep you updated!

Gianni

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [January 13, 2022, 4:43pm UTC](https://devforum.zoom.us/t/how-to-add-invitees-when-creating-meeting-via-api/62578/3 "2022-01-13T16:43:12Z")

</div>

@bk-zoom hello this is my fault, it should be an **array of objects** like this:

“settings”: {  
“meeting\_invitees”: [  
{“email”: “[persona@email.com](mailto:persona@email.com)”}, {“email”: “[persona2@email.com](mailto:persona2@email.com)”}  
],

 ![Screen Shot 2022-01-13 at 11.39.59 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/5/65bd8906882f0cd415678ad846c7a6094170d47f.png)

---

<div class="post-metadata">

**Author:** ![jl-zoom](https://avatars.discourse-cdn.com/v4/letter/j/22d042/32.png) [@jl-zoom](https://devforum.zoom.us/u/jl-zoom)\
**Post date:** [January 21, 2022, 4:03pm UTC](https://devforum.zoom.us/t/how-to-add-invitees-when-creating-meeting-via-api/62578/4 "2022-01-21T16:03:12Z")

</div>

Hi Gianni,

When the meeting is created, is it supposed to send an invitation email to all the given invitees? Because in my case, it does not.

Do I miss something?

Btw, here is how I create my payload:

```auto
const invitees = (this.meetingFormGroup.getRawValue().invitees as string)?.split(';').map(i => ({ email: i })) || [];

const meetingPayload: Partial<MeetingPayload> = {
  topic: this.meetingFormGroup.getRawValue().topic,
  agenda: this.meetingFormGroup.getRawValue().agenda,
  type: MeetingType.RECURRING_NO_FIXED_TIME,
  duration,
  password: '', // will be set automatically by zoom API
  timezone: 'Europe/Paris',
  settings: {
    meeting_invitees: invitees,
    registrants_email_notification: true,
    registrants_confirmation_email: true,
  }
};

```

Joachim

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [January 21, 2022, 11:19pm UTC](https://devforum.zoom.us/t/how-to-add-invitees-when-creating-meeting-via-api/62578/5 "2022-01-21T23:19:22Z")

</div>

Hi @jl-zoom ,

Check your email settings on your account for meetings. See if the box is checked. The API request with

registrants\_email\_notification: true,  
registrants\_confirmation\_email: true,

Should be sufficient in enforcing this setting, but let me know what you see in your portal.

---

<div class="post-metadata">

**Author:** ![jl-zoom](https://avatars.discourse-cdn.com/v4/letter/j/22d042/32.png) [@jl-zoom](https://devforum.zoom.us/u/jl-zoom)\
**Post date:** [January 23, 2022, 4:31pm UTC](https://devforum.zoom.us/t/how-to-add-invitees-when-creating-meeting-via-api/62578/6 "2022-01-23T16:31:59Z")

</div>

Hi @gianni.zoom,

Could you please be more specific about the box to check?

Those are the options I have: [https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/6/26ed6366ae003fe12e835cf003954fe85b8d9e96.png](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/6/26ed6366ae003fe12e835cf003954fe85b8d9e96.png)

Joachim

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [January 24, 2022, 3:53pm UTC](https://devforum.zoom.us/t/how-to-add-invitees-when-creating-meeting-via-api/62578/7 "2022-01-24T15:53:28Z")

</div>

Hi @jl-zoom ,

I am actually mistaken. It seems like you can only do this for webinars (see below):

 ![Screen Shot 2022-01-24 at 10.49.00 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/d/c/dc8d06c30ba27b3fb3377c6340f4fe98ffbf7668.png)

I wasn’t able to access the same email settings for meetings. Can you please send your full API request url/body and response body with a link to this thread to [Support](https://zoom.us/zendesk/sso?return_to=https://support.zoom.us/hc/requests/new?ticket_form_id=360000996591) addressed to me? Please also include the meetingId where the expected behavior is not occuring.

I will take a further look to see why its’s not working.

Thank you,  
Gianni

---

<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 24, 2022, 1:53am UTC](https://devforum.zoom.us/t/how-to-add-invitees-when-creating-meeting-via-api/62578/8 "2022-02-24T01:53:30Z")

</div>

Closed on February 24, 2022, 1:53am UTC

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