---
title: "List team members"
method: GET
path: "/api/v3/teams/{team_id}/members"
tags: ["Team Members"]
---

# List team members

`GET /api/v3/teams/{team_id}/members`

## Request

- Base URL: `https://codemagic.io`
- URL: `https://codemagic.io/api/v3/teams/{team_id}/members`
- Auth: API key in header `x-auth-token`
- TypeScript: <https://skmtc.dev/codemagic/apis/codemagic-api/docs/api/v3/teams/:team_id/members/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `team_id` string, required

## Query parameters

- `page_size` integer: The maximum number of results per page.
- `page` integer: The page number of the results to fetch.
- `id` unknown[], nullable: User IDs to filter by.
  - unknown
- `role` 'owner' | 'admin' | 'member' | 'app_scoped'

## Response `200`

Request fulfilled, document follows

- TeamMemberSchemaClassicPagination
  - `data` TeamMemberSchema[], required
    - `id` string, required
    - `role` 'admin' | 'member' | 'app_scoped', required: Deprecated, use `team_roles` and `app_grants`. Reports `owner` as `admin`.
    - `team_roles` MemberTeamRole[], required: Team roles held, highest first. Empty for a member with app grants only.
    - `app_grants` AppGrantSchema[], required: Per-application roles held.
      - `app_id` string, required
      - `role` 'app_developer' | 'app_viewer', required: An app role a member or an invitee can hold.
    - `email` string, required
    - `name` string, nullable, required
    - `avatar_url` string, nullable, required
    - `created_at` string, date-time, required
  - `page_size` integer, required
  - `current_page` integer, required
  - `total_pages` integer, required

## Other responses

- `400`: The request could not be validated
- `401`: Authentication is missing or invalid
- `403`: The caller lacks the required permission
- `404`: The requested resource does not exist
- `429`: The rate limit has been exceeded

---

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