Query teams
Returns the teams of a project, paginated with a cursor.
project_id names the project to list; without it, the credential's own
project is listed.
AuthorizationBearer <token>Scope: team.read
project_id?stringThe project the request addresses. Omit it to address the credential's own project.
^[a-zA-Z0-9_-]+$Request to query the teams of a project.
application/json- body
Request to query the teams of a project.
limit?limit1 <= value <= 10020page_token?|Token to retrieve the next page of results. Must be sent with the same
sorting as the request that issued the token. Omitting sorting reuses
the default sort and only succeeds when that default matches the token.
sorting?filter?array<>Filter criteria for querying teams.
The list of teams was returned successfully
application/json- response
Paginated list of teams.
teams*array<>next_page_token?|Token to pass as page_token in the next request to fetch the following page.
Absent when there are no more results. The follow-up request must repeat the
same sorting that produced this token (omit only when both pages use the default).
import { configureZitadel, getApi } from "@zitadel/api/config";// In the browser, through the SDK proxy: the session cookie authenticates the call.const client = getApi(configureZitadel({ projectId: "proj_01KWH1P4MYS7F0N9WD3P2E4YM5" }));const teams = await client.queryTeams({});{ "teams": [ { "id": "string", "name": "string", "status": "active", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } ], "next_page_token": "string"}Was this helpful?