Links

Create Direct Message

Create a direct message.
Name
Requires Auth
Permission
Setting
createDirectMessage
Yes

Payload Parameters

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

Example Call

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

Example Response

{
"msg": "result",
"id": "472",
"result": {
"t": "d",
"rid": "LFdhbcNHx5zsMA7T4ZoJM4tvohREwJbtAh",
"usernames": [
"test.rc",
"testrc"
]
}
}
Last modified 7mo ago
Rocket.Chat versions receive support for six months after release.