# How to create channnel(type: 4)?

**URL:** <https://devforum.zoom.us/t/how-to-create-channnel-type-4/60393>\
**Category:** API and Webhooks\
**Created:** [November 18, 2021, 1:31am UTC](https://devforum.zoom.us/t/how-to-create-channnel-type-4/60393 "2021-11-18T01:31:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mi2yo4](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@mi2yo4](https://devforum.zoom.us/u/mi2yo4)\
**Post date:** [November 18, 2021, 1:31am UTC](https://devforum.zoom.us/t/how-to-create-channnel-type-4/60393/1 "2021-11-18T01:31:25Z")

</div>

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

**Description**  
send my data:  
{‘name’: ‘sample’, ‘type’: 4, ‘members’: [{‘email’: ‘mailaddress’}]}

**Error**  
reply:  
`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><result><code>300</code><message>Validation Failed.</message><errors><field>type</field><message>Invalid field.</message></errors></result>`

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
OAuth

**Which Endpoint/s?**  
`https://marketplace.zoom.us/docs/api-reference/zoom-api/chat-channels/createchannel`  
POST /chat/users/me/channels

Works with other types (2)

Regards,  
Mitsuyoshi

---

<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 19, 2021, 12:49pm UTC](https://devforum.zoom.us/t/how-to-create-channnel-type-4/60393/2 "2021-11-19T12:49:47Z")

</div>

Hi @mi2yo4,

Are you running into an error when making this request? Can you share more details?

Thanks!  
Will

---

<div class="post-metadata">

**Author:** ![mi2yo4](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@mi2yo4](https://devforum.zoom.us/u/mi2yo4)\
**Post date:** [November 29, 2021, 5:08am UTC](https://devforum.zoom.us/t/how-to-create-channnel-type-4/60393/3 "2021-11-29T05:08:34Z")

</div>

POST /chat/users/me/channels  
postdata = {‘name’: ‘sample’, ‘type’: 4, ‘members’: [{‘email’: \<user’s mailaddress\>}]}

Server returns status\_code ‘400’.

\<?xml version="1.0" encoding="UTF-8" standalone="yes"?\>`300`Validation Failed.typeInvalid field.

postdata = {‘name’: ‘sample’, ‘type’: 2, ‘members’: [{‘email’: \<user’s mailaddress\>}]}  
Server returns status\_code ‘200’.

---

<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:** [December 2, 2021, 2:03pm UTC](https://devforum.zoom.us/t/how-to-create-channnel-type-4/60393/4 "2021-12-02T14:03:13Z")

</div>

Hi @mi2yo4,

Thank you for sharing these details!

It looks like you’re able to create a private channel OK but are running into an issue with creating an instant chat (type 4)—right?

Can you confirm if your OAuth app is a user level or account level app? And are you using admin scopes?

Thanks,  
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:** [January 2, 2022, 12:04am UTC](https://devforum.zoom.us/t/how-to-create-channnel-type-4/60393/5 "2022-01-02T00:04:04Z")

</div>

Closed on January 2, 2022, 12:04am UTC

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