Fuselage
Autocomplete private channel
URL
Requires Auth
HTTP Method
/api/v1/rooms.autocomplete.channelAndPrivate
yes
GET

Parameters

Argument
Example
Required
selector
{ "exceptions" : []}
Required

Example Call

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

Result

Success

1
{
2
"items": [
3
{
4
"_id": "osvTu9BnJuSiC8b8M",
5
"name": "data-loss-prevention",
6
"fname": "data-loss-prevention",
7
"t": "p"
8
},
9
{
10
"_id": "H3Li6yWc5tz2hbvmu",
11
"name": "demo-channel-12-11",
12
"fname": "demo-channel-12-11",
13
"t": "p"
14
},
15
{
16
"_id": "ThS4AKxCgBfv5xqQD",
17
"fname": "Omnichannel Facebook Setup",
18
"name": "omnichannel-facebook-setup",
19
"t": "c"
20
},
21
{
22
"_id": "phqYWtZZrGWrEZWue",
23
"fname": "Omnichannel Instagram Setup",
24
"name": "omnichannel-instagram-setup",
25
"t": "p"
26
},
27
{
28
"_id": "ZhB63qsrJMQ7k3RYx",
29
"fname": "Omnichannel Twitter Setup",
30
"name": "omnichannel-twitter-setup",
31
"t": "p"
32
},
33
{
34
"_id": "umr9xvCpqCBtsjYkE",
35
"fname": "Omnichannel WhatsApp Setup",
36
"name": "omnichannel-whatsapp-setup",
37
"t": "c"
38
}
39
],
40
"success": true
41
}
Copied!

Errors

The following error can occur upon the endpoint.‌
  • Authorization: Requires an authentication token for the request to be made.
  • Selector Param: Requires selector param for the request to be made.
Authorization
Selector Param
1
{
2
"status": "error",
3
"message": "You must be logged in to do this."
4
}
Copied!
1
{
2
"success": false,
3
"error": "The 'selector' param is required"
4
}
Copied!
Last modified 2mo ago
Export as PDF
Copy link
Edit on GitHub