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

Latest commit

 

History

History
39 lines (31 loc) · 1.32 KB

get-open-conversation-of-a-visitor.md

File metadata and controls

39 lines (31 loc) · 1.32 KB

Get Open Conversation of a Visitor

Retrieve open conversations associated with a particular visitor.

HTTP MethodURLRequires Auth
GET/api/v1/livechat/visitor/:token/roomyes

Path Variables

KeyExample ValueDescription
token*8s7e9ony6ctl27e1qf8kueThe visitor's token.

Example Call

{% code overflow="wrap" %}

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

{% endcode %}

Example Response

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