---
title: "Admin Autocomplete Room Name for Private and Public Rooms"
slug: "admin-autocomplete-room-name-for-private-and-public-rooms"
status: "update"
updated: 2026-09-15T14:10:09Z
published: 2026-09-15T14:10:09Z
canonical: "developer.rocket.chat/admin-autocomplete-room-name-for-private-and-public-rooms"
---
> ## Documentation Index
> Fetch the complete documentation index at: https://developer.rocket.chat/llms.txt
> Use this file to discover all available pages before exploring further.
# Admin Autocomplete Room Name for Private and Public Rooms
Get/api/v1/rooms.autocomplete.adminRooms
List public and private rooms whose names match a given string, excluding [DMs](https://docs.rocket.chat/docs/direct-messages), and [omnichannel rooms](https://docs.rocket.chat/docs/omnichannel). This endpoint is valuable when performing search operations. Only workspace administrators can use it. Any one of the following permissions are required:
- `view-room-administration`
- `can-audit`
Header parametersX-Auth-TokenstringRequired
The `authToken` of the authenticated user.
ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
X-User-IdstringRequired
The `userId` of the authenticated user.
ExamplerbAXPnMktTFbNpwtJ
Query parametersselectorstringRequired
The term to be completed. It applies to room name and display name.
Example{"name":"ran"}
Responses200
OK
Success
```json
{
"items": [
{
"_id": "664f0d815df46832f75b1877",
"fname": "rangig",
"name": "Ch9xkYwGHnsLe7CQR",
"t": "c"
},
{
"_id": "664f0d525df46832f75b1860",
"fname": "rancher",
"name": "rancher",
"t": "p"
},
{
"_id": "6630e94ad2226209149c67e2",
"fname": "random",
"name": "random",
"t": "c"
}
],
"success": true
}
```
Expand Allobject items Array of object object _idstring
fnamestring
namestring
tstring
successboolean
400
Bad Request
Selector Param Required
```json
{
"success": false,
"error": "The 'selector' param is required"
}
```
object successboolean
errorstring
401
Unauthorized
Authorization Error
```json
{
"status": "error",
"message": "You must be logged in to do this."
}
```
object statusstring
messagestring