Retrieve open conversations associated with a particular visitor.
HTTP Method | URL | Requires Auth |
---|---|---|
GET | /api/v1/livechat/visitor/:token/room | yes |
Key | Example Value | Description |
---|---|---|
token * | 8s7e9ony6ctl27e1qf8kue | The visitor's token. |
{% 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 %}
{
"rooms": [
{
"_id": "D2hej3mmvkwyB4HR6",
"t": "l",
"cl": false,
"servedBy": {
"_id": "XycfA5CetCPuEjqxw",
"username": "kim.jane",
"ts": "2021-07-18T11:50:38.822Z"
}
}
],
"success": true
}