---
title: "Create Direct Message (Realtime)"
slug: "create-direct-message-realtime"
updated: 2026-05-14T21:48:56Z
published: 2026-05-14T21:48:56Z
---

> ## 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 Direct Message (Realtime)

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

Create a [direct message](https://docs.rocket.chat/v1/docs/direct-messages).

| Method | Requires Auth |
| --- | --- |
| `createDirectMessage` | Yes |

## Payload parameters

| Argument | Example | Required | Description |
| --- | --- | --- | --- |
| `username` | `testrc` | Required | The usernames to be added to the direct message. |

## Example call

```json
{
    "msg": "method",
    "method": "createDirectMessage",
    "id": "472",
    "params": ["testrc"]
}
```

## Example response

```json
{
    "msg": "result",
    "id": "472",
    "result": {
        "t": "d",
        "rid": "LFdhbcNHx5zsMA7T4ZoJM4tvohREwJbtAh",
        "usernames": [
            "test.rc",
            "testrc"
        ]
    }
}
```
