---
title: "Get Room by ID (Realtime)"
slug: "get-room-by-id-realtime"
updated: 2026-05-14T21:44:00Z
published: 2026-05-14T21:44:00Z
---

> ## 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.

# Get Room by ID (Realtime)

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

Get room details by room ID.

| Method | Requires Auth |
| --- | --- |
| `getRoomById` | Yes |

## Payload parameters

| Argument | Example | Required | Description |
| --- | --- | --- | --- |
| `rid` | `siyr2oWQJBjQjhLwru` | Required | The room id. |

## Example call

```json
{
    "msg": "method",
    "method": "getRoomById",
    "id": "2",
    "params":[
        "siyr2oWQJBjQjhLwr"
    ]
   
}
```

## Example response

```json
{
    "msg": "result",
    "id": "2",
    "result": {
        "_id": "siyr2oWQJBjQjhLwr",
        "fname": "try",
        "customFields": {},
        "description": "",
        "broadcast": false,
        "encrypted": false,
        "federated": false,
        "name": "try",
        "t": "c",
        "msgs": 10,
        "usersCount": 3,
        "u": {
            "_id": "rbAXPnMktTFbNpwtJ",
            "username": "doe.john"
        },
        "ts": {
            "$date": 1676930439862
        },
        "ro": false,
        "default": false,
        "sysMes": true,
        "_updatedAt": {
            "$date": 1694364133991
        },
        "lastMessage": {
            "rid": "siyr2oWQJBjQjhLwr",
            "ts": {
                "$date": 1689618918246
            },
            "file": {
                "_id": "64b589e6aa5ad4273bfc4db6",
                "name": "eicar.zip",
                "type": "application/x-zip-compressed"
            },
            "files": [
                {
                    "_id": "64b589e6aa5ad4273bfc4db6",
                    "name": "eicar.zip",
                    "type": "application/x-zip-compressed"
                }
            ],
            "attachments": [
                {
                    "ts": "1970-01-01T00:00:00.000Z",
                    "title": "eicar.zip",
                    "title_link": "/file-upload/64b589e6aa5ad4273bfc4db6/eicar.zip",
                    "title_link_download": true,
                    "type": "file",
                    "format": "ZIP",
                    "size": 266
                }
            ],
            "msg": "",
            "groupable": false,
            "u": {
                "_id": "rbAXPnMktTFbNpwtJ",
                "username": "doe.john",
                "name": "John Doe"
            },
            "_id": "haggP793FFy8jTv2f",
            "_updatedAt": {
                "$date": 1689618918369
            },
            "urls": [],
            "mentions": [],
            "channels": []
        },
        "lm": {
            "$date": 1689618918246
        },
        "muted": [],
        "unmuted": [
            "test.fun"
        ]
    }
}
```
