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 Legacy API

The Legacy API from GitHub — 15 operation(s) for legacy.

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

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

This API exposes 33 operations across 15 paths, and defines 19 schemas. It is described by OpenAPI 3.2.0, at version 1.1.4.

Requests are made against a single base URL, {protocol}://{hostname}/api/v3.

33 operations 15 paths 19 schemas 7 DELETE15 GET3 PATCH4 POST4 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
Authentication
HTTP Bearer
Contact
License
Terms of Service
Resource Areas
1

Authentication & Security 1

GitHub Legacy API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (bearerHttpAuthentication).

  • bearerHttpAuthentication — Bearer Token

Paths & Operations 33

Across 15 paths, the API surfaces 33 operations — 7 DELETE, 15 GET, 3 PATCH, 4 POST, 4 PUT. Each is listed below with its method, path, parameters, and response codes.

Legacy 33
GET
/teams/{team_id}/projectsdeprecated
GitHub List Team Projects (legacy)
listTeamProjectsLegacy 3 params → 200404
GET
/teams/{team_id}/projects/{project_id}deprecated
GitHub Check Team Permissions for Project (legacy)
checkTeamPermissionsForProjectLegacy 2 params → 200404
PUT
/teams/{team_id}/projects/{project_id}deprecated
GitHub Add or Update Team Project Permissions (legacy)
addOrUpdateTeamProjectPermissionsLegacy 2 params body → 204403404422
DELETE
/teams/{team_id}/projects/{project_id}deprecated
GitHub Remove Project from Team (legacy)
removeProjectFromTeamLegacy 2 params → 204404422
GET
/teams/{team_id}deprecated
GitHub Get Team (legacy)
getTeamLegacy 1 param → 200404
PATCH
/teams/{team_id}deprecated
GitHub Update Team (legacy)
updateTeamLegacy 1 param body → 200201403404422
DELETE
/teams/{team_id}deprecated
GitHub Delete Team (legacy)
deleteTeamLegacy 1 param → 204404422
GET
/teams/{team_id}/discussionsdeprecated
GitHub List Discussions (legacy)
listDiscussionsLegacy 4 params → 200
POST
/teams/{team_id}/discussionsdeprecated
GitHub Create Discussion (legacy)
createDiscussionLegacy 1 param body → 201
GET
/teams/{team_id}/discussions/{discussion_number}deprecated
GitHub Get Discussion (legacy)
getDiscussionLegacy 2 params → 200
PATCH
/teams/{team_id}/discussions/{discussion_number}deprecated
GitHub Update Discussion (legacy)
updateDiscussionLegacy 2 params body → 200
DELETE
/teams/{team_id}/discussions/{discussion_number}deprecated
GitHub Delete Discussion (legacy)
deleteDiscussionLegacy 2 params → 204
GET
/teams/{team_id}/discussions/{discussion_number}/commentsdeprecated
GitHub List Discussion Comments (legacy)
listDiscussionCommentsLegacy 5 params → 200
POST
/teams/{team_id}/discussions/{discussion_number}/commentsdeprecated
GitHub Create Discussion Comment (legacy)
createDiscussionCommentLegacy 2 params body → 201
GET
/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}deprecated
GitHub Get Discussion Comment (legacy)
getDiscussionCommentLegacy 3 params → 200
PATCH
/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}deprecated
GitHub Update Discussion Comment (legacy)
updateDiscussionCommentLegacy 3 params body → 200
DELETE
/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}deprecated
GitHub Delete Discussion Comment (legacy)
deleteDiscussionCommentLegacy 3 params → 204
GET
/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactionsdeprecated
GitHub List Reactions for Team Discussion Comment (legacy)
listReactionsForTeamDiscussionCommentLegacy 6 params → 200
POST
/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactionsdeprecated
GitHub Create Reaction for Team Discussion Comment (legacy)
createReactionForTeamDiscussionCommentLegacy 3 params body → 201
GET
/teams/{team_id}/discussions/{discussion_number}/reactionsdeprecated
GitHub List Reactions for Team Discussion (legacy)
listReactionsForTeamDiscussionLegacy 5 params → 200
POST
/teams/{team_id}/discussions/{discussion_number}/reactionsdeprecated
GitHub Create Reaction for Team Discussion (legacy)
createReactionForTeamDiscussionLegacy 2 params body → 201
GET
/teams/{team_id}/membersdeprecated
GitHub List Team Members (legacy)
listTeamMembersLegacy 4 params → 200404
GET
/teams/{team_id}/members/{username}deprecated
GitHub Get Team Member (legacy)
getTeamMemberLegacy 2 params → 204404
PUT
/teams/{team_id}/members/{username}deprecated
GitHub Add Team Member (legacy)
addTeamMemberLegacy 2 params → 204403404422
DELETE
/teams/{team_id}/members/{username}deprecated
GitHub Remove Team Member (legacy)
removeTeamMemberLegacy 2 params → 204404
GET
/teams/{team_id}/memberships/{username}deprecated
GitHub Get Team Membership for User (legacy)
getTeamMembershipForUserLegacy 2 params → 200404
PUT
/teams/{team_id}/memberships/{username}deprecated
GitHub Add or Update Team Membership for User (legacy)
addOrUpdateTeamMembershipForUserLegacy 2 params body → 200403404422
DELETE
/teams/{team_id}/memberships/{username}deprecated
GitHub Remove Team Membership for User (legacy)
removeTeamMembershipForUserLegacy 2 params → 204403
GET
/teams/{team_id}/reposdeprecated
GitHub List Team Repositories (legacy)
listTeamRepositoriesLegacy 3 params → 200404
GET
/teams/{team_id}/repos/{owner}/{repo}deprecated
GitHub Check Team Permissions for Repository (legacy)
checkTeamPermissionsForRepositoryLegacy 3 params → 200204404
PUT
/teams/{team_id}/repos/{owner}/{repo}deprecated
GitHub Add or Update Team Repository Permissions (legacy)
addOrUpdateTeamRepositoryPermissionsLegacy 3 params body → 204403422
DELETE
/teams/{team_id}/repos/{owner}/{repo}deprecated
GitHub Remove Repository from Team (legacy)
removeRepositoryFromTeamLegacy 3 params → 204
GET
/teams/{team_id}/teamsdeprecated
GitHub List Child Teams (legacy)
listChildTeamsLegacy 3 params → 200403404422

Schemas 19

The contract defines 19 schemas that model the data the API accepts and returns. The most detailed are team-repository (89 properties), minimal-repository (87 properties), team-organization (48 properties), nullable-simple-user (21 properties). Each schema is shown below with its type and property counts.

team-project
object
A team's access to a project.
16 properties 14 required
simple-user
object
A GitHub user.
21 properties 18 required
basic-error
object
Basic Error
4 properties
validation-error
object
Validation Error
3 properties 2 required
team-organization
object
Team Organization
48 properties 23 required
code-of-conduct
object
Code Of Conduct
5 properties 4 required
minimal-repository
object
Minimal Repository
87 properties 46 required
team-full
object
Groups of organization members that gives permissions on specified repositories.
18 properties 15 required
team
object
Groups of organization members that gives permissions on specified repositories.
13 properties 11 required
security-and-analysis
objectnull
3 properties
team-discussion
object
A team discussion is a persistent record of a free-form conversation within a team.
18 properties 17 required
team-membership
object
Team Membership
3 properties 3 required
team-repository
object
A team's access to a repository.
89 properties 73 required
reaction-rollup
object
10 properties 10 required
nullable-team-simple
objectnull
Groups of organization members that gives permissions on specified repositories.
12 properties 10 required
team-discussion-comment
object
A reply to a discussion within a team.
13 properties 12 required
reaction
object
Reactions to conversations provide a way to help people express their feelings more simply and effectively.
5 properties 5 required
nullable-simple-user
objectnull
A GitHub user.
21 properties 18 required
nullable-license-simple
objectnull
License Simple
6 properties 5 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

github-legacy-api-openapi.yml Raw ↑

Other APIs GitHub publishes across the network.

GitHub Events API
GitHub Feeds API
GitHub Gists API
GitHub Issues API
GitHub Licenses API
GitHub Markdown API
GitHub Meta API
GitHub Notifications API
GitHub Octocat API
GitHub Projects API
GitHub Repos API
GitHub Search API
Where this information came from

This is an independent, third-party profile of GitHub Legacy 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.