--- title: "Send Message (Realtime)" slug: "send-message-realtime" updated: 2026-05-14T20:11:58Z published: 2026-05-14T21:50:48Z canonical: "developer.rocket.chat/send-message-realtime" stale: true --- > ## 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. # Send Message (Realtime) ![](https://cdn.us.document360.io/27ca1fd4-36d7-4cde-b4eb-97fc1652954c/Images/Documentation/Deprecated.svg) Send a message to a room. | Method | Requires Auth | | --- | --- | | `sendMessage` | Yes | ## Payload parameters | Argument | Example | Required | Description | | --- | --- | --- | --- | | `message` | ```json { "_id": "8gMsLe9ApZjo2D2iB", "rid": "64a1f373376181965ab77f54", "msg": "Hello World!" } ``` | Required | The message object. | The `message` object contains the following properties: | `_id` | `8gMsLe9ApZjo2D2iB` | The message ID. | | --- | --- | --- | | `rid` | `64a1f373376181965ab77f54` | The room ID where the message should be sent. | | `msg` | `Hello World` | The message content to be sent. | ## Example call ```json {    "msg": "method",    "method": "sendMessage",    "id": "423",    "params": [        {            "_id": "8gMsLe9A7pZjo2D2iB",            "rid": "64a1f373376181965ab77f54",            "msg": "Hello World!"        }    ] } ``` ## Example response ```json {    "msg": "result",    "id": "423",    "result": {        "_id": "8gMsLe9A7pZjo2D2iB",        "rid": "64a1f373376181965ab77f54",        "msg": "Hello World!",        "ts": {            "$date": 1688421337724        },        "u": {            "_id": "LFdhbcNHx5zsMA7T4",            "username": "test.rc",            "name": "Test RC"        },        "_updatedAt": {            "$date": 1688421337830        },        "urls": [],        "mentions": [],        "channels": [],        "md": [            {                "type": "PARAGRAPH",                "value": [                    {                        "type": "PLAIN_TEXT",                        "value": "Hello World!"                    }                ]            }        ]    } } ``` > [!NOTE] > To send a file, use the [Upload File to a Room](/v1-api/apidocs/upload-file-to-a-room) endpoint.