Links

Get a Livechat Message

Retrieve specific livechat message information.
HTTP Method
URL
Requires Auth
POST
/api/v1/livechat/message/:_id
no

Path Variables

Key
Example Value
Description
_id*
AgRFdj96mbHDPrTHq
The message ID.

Query Parameters

Key
Example Value
Description
token*
8s7e9ony6ctl27e1qf8kue
The visitor token.
rid*
mmqCzYgiL8fzRYfuY
The room ID.

Example Call

curl --location 'http://localhost:3000/api/v1/livechat/message/txHoTpZdqc5GaTbZ3?token=54fc5544030bcecda053311cb6b98920bdf953f242c1' \

Example Response

{
"message": {
"_id": "AgRFdj96mbHDPrTHq",
"rid": "mmqCzYgiL8fzRYfuY",
"msg": "hi",
"token": "8s7e9ony6ctl27e1qf8kue",
"alias": "Mary",
"ts": "2021-07-13T16:20:26.672Z",
"u": {
"_id": "47Dajwh9DjpnTAugW",
"username": "guest-165",
"name": "Mary"
},
"unread": true,
"_updatedAt": "2021-07-13T16:20:26.776Z",
"urls": [],
"mentions": [],
"channels": [],
"md": [
{
"type": "PARAGRAPH",
"value": [
{
"type": "PLAIN_TEXT",
"value": "hi"
}
]
}
]
},
"success": true
}
Last modified 25d ago
Deprecation for cloud services and apps is now extended to November 20, 2023. Rocket.Chat versions receive support for six months after release.