GitHub Teams API

Interact with GitHub Teams.

GitHub OpenAPI

Operations 32

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

2 of 32 operations are conformant: apis.io called them with no credentials and the responses matched this contract. Checked 2026-11-12. how this works · status file

GET /orgs/{org}/teams List the teams in an organization · List teams conformant #
Ask an LLM
“What teams exist in my organization?”
“Which teams in the org can I actually see with my account?”
Tell an agent
List every team in the {org} organization.
Show the teams visible to me in {org}, {per_page} per page.
POST /orgs/{org}/teams Create a team in an organization · Create a team #
Ask an LLM
“How do I create a new team in my GitHub organization?”
“Can I make a secret team that only its members and org owners can see?”
Tell an agent
Create a team called {name} in {org}.
Create team {name} in {org} with privacy {privacy} and description {description}.
GET /orgs/{org}/teams/{team_slug} Get a team by its slug · Get a team by name #
Ask an LLM
“How can I look up a team's details from its slug?”
“What privacy setting and parent does a particular team have?”
Tell an agent
Get the team {team_slug} in {org}.
Show me the details of the {team_slug} team in the {org} organization.
PATCH /orgs/{org}/teams/{team_slug} Update a team's settings · Update a team #
Ask an LLM
“Can I rename an existing team or change its description?”
“How would I move an existing team under a different parent team?”
Tell an agent
Rename team {team_slug} in {org} to {name}.
Change the privacy of team {team_slug} in {org} to {privacy}.
DELETE /orgs/{org}/teams/{team_slug} Delete a team from an organization · Delete a team #
Ask an LLM
“What happens to child teams when I delete a parent team in my org?”
“Who is allowed to delete a team in an organization?”
Tell an agent destructive · confirm first
Delete the team {team_slug} from {org}.
Remove team {team_slug} entirely from the {org} organization.
GET /orgs/{org}/teams/{team_slug}/invitations List pending team invitations #
GET /orgs/{org}/teams/{team_slug}/members List the members of a team · List team members #
Ask an LLM
“Who is on a particular team in my org?”
“Can I list only the maintainers of a team?”
Tell an agent
List the members of team {team_slug} in {org}.
Show members of {team_slug} in {org} who have the {role} role.
GET /orgs/{org}/teams/{team_slug}/memberships/{username} Check a user's membership in a team · Get team membership for a user #
Ask an LLM
“Is a specific person a member or maintainer of my team?”
“Can I tell whether someone's team membership is still pending?”
Tell an agent
Check {username}'s membership in team {team_slug} in {org}.
Get the team role and membership state of {username} on {team_slug} in the {org} org.
PUT /orgs/{org}/teams/{team_slug}/memberships/{username} Add a user to a team or change their role · Add or update team membership for a user #
Ask an LLM
“How do I add someone in my org to a team?”
“Can I promote a team member to maintainer?”
Tell an agent
Add {username} to team {team_slug} in {org}.
Set {username}'s role on team {team_slug} in {org} to {role}.
DELETE /orgs/{org}/teams/{team_slug}/memberships/{username} Remove a user from a team · Remove team membership for a user #
Ask an LLM
“How can I take someone off a team without removing them from the org?”
“What permission do I need to remove a person from a team?”
Tell an agent destructive · confirm first
Remove {username} from team {team_slug} in {org}.
Take user {username} off the {team_slug} team in the {org} organization.
GET /orgs/{org}/teams/{team_slug}/repos List a team's repositories · List team repositories #
Ask an LLM
“Which repositories does my team have access to?”
“What repos are assigned to a team in the org?”
Tell an agent
List the repositories for team {team_slug} in {org}.
Show every repo the {team_slug} team in {org} can access.
GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo} Check a team's permission on a repository · Check team permissions for a repository #
Ask an LLM
“Does a team have push or admin rights on a specific repo?”
“What level of access does my team have to a repository, counting parent teams?”
Tell an agent
Check what repository role team {team_slug} holds on the {owner}/{repo} repo in {org}.
Tell me whether {team_slug} in {org} can push to repository {owner}/{repo}.
PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo} Grant a team access to a repository · Add or update team repository permissions #
Ask an LLM
“How do I give a team access to a repository?”
“Can I set a team to triage or maintain on a repo instead of full admin?”
Tell an agent
Add repository {owner}/{repo} to team {team_slug} in {org}.
Give team {team_slug} in {org} {permission} access to {owner}/{repo}.
DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo} Remove a repository from a team · Remove a repository from a team #
Ask an LLM
“How can I stop a team from accessing a repository?”
“Does taking a repo away from a team delete the repo itself?”
Tell an agent destructive · confirm first
Detach the {owner}/{repo} repository from team {team_slug} in {org}.
Revoke the {team_slug} team's access to repository {owner}/{repo} in the {org} org.
GET /orgs/{org}/teams/{team_slug}/teams List a team's child teams · List child teams #
Ask an LLM
“Which teams are nested under a given parent team?”
“What sub-teams does my team have?”
Tell an agent
List the child teams of {team_slug} in {org}.
Show the nested sub-teams beneath team {team_slug} in the {org} org.
GET /teams/{team_id} Get a team by numeric ID (legacy) · Get a team (Legacy) #
Ask an LLM
“Can I still fetch a team using only its numeric team ID?”
“Is the old get-team-by-ID route deprecated?”
Tell an agent
Using the legacy team ID route, get team {team_id}.
Fetch team details for numeric ID {team_id} via the deprecated endpoint.
PATCH /teams/{team_id} Update a team by numeric ID (legacy) · Update a team (Legacy) #
Ask an LLM
“Can I rename a team through the old team ID endpoint?”
“Does the deprecated team update route require the name every time?”
Tell an agent
Using the legacy team ID route, rename team {team_id} to {name}.
Via the deprecated endpoint, set numeric team {team_id} name {name} and privacy {privacy}.
DELETE /teams/{team_id} Delete a team by numeric ID (legacy) · Delete a team (Legacy) #
Ask an LLM
“Can I delete a team when all I have is its numeric ID?”
“Is deleting a team through the old ID-based route still supported?”
Tell an agent destructive · confirm first
Using the legacy team ID route, delete team {team_id}.
Delete numeric team ID {team_id} via the deprecated endpoint.
GET /teams/{team_id}/invitations List pending team invitations (Legacy) #
GET /teams/{team_id}/members List team members by team ID (legacy) · List team members (Legacy) #
Ask an LLM
“Can I list a team's members using its numeric ID instead of its slug?”
“Is the ID-based team member list deprecated?”
Tell an agent
Using the legacy team ID route, list members of team {team_id}.
Via the deprecated endpoint, show numeric team {team_id} people with the {role} role.
GET /teams/{team_id}/members/{username} Check if a user is a team member (legacy) · Get team member (Legacy) #
Ask an LLM
“Is there an older endpoint that just tells me whether someone is on a team?”
“Does the deprecated get-team-member check include pending memberships?”
Tell an agent
Using the old get-team-member endpoint, check if {username} is on team {team_id}.
Confirm via the deprecated team member check that {username} belongs to numeric team {team_id}.
PUT /teams/{team_id}/members/{username} Add a user to a team (legacy add-member) · Add team member (Legacy) #
Ask an LLM
“Is there an older add-team-member endpoint that takes a numeric team ID?”
“Why is the old add team member call deprecated in favor of memberships?”
Tell an agent
Using the old add-team-member endpoint, add {username} to team {team_id}.
Put {username} on numeric team {team_id} with the deprecated add member call.
DELETE /teams/{team_id}/members/{username} Remove a user from a team (legacy remove-member) · Remove team member (Legacy) #
Ask an LLM
“Is there an old remove-team-member endpoint that works by team ID?”
“What replaced the deprecated remove team member call?”
Tell an agent destructive · confirm first
Using the old remove-team-member endpoint, remove {username} from team {team_id}.
Take {username} off numeric team {team_id} with the deprecated remove member call.
GET /teams/{team_id}/memberships/{username} Get a user's team membership by team ID (legacy) · Get team membership for a user (Legacy) #
Ask an LLM
“Can I check someone's team role and membership state by numeric team ID?”
“Is the ID-based team membership lookup being retired?”
Tell an agent
Using the legacy team ID route, get {username}'s membership in team {team_id}.
Via the deprecated memberships endpoint, show the role and state of {username} on numeric team {team_id}.
PUT /teams/{team_id}/memberships/{username} Add or change a team membership by team ID (legacy) · Add or update team membership for a user (Legacy) #
Ask an LLM
“Can I set someone's team role using the numeric team ID memberships route?”
“Is adding memberships by team ID deprecated?”
Tell an agent
Using the legacy team ID route, add membership for {username} on team {team_id}.
Via the deprecated memberships endpoint, make {username} a {role} of numeric team {team_id}.
DELETE /teams/{team_id}/memberships/{username} Remove a team membership by team ID (legacy) · Remove team membership for a user (Legacy) #
Ask an LLM
“Can I remove someone's team membership using the numeric team ID route?”
“Is the ID-based memberships removal endpoint deprecated?”
Tell an agent destructive · confirm first
Using the legacy team ID route, delete {username}'s membership on team {team_id}.
Via the deprecated memberships endpoint, end membership of {username} in numeric team {team_id}.
GET /teams/{team_id}/repos List team repositories by team ID (legacy) · List team repositories (Legacy) #
Ask an LLM
“Can I list a team's repos using the numeric team ID?”
“Is the ID-based team repository list deprecated?”
Tell an agent
Using the legacy team ID route, list repositories for team {team_id}.
Via the deprecated endpoint, show repos accessible to numeric team {team_id}.
GET /teams/{team_id}/repos/{owner}/{repo} Check team repository access by team ID (legacy) · Check team permissions for a repository (Legacy) #
Ask an LLM
“Can I see whether a numeric team ID has push, triage or admin on a repo?”
“Is the ID-based repository permission check being removed?”
Tell an agent
Using the legacy team ID route, check whether team {team_id} can pull, push or administer repository {owner}/{repo}.
Via the deprecated endpoint, tell me numeric team {team_id} access level for repository {owner}/{repo}.
PUT /teams/{team_id}/repos/{owner}/{repo} Grant a team repo access by team ID (legacy) · Add or update team repository permissions (Legacy) #
Ask an LLM
“Can I add a repository to a team using the numeric team ID route?”
“Is setting team repository permissions by team ID deprecated?”
Tell an agent
Using the legacy team ID route, attach the {owner}/{repo} repository to team {team_id}.
Via the deprecated endpoint, give numeric team {team_id} {permission} on repository {owner}/{repo}.
DELETE /teams/{team_id}/repos/{owner}/{repo} Remove a repository from a team by ID (legacy) · Remove a repository from a team (Legacy) #
Ask an LLM
“Can I remove a repo from a team via the numeric team ID route?”
“Is the ID-based remove-repository endpoint deprecated?”
Tell an agent destructive · confirm first
Using the legacy team ID route, detach the {owner}/{repo} repository from team {team_id}.
Via the deprecated endpoint, revoke numeric team {team_id} access to repository {owner}/{repo}.
GET /teams/{team_id}/teams List child teams by team ID (legacy) · List child teams (Legacy) #
Ask an LLM
“Can I list a team's sub-teams with only its numeric team ID?”
“Is the ID-based child teams list deprecated?”
Tell an agent
Using the legacy team ID route, list child teams of team {team_id}.
Via the deprecated endpoint, show teams nested beneath numeric team {team_id}.
GET /user/teams List my teams across all organizations · List teams for the authenticated user conformant #
Ask an LLM
“Which teams am I on across every organization I belong to?”
“What scope does my token need to list my own teams?”
Tell an agent
List all the teams I belong to across my organizations.
Show my team memberships across every org, {per_page} per page.

Documentation

📖
Documentation
https://docs.github.com/en/rest/apps
📖
Documentation
https://docs.github.com/en/rest/codes-of-conduct/codes-of-conduct
📖
Documentation
https://docs.github.com/en/rest/emojis
📖
Documentation
https://docs.github.com/en/rest/gitignore
📖
Documentation
https://docs.github.com/en/rest/apps/installations
📖
Documentation
https://docs.github.com/en/rest/enterprise-admin
📖
Documentation
https://docs.github.com/en/rest/activity/events
📖
Documentation
https://docs.github.com/en/rest/orgs
📖
Documentation
https://docs.github.com/en/rest/rate-limit
📖
Documentation
https://docs.github.com/en/enterprise-cloud@latest/rest/scim
📖
Documentation
https://docs.github.com/en/rest/using-the-rest-api/getting-started-with-the-rest-api
📖
Documentation
https://docs.github.com/en/rest/teams
📖
Documentation
https://docs.github.com/en/rest/meta/meta
📖
Documentation
https://docs.github.com/en/rest/actions
📖
Documentation
https://docs.github.com/en/rest/branches
📖
Documentation
https://docs.github.com/en/rest/code-scanning
📖
Documentation
https://docs.github.com/en/rest/collaborators
📖
Documentation
https://docs.github.com/en/rest/dependabot
📖
Documentation
https://docs.github.com/en/rest/webhooks
📖
Documentation
https://docs.github.com/en/rest/pulls
📖
Documentation
https://docs.github.com/en/rest/git/tags
📖
Documentation
https://docs.github.com/en/rest/repos/autolinks
📖
Documentation
https://docs.github.com/en/rest/collaborators/invitations

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/github:github-teams-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

github-teams-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 1.1.4
  title: GitHub v3 REST Teams API
  description: GitHub's v3 REST API.
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
  termsOfService: https://docs.github.com/articles/github-terms-of-service
  contact:
    name: Support
    url: https://support.github.com/contact?tags=dotcom-rest-api
  x-github-plan: api.github.com
servers:
- url: https://api.github.com
tags:


# --- truncated at 32 KB (152 KB total) ---
# Full source: https://artifacts.apis.io/github/openapi/github-teams-api-openapi.yml