---
title: "Create Channels (Realtime)"
slug: "create-channels-realtime"
updated: 2026-05-14T20:11:00Z
published: 2026-05-14T21:47:59Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://developer.rocket.chat/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Channels (Realtime)

![](https://cdn.us.document360.io/27ca1fd4-36d7-4cde-b4eb-97fc1652954c/Images/Documentation/Deprecated.svg)

Create a public channel.

| Method | Requires Auth | Permission |
| --- | --- | --- |
| `createChannel` | Yes | `create-c` |

## Payload parameters

| Argument | Example | Required | Description |
| --- | --- | --- | --- |
| `name` | `channelname` | Required | The name of the channel. |
| `members` | `["rocket.cat"]` | Optional; Default: `[]` | An array of usernames, represented as strings, for the users designated to be included in the channel. If the array is empty, only the user making the request to this method will be added to the channel. |
| `readOnly` | `true` | Optional; Default: `false` | Set if the channel is read-only or not. The value must be boolean. |

## Example call

```json
{
    "msg": "method",
    "method": "createChannel",
    "id": "2",
    "params": [
        "test-websocket",
        ["doe.john"],
        false
    ]
}
```

## Example response

```json
{
    "msg": "result",
    "id": "2",
    "result": [
        { "rid": "BBkfgYT2azf7RPTTg" }
    ]
}
```
