---
title: "Join Channels (Realtime)"
slug: "join-channels-realtime"
updated: 2026-05-14T20:11:41Z
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.

# Join Channels (Realtime)

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

You can only join yourself to public channels, private groups are not joinable. Some public channels require you to enter a `joinCode`.

| Method | Requires Auth | Permission |
| --- | --- | --- |
| `joinRoom` | Yes | `view-c-room` |

## Payload parameters

| Argument | Example | Required | Description |
| --- | --- | --- | --- |
| `roomId` | `jfs9sjcoiown` | Required | The room ID to join. |
| `joinCode` | `4456` | Required, if the room requires a code to join. | The code to join the room. |

## Example call

```json
{
    "msg": "method",
    "method": "joinRoom",
    "id": "99",
    "params": [
        "roomId",
        "joinCode"
    ]
}
```

## Example response

The response from calling the method will return a result of whether the user joined the channel or not.

```json
{
    "msg": "result",
    "id": "99",
    "result": true/false
}
```
