---
updatedAt: 2025-06-10T22:02:16.000Z
agentTools:
  projectIndex: https://docs.kondukto.io/llms.txt
---

# Get Team Members

Returns a team's members

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "teams",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://{hostname}/api/v2/teams",
      "variables": {
        "hostname": {
          "default": "hostname"
        }
      }
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/{teamID}/members/": {
      "get": {
        "summary": "Get Team Members",
        "description": "Returns a team's members",
        "operationId": "get-team-members",
        "parameters": [
          {
            "name": "teamID",
            "in": "path",
            "description": "Team ID",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "start",
            "in": "query",
            "description": "Offset for pagination",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "How many records will return",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 30
            }
          },
          {
            "name": "q",
            "in": "query",
            "description": "Username or email (Contains)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Cookie",
            "in": "header",
            "description": "Personal Access Token",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"limit\": 30,\n    \"start\": 0,\n    \"total\": 3,\n    \"members\": [\n        {\n            \"id\": \"{userID}\",\n            \"username\": \"{username}\",\n            \"email\": \"{email}\",\n            \"teams\": [\n                \"{teamID}\",\n                \"{teamID}\"\n            ]\n        },\n        {\n            \"id\": \"{userID}\",\n            \"username\": \"{username}\",\n            \"email\": \"{email}\",\n            \"teams\": [\n                \"{teamID}\",\n                \"{teamID}\"\n            ]\n        },\n        {\n            \"id\": \"{userID}\",\n            \"username\": \"{username}\",\n            \"email\": \"{email}\",\n            \"teams\": [\n                \"{teamID}\"\n            ]\n        }\n    ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "limit": {
                      "type": "integer",
                      "example": 30,
                      "default": 0
                    },
                    "start": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "total": {
                      "type": "integer",
                      "example": 3,
                      "default": 0
                    },
                    "members": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "example": "{userID}"
                          },
                          "username": {
                            "type": "string",
                            "example": "{username}"
                          },
                          "email": {
                            "type": "string",
                            "example": "{email}"
                          },
                          "teams": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "example": "{teamID}"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"error\": \"failed to authorize\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "failed to authorize"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl --location --request GET 'http(s)://{hostname}/api/v2/teams/{teamID}/members/?start=0&limit=30&q={usernameOrEmailContains}' \\\n--header 'X-Cookie: {token}'"
            },
            {
              "language": "python",
              "code": "import requests\n\nurl = \"http(s)://{hostname}/api/v2/teams/{teamID}/members/start=0&limit=30&?q={usernameOrEmailContains}\"\n\npayload={}\nheaders = {\n  'X-Cookie': '{token}'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
            }
          ],
          "samples-languages": [
            "curl",
            "python"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```