Get Team
GET /teams/{team_id}
GET /teams/{team_id}Interactive request editor loads with JavaScript.
Authorization
BearerAdminToken Organization-scoped admin token. Read operations require a valid token, and write operations require a token with write permission.
In: header
Path Parameters
Team ID within the organization.
uuidResponse Body
application/json
application/json
application/json
application/json
curl -X GET "$AISIX_CP/teams/$TEAM_ID" \ -H "Authorization: Bearer $AISIX_TOKEN"OK
{
"team": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
"display_name": "string",
"description": "string",
"created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"member_count": 0
}
}Request body or parameters failed validation.
{
"error": {
"code": "string",
"message": "string"
}
}Missing or invalid bearer.
{
"error": {
"code": "UNAUTHENTICATED",
"message": "no org context"
}
}Resource not found.
{
"error": {
"code": "NOT_FOUND",
"message": "provider key not found"
}
}Complete operation details and schema variants
GET /teams/{team_id}
Get Team
Return one team with its current member count.
Parameters
team_id(path, string, required): Team ID within the organization.
Responses
-
200: OK -
team(object, required): -
team.id(string, required): Team ID. -
team.org_id(string, required): Organization that owns the team. -
team.display_name(string, required): Team name, unique within the organization. -
team.description(string, required): Free-text description. Empty when unset. -
team.created_by(string, required): User who created the team. -
team.created_at(string, required): -
team.updated_at(string, required): -
team.member_count(integer, required): Members currently on the team. -
400: Request body or parameters failed validation. -
error(object, required): Error details. -
error.code(string, required): Machine-readable identifier. Examples:UNAUTHENTICATED,INVALID_REQUEST,MASTER_KEY_UNSET,INTERNAL. -
error.message(string, required): Human-readable explanation; safe to surface to operators. -
401: Missing or invalid bearer. Response fields (application/json): identical toGET /teams/{team_id}, response 400 above. -
404: Resource not found. Response fields (application/json): identical toGET /teams/{team_id}, response 400 above.
cURL
curl -X GET '$AISIX_CP/teams/{team_id}' -H 'Authorization: Bearer $AISIX_TOKEN'