---
title: "Join a Channel"
slug: "join-a-channel"
updated: 2026-06-08T12:46:40Z
published: 2026-06-08T12:46:40Z
---

> ## 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 a Channel

Post/api/v1/channels.join

Join a public channel.

### Changelog

| Version | Description |
| --- | --- |
| 0.49.0 | Added |

Header parametersX-Auth-TokenstringRequired

The `authToken` of the authenticated user.

ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
X-User-IdstringRequired

The `userId` of the authenticated user.

ExamplerbAXPnMktTFbNpwtJ

Body parameters<select class='api-response-data' aria-label='Media type'><option value='788350ec-7f0d-42af-bea0-4bfea8f3f591'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='87bc5a1e-ae9a-48f8-8b8a-f57f16d145e9'>Example</option>
</select>Example

```json
{
  "roomId": "ByehQjC44FwMeiLbX",
  "joinCode": "1234"
}
```

object  roomIdstring    Required

The channel ID.

joinCodestring    

The join code of the room. Channels can be password-protected. In that case, users must enter the password for access. See [Channel information](https://docs.rocket.chat/docs/channels#channel-information) for details. The join code isn't needed if the user has the `join-without-join-code` permission.

Responses200

OK

<select class='api-response-data' aria-label='Media type'><option value='e86847f8-4079-432b-920a-ee2efd358577'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='b9ff5b9f-a545-4deb-b5f6-986d44ff6f2d'>Example</option>
</select>Example

```json
{
  "channel": {
    "_id": "nxXKHF2o2nzKYtFMM",
    "name": "test",
    "fname": "test",
    "t": "c",
    "msgs": 8,
    "usersCount": 2,
    "u": {
      "_id": "rocketchat.internal.admin.test",
      "username": "rocketchat.internal.admin.test"
    },
    "customFields": {},
    "broadcast": false,
    "encrypted": false,
    "ts": "2019-01-16T12:00:04.783Z",
    "ro": false,
    "sysMes": true,
    "default": false,
    "_updatedAt": "2019-01-16T12:06:30.426Z",
    "joinCodeRequired": true
  },
  "success": true
}
```

Expand Allobject  channelobject  _idstring    
fnamestring    
customFieldsobject  
topicstring    
broadcastboolean    
encryptedboolean    
namestring    
tstring    
msgsinteger    
usersCountinteger    
uobject  _idstring    
usernamestring    

tsstring    
roboolean    
defaultboolean    
sysMesboolean    
_updatedAtstring    
lastMessageobject  _idstring    
ridstring    
msgstring    
tsstring    
uobject  _idstring    
usernamestring    
namestring    

_updatedAtstring    
urls Array of object   object  
mentions Array of object   object  
channels Array of object   object  
md Array of object   object  typestring    
value Array of object   object  typestring    
valuestring    

lmstring    

successboolean    

401

Unauthorized

<select class='api-response-data' aria-label='Media type'><option value='c3bfdeb4-7be4-43d9-b9a2-55fc6e04a7d4'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='2405df34-0b2b-4752-8f78-bd396ae13cad'>Authorization Error</option>
</select>Authorization Error

```json
{
  "status": "error",
  "message": "You must be logged in to do this."
}
```

object  statusstring    
messagestring
