Get a Livechat Message

Retrieve specific livechat message information.

HTTP MethodURLRequires Auth

GET

/api/v1/livechat/message/:_id

no

Path Variables

KeyExample ValueDescription

_id*

AgRFdj96mbHDPrTHq

The message ID.

Query Parameters

KeyExample ValueDescription

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 updated

Rocket.Chat versions receive support for six months after release.