# Need to create chat channels via API

**URL:** https://meta.discourse.org/t/need-to-create-chat-channels-via-api/403979
**Category:** Support
**Tags:** chat, rest-api
**Created:** [May 28, 2026, 9:09am UTC](https://meta.discourse.org/t/need-to-create-chat-channels-via-api/403979 "2026-05-28T09:09:24Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ARK-Helena](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@ARK-Helena](https://meta.discourse.org/u/ARK-Helena)
#### Post date: [May 28, 2026, 9:09am UTC](https://meta.discourse.org/t/need-to-create-chat-channels-via-api/403979/1 "2026-05-28T09:09:24Z")

</div>

Hi,

Our app hosts hundreds of communities and each of them need a chat channel. Currently we can automatically create categories and user groups via the API which is great, but we are forced to create every chat channel manually as there seems to be no API endpoint for this, which is a major strain for us.

Are there any plans to include chat channel creation in the API? That would be incredibly helpful as it’s our biggest issue with our Discourse integration right now

Thank you very much in advance!

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [May 28, 2026, 9:27am UTC](https://meta.discourse.org/t/need-to-create-chat-channels-via-api/403979/2 "2026-05-28T09:27:29Z")

</div>

Hmm, are you sure there is no API endpoint?

I thought this was it:

```plaintext
 Category channel — POST /chat/api/channels

 Defined at plugins/chat/config/routes.rb:9 → Chat::Api::ChannelsController#create
  (plugins/chat/app/controllers/chat/api/channels_controller.rb:60).

```

---

<div class="post-metadata">

### Author: ![ARK-Helena](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@ARK-Helena](https://meta.discourse.org/u/ARK-Helena)
#### Post date: [May 28, 2026, 10:31am UTC](https://meta.discourse.org/t/need-to-create-chat-channels-via-api/403979/3 "2026-05-28T10:31:38Z")

</div>

Thank you so much @chapoi ! 🙂

For anyone else trying to do this, after some digging around I found out that these are the parameters needed to create a chat channel, in particular note that the category id needs to be in “chatable\_id”:

`curl -i -X POST “YOUR_DISCOURSE_URL” `  
`-H “Content-Type: application/json” `  
`-H “Api-Key: YOUR_API” `  
`-H “Api-Username: API_USERNAME” `  
`-d ‘{`  
`“channel”: {`  
`“chatable_id”: CATEGORY_ID,`  
`“name”: “Chat name”,`  
`“slug”: “chat-slug”,`  
`“description”: “Chat description”,`  
`“auto_join_users”: true,`  
`“threading_enabled”: true`  
`}`  
`}’`

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [May 28, 2026, 10:36am UTC](https://meta.discourse.org/t/need-to-create-chat-channels-via-api/403979/4 "2026-05-28T10:36:15Z")

</div>

Great, glad I could help!

If the issue is resolved, please mark the post that helped you as the solution so others can find the answer too.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [June 27, 2026, 10:36am UTC](https://meta.discourse.org/t/need-to-create-chat-channels-via-api/403979/5 "2026-06-27T10:36:40Z")

</div>

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