Get a team by ID
GET
Returns a team, a group of users inside a project, by ID.
A deactivated team is still returned, with status deactivated.
header
AuthorizationBearer <token>Scope: team.read
team_id*stringThe team ID: the id that createTeam (POST /teams) or queryTeams (POST /teams/query) returns.
Match
^[a-zA-Z0-9_-]+$The team.
application/json- response
Details of a team.
id*stringThe unique identifier of the team.
name*stringThe name of the team.
status*team-statusThe lifecycle state of a team.
active: the team is available for use.deactivated: the team is no longer active but is retained for historical and audit purposes.
Value in
"active""deactivated"created_at*stringThe time when the team was created.
Format
date-timeupdated_at*stringThe time when the team was last updated.
Format
date-timeExample Request
import { configureZitadel, getApi } from "@zitadel/api/config";// In the browser, through the SDK proxy: the session cookie authenticates the call.const api = getApi(configureZitadel({ projectId: "proj_01KWH1P4MYS7F0N9WD3P2E4YM5" }));const team = await api.getTeam("team_01KZZY8PX8K8ATNVDSMRCZY4N1");Example Response
{ "id": "string", "name": "string", "status": "active", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}Was this helpful?