Admin team search
const url = 'https://api.deploybase.eu/api/v1/api/v1/admin/teams/search?q=example';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.deploybase.eu/api/v1/api/v1/admin/teams/search?q=example' \ --header 'Authorization: <Authorization>'Finds teams by anything an operator is likely to be holding: team name or slug, team UUID (prefix), owner email, project subdomain, project slug, or custom domain. Each hit says which of those matched. Cross-team by design; platform_admin only.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “ Query Parameters ”Search term, at least 2 characters
Maximum teams to return, 1-20 (default 8)
Responses
Section titled “ Responses ”OK
object
object
object
Query echoes the trimmed term the search actually ran with, so a client that debounces can tell a stale response from the current one.
object
MatchedOn is a short human phrase: “team name”, “owner email”, “project subdomain blog”, “custom domain example.com”. It is built in SQL from the row that matched, so it always describes the actual hit rather than being guessed at afterwards.
OwnerEmail is resolved by the same ownerPreferenceOrder as the admin team list, so the person named here is the person named there. Empty for a team with no members.
Example generated
{ "data": { "query": "example", "teams": [ { "matched_on": "example", "owner_email": "example", "team_id": "example", "team_name": "example" } ] }, "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}The term is shorter than 2 characters, or limit is out of range
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Unauthorized
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Forbidden
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Internal Server Error
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}