Autocomplete Private Channel

HTTP MethodURLRequires Auth

GET

/api/v1/rooms.autocomplete.channelAndPrivate

Query Parameters

KeyExample ValueDescription

selector*

{ "exceptions" : []}

Provide additional values to filter the results.

Example Call

curl --location --request GET 'http://localhost:3000/api/v1/rooms.autocomplete.channelAndPrivate?selector=[]\
--header 'X-Auth-Token: myauth-token' \
--header 'X-User-Id: myuser-name'

Example Response

Success

{
    "items": [
        {
            "_id": "osvTu9BnJuSiC8b8M",
            "name": "data-loss-prevention",
            "fname": "data-loss-prevention",
            "t": "p"
        },
        {
            "_id": "H3Li6yWc5tz2hbvmu",
            "name": "demo-channel-12-11",
            "fname": "demo-channel-12-11",
            "t": "p"
        },
        {
            "_id": "ThS4AKxCgBfv5xqQD",
            "fname": "Omnichannel Facebook Setup",
            "name": "omnichannel-facebook-setup",
            "t": "c"
        },
        {
            "_id": "phqYWtZZrGWrEZWue",
            "fname": "Omnichannel Instagram Setup",
            "name": "omnichannel-instagram-setup",
            "t": "p"
        },
        {
            "_id": "ZhB63qsrJMQ7k3RYx",
            "fname": "Omnichannel Twitter Setup",
            "name": "omnichannel-twitter-setup",
            "t": "p"
        },
        {
            "_id": "umr9xvCpqCBtsjYkE",
            "fname": "Omnichannel WhatsApp Setup",
            "name": "omnichannel-whatsapp-setup",
            "t": "c"
        }
    ],
    "success": true
}

Errors

The following errors can occur:

  • Authorization: Requires an authentication token for the request to be made.

  • Selector Param: Requires selector param for the request to be made.

{
    "status": "error",
    "message": "You must be logged in to do this."
}

Last updated

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