---
title: "Get team members"
method: POST
path: "/api/v2/teams/getMembers"
tags: ["Teams"]
---

# Get team members

`POST /api/v2/teams/getMembers`

## Request

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

Retrieve the list of user members and external contributors for a team. User members have ZeroPath accounts; contributors are external identities discovered from version control history.

## Request body

- TeamIdRequest
  - `organizationId` string
  - `id` string, required

## Response `200`

Team members

- TeamsGetMembersResponse
  - `members` TeamMember[], required
    - `sources` union[], required: Independent membership grants. Directory removal preserves other grants; VCS-managed memberships may have no grant records.
      - union
        - object
          - `source` 'LEGACY' | 'MANUAL' | 'DEFAULT', required
          - `groupName` unknown, required
        - object
          - `source` 'DIRECTORY', required
          - `groupName` string, required
    - `id` string, required
    - `fullName` string, nullable, required
    - `email` string, required
    - `type` 'user', required
  - `contributors` TeamContributor[], required
    - `id` string, required
    - `fullName` string, nullable, required
    - `email` string, required
    - `username` string, nullable, required
    - `platform` string, nullable, required
    - `profileUrl` string, nullable, required
    - `profileImageUrl` string, nullable, required
    - `hasUserAccount` boolean, required
    - `type` 'contributor', required

## Other responses

- `400`: Error Response
- `401`: Error Response
- `404`: 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)
