---
title: "Add Users to Channel"
slug: "add-users-to-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.

# Add Users to Channel

Post/api/v1/channels.invite

Add a user or bulk users to a channel.

For a user to invite other users, they must match at least one of the following premises:

- The user is part of a room of any type and has the `add-user-to-joined-room` permission.
- The user is part of a public room `(t: 'c')` and has the `add-user-to-any-c-room` permission.
- The user is part of a private room `(t: 'p')` and has the `add-user-to-any-p-room` permission.

### Changelog

| Version | Description |
| --- | --- |
| 0.48.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='4c9ba1c0-2cb0-47cd-86d6-4b4b7a600254'>application/json</option>
</select>Expand Allobject  OneOfobjectobjectroomIdstring    Required

The channel's ID.

ExamplenSYqWzZ4GsKTX4dyK
userIdstring    Required

The user id to be invited.

ExampleByehQjC44FwMeiLbX

objectobjectroomIdstring    Required

The channel's id

ExamplenSYqWzZ4GsKTX4dyK
userIds Array of object   Required

An array of the userId of users to be invited

object  typestring    
valuestring    

		
			

You can enter the user ID of one user or add multiple users. Use any one of the objects above as the body parameters.

		
		
Responses200

OK

<select class='api-response-data' aria-label='Media type'><option value='bf83646c-e49d-4202-a92f-69959fcd977a'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='af5bb89e-6cb5-4dc0-a460-a142e999f6e5'>Add bulk users</option>
<option value='738d1f38-af7d-4d7c-b71f-4bb731fc427a'>Add a user</option>
</select>Add bulk users

```json
{
  "channel": {
    "_id": "ByehQjC44FwMeiLbX",
    "ts": "2016-11-30T21:23:04.737Z",
    "t": "c",
    "name": "testing",
    "usernames": [
      "testing",
      "testing1"
    ],
    "msgs": 1,
    "_updatedAt": "2016-12-09T12:50:51.575Z",
    "lm": "2016-12-09T12:50:51.555Z"
  },
  "success": true
}
```

Add a user

```json
{
  "channel": {
    "_id": "ByehQjC44FwMeiLbX",
    "ts": "2016-11-30T21:23:04.737Z",
    "t": "c",
    "name": "testing",
    "usernames": "testing",
    "msgs": 1,
    "_updatedAt": "2016-12-09T12:50:51.575Z",
    "lm": "2016-12-09T12:50:51.555Z"
  },
  "success": true
}
```

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

tsstring    
roboolean    
defaultboolean    
sysMesboolean    
_updatedAtstring    
lmstring    
lastMessageobject  _idstring    
tstring    
msgstring    
groupableboolean    
blocks Array of object   object  typestring    
blockIdstring    
callIdstring    
appIdstring    

tsstring    
uobject  _idstring    
usernamestring    
namestring    

ridstring    
_updatedAtstring    
urls Array of object   object  
mentions Array of object   object  
channels Array of object   object  

successboolean    

401

Unauthorized

<select class='api-response-data' aria-label='Media type'><option value='9030aac8-f090-44cd-b73f-a7cf63c4e33e'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='cff21e8c-89d3-4d67-9c88-6023e0dca811'>Authorization Error</option>
</select>Authorization Error

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

object  statusstring    
messagestring
