How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

GitHub Teams API

Interact with GitHub Teams.

GitHub Teams API is one of 129 APIs that GitHub publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

This API exposes 6 JSON Schema definitions.

Tagged areas include Team. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an AsyncAPI specification, an API reference, and 6 JSON Schemas.

This API exposes 65 operations across 32 paths, and defines 36 schemas. It is described by OpenAPI 3.2.0, at version 1.1.4.

Requests are made against 2 base URLs: https://api.github.com, {protocol}://{hostname}/api/v3.

65 operations 32 paths 36 schemas 14 DELETE32 GET7 PATCH5 POST7 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.1.4
Base URL
https://api.github.com
Contact
License
Terms of Service
Resource Areas
1

Paths & Operations 65

Across 32 paths, the API surfaces 65 operations — 14 DELETE, 32 GET, 7 PATCH, 5 POST, 7 PUT. Each is listed below with its method, path, parameters, and response codes.

Teams 65

Interact with GitHub Teams.

GET
/orgs/{org}/teams
List teams
teams/list 4 params → 200403
POST
/orgs/{org}/teams
Create a team
teams/create 1 param body → 201422403
GET
/orgs/{org}/teams/{team_slug}
Get a team by name
teams/get-by-name 2 params → 200404
PATCH
/orgs/{org}/teams/{team_slug}
Update a team
teams/update-in-org 2 params body → 200201404422403
DELETE
/orgs/{org}/teams/{team_slug}
Delete a team
teams/delete-in-org 2 params → 204422
GET
/orgs/{org}/teams/{team_slug}/invitations
List pending team invitations
teams/list-pending-invitations-in-org 4 params → 200422
GET
/orgs/{org}/teams/{team_slug}/members
List team members
teams/list-members-in-org 5 params → 200
GET
/orgs/{org}/teams/{team_slug}/memberships/{username}
Get team membership for a user
teams/get-membership-for-user-in-org 3 params → 200404
PUT
/orgs/{org}/teams/{team_slug}/memberships/{username}
Add or update team membership for a user
teams/add-or-update-membership-for-user-in-org 3 params body → 200403422
DELETE
/orgs/{org}/teams/{team_slug}/memberships/{username}
Remove team membership for a user
teams/remove-membership-for-user-in-org 3 params → 204403
GET
/orgs/{org}/teams/{team_slug}/repos
List team repositories
teams/list-repos-in-org 4 params → 200
GET
/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}
Check team permissions for a repository
teams/check-permissions-for-repo-in-org 4 params → 200204404
PUT
/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}
Add or update team repository permissions
teams/add-or-update-repo-permissions-in-org 4 params body → 204
DELETE
/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}
Remove a repository from a team
teams/remove-repo-in-org 4 params → 204
GET
/orgs/{org}/teams/{team_slug}/teams
List child teams
teams/list-child-in-org 4 params → 200
GET
/teams/{team_id}deprecated
Get a team (Legacy)
teams/get-legacy 1 param → 200404
PATCH
/teams/{team_id}deprecated
Update a team (Legacy)
teams/update-legacy 1 param body → 200201404422403
DELETE
/teams/{team_id}deprecated
Delete a team (Legacy)
teams/delete-legacy 1 param → 204404422
GET
/teams/{team_id}/invitationsdeprecated
List pending team invitations (Legacy)
teams/list-pending-invitations-legacy 3 params → 200
GET
/teams/{team_id}/membersdeprecated
List team members (Legacy)
teams/list-members-legacy 4 params → 200404
GET
/teams/{team_id}/members/{username}deprecated
Get team member (Legacy)
teams/get-member-legacy 2 params → 204404
PUT
/teams/{team_id}/members/{username}deprecated
Add team member (Legacy)
teams/add-member-legacy 2 params → 204404422403
DELETE
/teams/{team_id}/members/{username}deprecated
Remove team member (Legacy)
teams/remove-member-legacy 2 params → 204404
GET
/teams/{team_id}/memberships/{username}deprecated
Get team membership for a user (Legacy)
teams/get-membership-for-user-legacy 2 params → 200404
PUT
/teams/{team_id}/memberships/{username}deprecated
Add or update team membership for a user (Legacy)
teams/add-or-update-membership-for-user-legacy 2 params body → 200403422404
DELETE
/teams/{team_id}/memberships/{username}deprecated
Remove team membership for a user (Legacy)
teams/remove-membership-for-user-legacy 2 params → 204403
GET
/teams/{team_id}/reposdeprecated
List team repositories (Legacy)
teams/list-repos-legacy 3 params → 200404
GET
/teams/{team_id}/repos/{owner}/{repo}deprecated
Check team permissions for a repository (Legacy)
teams/check-permissions-for-repo-legacy 3 params → 200204404
PUT
/teams/{team_id}/repos/{owner}/{repo}deprecated
Add or update team repository permissions (Legacy)
teams/add-or-update-repo-permissions-legacy 3 params body → 204403422
DELETE
/teams/{team_id}/repos/{owner}/{repo}deprecated
Remove a repository from a team (Legacy)
teams/remove-repo-legacy 3 params → 204
GET
/teams/{team_id}/teamsdeprecated
List child teams (Legacy)
teams/list-child-legacy 3 params → 200404403422
GET
/user/teams
List teams for the authenticated user
teams/list-for-authenticated-user 2 params → 200304404403
GET
/orgs/{org}/external-group/{group_id}
GitHub Get an External Group
teams/external-idp-group-info-for-org 2 params → 200
GET
/orgs/{org}/external-groups
GitHub List External Groups in an Organization
teams/list-external-idp-groups-for-org 4 params → 200
GET
/orgs/{org}/teams/{team_slug}/discussions
GitHub List Discussions
teams/list-discussions-in-org 6 params → 200
POST
/orgs/{org}/teams/{team_slug}/discussions
GitHub Create a Discussion
teams/create-discussion-in-org 2 params body → 201
GET
/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}
GitHub Get a Discussion
teams/get-discussion-in-org 3 params → 200
PATCH
/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}
GitHub Update a Discussion
teams/update-discussion-in-org 3 params body → 200
DELETE
/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}
GitHub Delete a Discussion
teams/delete-discussion-in-org 3 params → 204
GET
/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments
GitHub List Discussion Comments
teams/list-discussion-comments-in-org 6 params → 200
POST
/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments
GitHub Create a Discussion Comment
teams/create-discussion-comment-in-org 3 params body → 201
GET
/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}
GitHub Get a Discussion Comment
teams/get-discussion-comment-in-org 4 params → 200
PATCH
/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}
GitHub Update a Discussion Comment
teams/update-discussion-comment-in-org 4 params body → 200
DELETE
/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}
GitHub Delete a Discussion Comment
teams/delete-discussion-comment-in-org 4 params → 204
GET
/orgs/{org}/teams/{team_slug}/external-groups
GitHub List a Connection Between an External Group and a Team
teams/list-linked-external-idp-groups-to-team-for-org 2 params → 200
PATCH
/orgs/{org}/teams/{team_slug}/external-groups
GitHub Update the Connection Between an External Group and a Team
teams/link-external-idp-group-to-team-for-org 2 params body → 200
DELETE
/orgs/{org}/teams/{team_slug}/external-groups
GitHub Remove the Connection Between an External Group and a Team
teams/unlink-external-idp-group-from-team-for-org 2 params → 204
GET
/orgs/{org}/teams/{team_slug}/projects
GitHub List Team Projects
teams/list-projects-in-org 4 params → 200
GET
/orgs/{org}/teams/{team_slug}/projects/{project_id}
GitHub Check Team Permissions for a Project
teams/check-permissions-for-project-in-org 3 params → 200404
PUT
/orgs/{org}/teams/{team_slug}/projects/{project_id}
GitHub Add or Update Team Project Permissions
teams/add-or-update-project-permissions-in-org 3 params body → 204403
DELETE
/orgs/{org}/teams/{team_slug}/projects/{project_id}
GitHub Remove a Project from a Team
teams/remove-project-in-org 3 params → 204
GET
/teams/{team_id}/discussionsdeprecated
GitHub List Discussions (Legacy)
teams/list-discussions-legacy 4 params → 200
POST
/teams/{team_id}/discussionsdeprecated
GitHub Create a Discussion (Legacy)
teams/create-discussion-legacy 1 param body → 201
GET
/teams/{team_id}/discussions/{discussion_number}deprecated
GitHub Get a Discussion (Legacy)
teams/get-discussion-legacy 2 params → 200
PATCH
/teams/{team_id}/discussions/{discussion_number}deprecated
GitHub Update a Discussion (Legacy)
teams/update-discussion-legacy 2 params body → 200
DELETE
/teams/{team_id}/discussions/{discussion_number}deprecated
GitHub Delete a Discussion (Legacy)
teams/delete-discussion-legacy 2 params → 204
GET
/teams/{team_id}/discussions/{discussion_number}/commentsdeprecated
GitHub List Discussion Comments (Legacy)
teams/list-discussion-comments-legacy 5 params → 200
POST
/teams/{team_id}/discussions/{discussion_number}/commentsdeprecated
GitHub Create a Discussion Comment (Legacy)
teams/create-discussion-comment-legacy 2 params body → 201
GET
/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}deprecated
GitHub Get a Discussion Comment (Legacy)
teams/get-discussion-comment-legacy 3 params → 200
PATCH
/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}deprecated
GitHub Update a Discussion Comment (Legacy)
teams/update-discussion-comment-legacy 3 params body → 200
DELETE
/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}deprecated
GitHub Delete a Discussion Comment (Legacy)
teams/delete-discussion-comment-legacy 3 params → 204
GET
/teams/{team_id}/projectsdeprecated
GitHub List Team Projects (Legacy)
teams/list-projects-legacy 3 params → 200404
GET
/teams/{team_id}/projects/{project_id}deprecated
GitHub Check Team Permissions for a Project (Legacy)
teams/check-permissions-for-project-legacy 2 params → 200404
PUT
/teams/{team_id}/projects/{project_id}deprecated
GitHub Add or Update Team Project Permissions (Legacy)
teams/add-or-update-project-permissions-legacy 2 params body → 204403404422
DELETE
/teams/{team_id}/projects/{project_id}deprecated
GitHub Remove a Project from a Team (Legacy)
teams/remove-project-legacy 2 params → 204404422

Schemas 36

The contract defines 36 schemas that model the data the API accepts and returns. The most detailed are minimal-repository (90 properties), team-repository_2 (89 properties), team-repository (89 properties), minimal-repository_2 (87 properties). Each schema is shown below with its type and property counts.

security-and-analysis
objectnull
10 properties
organization-invitation
object
Organization Invitation
12 properties 9 required
team-repository
object
A team's access to a repository.
89 properties 73 required
basic-error
object
Basic Error
4 properties
validation-error
object
Validation Error
3 properties 2 required
ldap-dn
string
The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.
team-member
object
A user that is a member of a team, including their role on the team and whether the membership is inherited from a child team.
24 properties 18 required
team-full
object
Groups of organization members that gives permissions on specified repositories.
22 properties 16 required
minimal-repository
object
Minimal Repository
90 properties 46 required
code-of-conduct
object
Code Of Conduct
5 properties 4 required
simple-user
object
A GitHub user.
22 properties 18 required
license-simple
object
License Simple
6 properties 5 required
team-membership
object
Team Membership
3 properties 3 required
team-simple
object
Groups of organization members that gives permissions on specified repositories.
16 properties 11 required
team
object
Groups of organization members that gives permissions on specified repositories.
18 properties 12 required
team-organization
object
Team Organization
49 properties 23 required
security-and-analysis_2
objectnull
3 properties
nullable-team-simple
objectnull
Groups of organization members that gives permissions on specified repositories.
12 properties 10 required
team-repository_2
object
A team's access to a repository.
89 properties 73 required
external-group
object
Information about an external group's usage and its members
5 properties 4 required
basic-error_2
object
Basic Error
4 properties
validation-error_2
object
Validation Error
3 properties 2 required
team-project
object
A team's access to a project.
16 properties 14 required
external-groups
object
A list of external groups available to be connected to a team
1 property
team-discussion-comment
object
A reply to a discussion within a team.
13 properties 12 required
nullable-license-simple
objectnull
License Simple
6 properties 5 required
team-full_2
object
Groups of organization members that gives permissions on specified repositories.
18 properties 15 required
nullable-simple-user
objectnull
A GitHub user.
21 properties 18 required
minimal-repository_2
object
Minimal Repository
87 properties 46 required
simple-user_2
object
A GitHub user.
21 properties 18 required
team-discussion
object
A team discussion is a persistent record of a free-form conversation within a team.
18 properties 17 required
code-of-conduct_2
object
Code Of Conduct
5 properties 4 required
team-membership_2
object
Team Membership
3 properties 3 required
team_2
object
Groups of organization members that gives permissions on specified repositories.
13 properties 11 required
team-organization_2
object
Team Organization
48 properties 23 required
reaction-rollup
object
10 properties 10 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

github-teams-api-openapi.yml Raw ↑

Other APIs GitHub publishes across the network.

GitHub Gists API
GitHub Issues API
GitHub Licenses API
GitHub Markdown API
GitHub Meta API
GitHub Projects API
GitHub Repos API
GitHub Search API
GitHub User API
GitHub Deployments API
GitHub Releases API
GitHub Pages API
Where this information came from

This is an independent, third-party profile of GitHub Teams API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.