Visitor Autocomplete

Autocomplete a visitor's name.

HTTP MethodURLRequires Auth

GET

/api/v1/livechat/visitors.autocomplete

Query Parameters

KeyExample ValueDescription

selector*

{ "exceptions" : [], "conditions" : {"username": "guest-5"}}

Enter the exceptions or the conditions that you want to search for.

Example Call

curl --location --request GET 'http://localhost:3000/api/v1/livechat/visitors.autocomplete?selector={%20%22exceptions%22%3A%20[{}]%2C%20%22conditions%22%3A%20{%22username%22%3A%20%22guest-5%22}%20}' \
--header 'X-Auth-Token: Y97tM4GkYjgaH_fIO5d' \
--header 'X-User-Id: CkCPNcvsvCDfmWLqC'

Example Response

{
    "items": [
        {
            "_id": "6400be90fa0ed7dd90509300",
            "username": "guest-5",
            "name": "Jane",
            "custom_name": "guest-5 - An agent"
        }
    ],
    "success": true
}

Last updated

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