--- title: "Autocomplete Team" slug: "autocomplete-team" updated: 2026-09-03T14:50:33Z published: 2026-09-03T14:50:33Z canonical: "developer.rocket.chat/autocomplete-team" stale: true --- > ## 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. # Autocomplete Team Get/api/v1/teams.autocomplete List the teams whose names match a given pattern. Header parametersX-Auth-TokenstringRequired The `authToken` of the authenticated user. ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f X-User-IdstringRequired The `userId` of the authenticated user. ExamplerbAXPnMktTFbNpwtJ Query parametersnamestringRequired The pattern (search filter for team names). Exampleteam Responses200 OK Success ```json { "teams": [ { "_id": "Dgh2xwJ3NFKWvKSqY", "name": "team1", "fname": "team1", "t": "p", "teamId": "607e0d9b49d493189836bfac" } ], "success": true } ``` Expand Allobject teams Array of object object _idstring namestring fnamestring tstring teamIdstring successboolean 401 Unauthorized Authorization Error ```json { "status": "error", "message": "You must be logged in to do this." } ``` object statusstring messagestring