Get Open Conversation of a Visitor

Retrieve open conversations associated with a particular visitor.

HTTP MethodURLRequires Auth

GET

/api/v1/livechat/visitor/:token/room

Path Variables

KeyExample ValueDescription

token*

8s7e9ony6ctl27e1qf8kue

The visitor's token.

Example Call

curl --location 'http://localhost:3000/api/v1/livechat/visitor/54fc5544030bcecda0533/room' \
--header 'X-Auth-Token: Y97tM4GkYjgaH_fIO5dwBitQQvm3yp-AptYzGQZMX6e' \
--header 'X-User-Id: CkCPNcvsvCDfmWLqC'

Example Response

{
    "rooms": [
        {
            "_id": "D2hej3mmvkwyB4HR6",
            "t": "l",
            "cl": false,
            "servedBy": {
                "_id": "XycfA5CetCPuEjqxw",
                "username": "kim.jane",
                "ts": "2021-07-18T11:50:38.822Z"
            }
        }
    ],
    "success": true
}

Last updated

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