Get
/api/v1/rooms.autocomplete.channelAndPrivate
List the public and private rooms whose names match a given string, excluding discussions, DMs, and omnichannel rooms. The endpoint is valuable when performing search operations. It returns only rooms that the user belongs to.
Header parameters
X-Auth-Token
stringRequired
The authToken
of the authenticated user.
ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
X-User-Id
stringRequired
The userId
of the authenticated user.
ExamplerbAXPnMktTFbNpwtJ
Query parameters
selector
stringRequired
The term to be completed. It only applies to room name.
Example{"name":"ran"}
Responses
200
400
401
OK
object
items
Array of object
object
_id
string
fname
string
name
string
t
string
success
boolean