--- title: "Create Private Room (Realtime)" slug: "create-private-room-realtime" updated: 2026-05-14T21:49:01Z published: 2026-05-14T21:49:01Z canonical: "developer.rocket.chat/create-private-room-realtime" --- > ## 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 Private Room (Realtime) ![](https://cdn.us.document360.io/27ca1fd4-36d7-4cde-b4eb-97fc1652954c/Images/Documentation/Deprecated.svg) Create a [private group](https://docs.rocket.chat/v1/docs/channels#private-channels). | Method | Requires Auth | Permission | | --- | --- | --- | | `createPrivateGroup` | Yes | `create-p` | ## Payload parameters | Argument | Example | Required | Description | | --- | --- | --- | --- | | `name` | `testrc` | Required | The name of the channel/group. | | `members` | `["test.queue"]` | Optional | An array containing the usernames of users to be included in the channel. | | `readonly` | `true` | Optional | A Boolean to indicate if the room is read-only or not. | | `customFields` | `{ “priority”: “low” }` | Optional | Custom fields for the channel. | | `extraData` | | Optional | Any extra data to associate with the channel. | ## Example call ```json {    "msg": "method",    "method": "createPrivateGroup",    "id": "44728",    "params": [ "testrc7", ["test.queue"], true ] } ``` ## Example response ```json {    "msg": "result",    "id": "44728",    "result": {        "rid": "64e543ff5fb08444f3a71f94",        "inserted": true,        "_id": "64e543ff5fb08444f3a71f94",        "_updatedAt": {            "$date": 1692746751431        },        "fname": "testrc7",        "customFields": {},        "name": "testrc7",        "t": "p",        "msgs": 0,        "usersCount": 0,        "u": {            "_id": "4SebuZCHhQKvTt23o",            "username": "funke.olasupo",            "name": "Funke Olasupo"        },        "ts": {            "$date": 1692746751431        },        "ro": true,        "default": false,        "sysMes": true    } } ``` ## Changelog | Version | Description | | --- | --- | | 0.38.0 | Added |