Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
58 lines (48 loc) · 2.05 KB

File metadata and controls

58 lines (48 loc) · 2.05 KB

Get a Livechat Message

Retrieve specific livechat message information.

HTTP MethodURLRequires Auth
GET/api/v1/livechat/message/:_idno

Path Variables

KeyExample ValueDescription
_id*AgRFdj96mbHDPrTHqThe message ID.

Query Parameters

KeyExample ValueDescription
token*8s7e9ony6ctl27e1qf8kueThe visitor token.
rid*mmqCzYgiL8fzRYfuYThe room ID.

Example Call

{% code overflow="wrap" %}

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

{% endcode %}

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
}