# API Call to Invite Channel Members returning “code”: -1

**URL:** <https://devforum.zoom.us/t/api-call-to-invite-channel-members-returning-code-1/8552>\
**Category:** API and Webhooks\
**Created:** [March 11, 2020, 3:33pm UTC](https://devforum.zoom.us/t/api-call-to-invite-channel-members-returning-code-1/8552 "2020-03-11T15:33:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mongoman30](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mongoman30/32/1411_2.png) [@mongoman30](https://devforum.zoom.us/u/mongoman30)\
**Post date:** [March 11, 2020, 3:33pm UTC](https://devforum.zoom.us/t/api-call-to-invite-channel-members-returning-code-1/8552/1 "2020-03-11T15:33:10Z")

</div>

We are getting an error code -1 when using API call to add Zoom members to a channel

[https://api.zoom.us/v2/chat/channels/{channelId}/members](https://api.zoom.us/v2/chat/channels/%7BchannelId%7D/members)

One in approx 20 works but 19/20 returns error code.

Manually deleting a user that is successful and trying with same user returns error also so it is not related to the users being added.

---

<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:** [March 11, 2020, 3:47pm UTC](https://devforum.zoom.us/t/api-call-to-invite-channel-members-returning-code-1/8552/2 "2020-03-11T15:47:09Z")

</div>

Hey @mongoman30,

Can you share the channel ID and the request body so I can look into the logs?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![mongoman30](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mongoman30/32/1411_2.png) [@mongoman30](https://devforum.zoom.us/u/mongoman30)\
**Post date:** [March 11, 2020, 3:58pm UTC](https://devforum.zoom.us/t/api-call-to-invite-channel-members-returning-code-1/8552/3 "2020-03-11T15:58:42Z")

</div>

Adding Adrian who was running the query

---

<div class="post-metadata">

**Author:** ![adrian\_parnacio](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/adrian_parnacio/32/3496_2.png) [@adrian\_parnacio](https://devforum.zoom.us/u/adrian_parnacio)\
**Post date:** [March 11, 2020, 4:01pm UTC](https://devforum.zoom.us/t/api-call-to-invite-channel-members-returning-code-1/8552/4 "2020-03-11T16:01:27Z")

</div>

Hi @tommy

Here’s the info that you are asking:

Channel ID: 8f3a6a35-2a68-45b7-b050-1de84d292400  
Request Body:  
{  
“members”: [  
{  
“email”: “email\_here”  
}  
]  
}

---

<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:** [March 11, 2020, 9:48pm UTC](https://devforum.zoom.us/t/api-call-to-invite-channel-members-returning-code-1/8552/5 "2020-03-11T21:48:22Z")

</div>

Hey @adrian_parnacio,

Does this work for other of your Zoom Members?

I’m wondering if you don’t have the permission to call this endpoint to add the account Owner to the channel?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![adrian\_parnacio](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/adrian_parnacio/32/3496_2.png) [@adrian\_parnacio](https://devforum.zoom.us/u/adrian_parnacio)\
**Post date:** [March 12, 2020, 5:34am UTC](https://devforum.zoom.us/t/api-call-to-invite-channel-members-returning-code-1/8552/6 "2020-03-12T05:34:00Z")

</div>

Hi @tommy,

Yes it works for other members but not all. I’m not sure why others cannot be added because the response message does not have any details.

I was able to add the account owner once but I was not able to replicate it.

---

<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:** [March 12, 2020, 5:00pm UTC](https://devforum.zoom.us/t/api-call-to-invite-channel-members-returning-code-1/8552/7 "2020-03-12T17:00:01Z")

</div>

Hey @adrian_parnacio,

Thanks, we will look into this further and get back to you. (ZOOM-143799)

-Tommy

---

<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:** [March 13, 2020, 3:44pm UTC](https://devforum.zoom.us/t/api-call-to-invite-channel-members-returning-code-1/8552/8 "2020-03-13T15:44:17Z")

</div>

Hey @adrian_parnacio, @mongoman30,

This will be fixed in our March / April release.

Stay updated here: [https://marketplace.zoom.us/docs/changelog](https://marketplace.zoom.us/docs/changelog)

Thanks for you patience,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:30pm UTC](https://devforum.zoom.us/t/api-call-to-invite-channel-members-returning-code-1/8552/9 "2020-08-21T19:30:33Z")

</div>

Closed on August 21, 2020, 7:30pm UTC


