---
title: "List teams"
method: POST
path: "/api/v2/teams/list"
tags: ["Teams"]
---

# List teams

`POST /api/v2/teams/list`

## Request

- Base URL: `https://zeropath.com`
- URL: `https://zeropath.com/api/v2/teams/list`
- Auth: API key in header `X-ZeroPath-API-Token-Id` and API key in header `X-ZeroPath-API-Token-Secret`

List all teams in the organization, including each team's member count, contributor count, repository count, and whether it is the default team.

## Request body

- TeamsListRequest
  - `organizationId` string

## Response `200`

Teams list

- TeamsListResponse
  - `teams` TeamSummary[], required
    - `id` string, required
    - `name` string, required
    - `isDefault` boolean, required
    - `memberCount` integer, required
    - `contributorCount` integer, required
    - `totalMemberCount` integer, required
    - `repoCount` integer, required

## Other responses

- `400`: Error Response
- `401`: Error Response

---

[API](https://skmtc.dev/zeropath/apis/zeropath-api.md) - [All operations](https://skmtc.dev/zeropath/apis/zeropath-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zeropath/apis/zeropath-api/revisions/126e9c80ba0d?raw)
