v5

latestSwagger 2.0MIT2026-08-03485217850.7 KB
repository

List a repository's teams

get/repos/{owner}/{repo}/teams

Path parameters

ownerstring required

owner of the repo

repostring required

name of the repo

Response

TeamList

can_create_org_repoboolean

Whether the team can create repositories in the organization

descriptionstring

The description of the team

idinteger

The unique identifier of the team

includes_all_repositoriesboolean

Whether the team has access to all repositories in the organization

namestring

The name of the team

permission'none' | 'read' | 'write' | 'admin' | 'owner'
unitsstring[]

Deprecated: This variable should be replaced by UnitsMap and will be dropped in later versions.

units_mapobject
visibility'public' | 'limited' | 'private'

Team visibility within the organization. "private" teams are only listable by members and org owners; "limited" teams are listable by any organization member; "public" teams are listable by any signed-in user.

Example response

[
  {
    "units": [
      "repo.code",
      "repo.issues",
      "repo.ext_issues",
      "repo.wiki",
      "repo.pulls",
      "repo.releases",
      "repo.projects",
      "repo.ext_wiki"
    ],
    "units_map": {
      "repo.code": "read",
      "repo.ext_issues": "none",
      "repo.ext_wiki": "none",
      "repo.issues": "write",
      "repo.projects": "none",
      "repo.pulls": "owner",
      "repo.releases": "none",
      "repo.wiki": "admin"
    }
  }
]