v1

latestOpenAPI 3.0.32026-07-26233989.2 KB
Developer Metrics - Teams

List Teams

Returns all teams for the given organization. By default only active teams are returned; set include_inactive: true to include soft-deleted teams.

post/api/metrics/developer/teams/list

Request body

platform'github' | 'gitlab' | 'bitbucket' | 'azure_devops' | 'azuredevops' required

Version control platform

orgstring required

Organization, workspace, or group name on the platform

github_base_urlstring

Base URL for GitHub (use for GitHub Enterprise Server)

gitlab_base_urlstring

Base URL for GitLab (use for self-hosted GitLab instances)

azure_devops_base_urlstring

Base URL for Azure DevOps (use for Azure DevOps Server)

bitbucket_base_urlstring

Base URL for Bitbucket (use for Bitbucket Data Center/Server)

include_inactiveboolean

Include soft-deleted (inactive) teams

Example request

{
  "platform": "github",
  "org": "my-org",
  "github_base_url": "https://github.com",
  "gitlab_base_url": "https://gitlab.com",
  "azure_devops_base_url": "https://dev.azure.com",
  "bitbucket_base_url": "https://api.bitbucket.org/2.0"
}

Response

List of teams

statusstring
total_countinteger

Number of teams returned

Example response

{
  "status": "success",
  "teams": [
    {
      "name": "Backend Team",
      "description": "Responsible for API services",
      "color": "#1570EF",
      "members": [
        {
          "user_login": "jane@example.com",
          "user_name": "Jane Doe",
          "role": "member"
        }
      ],
      "repositories": [
        "my-org/backend-api"
      ]
    }
  ]
}