Docs

Get a team by ID

GET
/teams/{team_id}

Returns a team, a group of users inside a project, by ID.

A deactivated team is still returned, with status deactivated.

Authorization

headerAuthorizationBearer <token>

Scope: team.read

Path Parameters

team_id*string

The team ID: the id that createTeam (POST /teams) or queryTeams (POST /teams/query) returns.

Match^[a-zA-Z0-9_-]+$

Response Body

The team.

application/json
  1. response

Details of a team.

id*string

The unique identifier of the team.

name*string

The name of the team.

status*team-status

The 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*string

The time when the team was created.

Formatdate-time
updated_at*string

The time when the team was last updated.

Formatdate-time
Example 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?