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

The Add API from GitHub — 27 operation(s) for add.

GitHub Add 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.

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

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

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

25 operations 25 paths 28 schemas 9 POST16 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
License
Terms of Service
Resource Areas
1

Authentication & Security 1

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

  • bearerHttpAuthentication — Bearer Token

Paths & Operations 25

Across 25 paths, the API surfaces 25 operations — 9 POST, 16 PUT. Each is listed below with its method, path, parameters, and response codes.

Add 25
POST
/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps
GitHub Add App Access Restrictions
addAppAccessRestrictions 3 params body → 200422
POST
/setup/api/settings/authorized-keys
GitHub Add an Authorized Ssh Key
addAnAuthorizedSshKey body → 201401
PUT
/user/installations/{installation_id}/repositories/{repository_id}
GitHub Add Repository to an App Installation
addrepositoryToAnAppInstallation 2 params → 204304403404
PUT
/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}
GitHub Add Repository Access to Self-hosted Runner Group in an Organization
addRepositoryAccessToSelfhostedRunnerGroupInAnOrganization 3 params → 204
PUT
/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}
GitHub Add Self-hosted Runner to Group for an Organization
addSelfhostedRunnerToGroupForAnOrganization 3 params → 204
POST
/orgs/{org}/actions/runners/{runner_id}/labels
GitHub Add Custom Labels to Self-hosted Runner for an Organization
addCustomLabelsToSelfhostedRunnerForAnOrganization 2 params body → 200404422
PUT
/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}
GitHub Add Selected Repository to an Organization Secret
addSelectedRepositoryToAnOrganizationSecret 3 params → 204409
PUT
/orgs/{org}/actions/variables/{name}/repositories/{repository_id}
GitHub Add Selected Repository to an Organization Variable
addSelectedRepositoryToAnOrganizationVariable 3 params → 204409
PUT
/orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}
GitHub Add Selected Repository to an Organization Secret
addSelectedRepositoryToAnOrganizationSecret 3 params → 204409
PUT
/orgs/{org}/security-managers/teams/{team_slug}
GitHub Add Security Manager Team
addSecurityManagerTeam 2 params → 204409
PUT
/orgs/{org}/teams/{team_slug}/memberships/{username}
GitHub Add or Update Team Membership for User
addOrUpdateTeamMembershipForUser 3 params body → 200403422
PUT
/orgs/{org}/teams/{team_slug}/projects/{project_id}
GitHub Add or Update Team Project Permissions
addOrUpdateTeamProjectPermissions 3 params body → 204403
PUT
/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}
GitHub Add or Update Team Repository Permissions
addOrUpdateTeamRepositoryPermissions 4 params body → 204
PUT
/projects/{project_id}/collaborators/{username}
GitHub Add Project Collaborator
addProjectCollaborator 2 params body → 204304401403404422
PUT
/teams/{team_id}/projects/{project_id}deprecated
GitHub Add or Update Team Project Permissions (legacy)
addOrUpdateTeamProjectPermissionsLegacy 2 params body → 204403404422
POST
/repos/{owner}/{repo}/actions/runners/{runner_id}/labels
GitHub Add Custom Labels to Self-hosted Runner for Repository
addCustomLabelsToSelfhostedRunnerForRepository 6 params body → 200404422
POST
/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts
GitHub Add Status Check Contexts
addStatusCheckContexts 6 params body → 200403404422
POST
/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams
GitHub Add Team Access Restrictions
addTeamAccessRestrictions 6 params body → 200422
POST
/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users
GitHub Add User Access Restrictions
addUserAccessRestrictions 6 params body → 200422
PUT
/repos/{owner}/{repo}/collaborators/{username}
GitHub Add Repository Collaborator
addRepositoryCollaborator 6 params body → 204403422
POST
/repos/{owner}/{repo}/issues/{issue_number}/assignees
GitHub Add Assignees to an Issue
addAssigneesToAnIssue 6 params body → 201
POST
/repos/{owner}/{repo}/issues/{issue_number}/labels
GitHub Add Labels to an Issue
addLabelsToAnIssue 6 params body → 200301404410422
PUT
/teams/{team_id}/members/{username}deprecated
GitHub Add Team Member (legacy)
addTeamMemberLegacy 2 params → 204403404422
PUT
/teams/{team_id}/memberships/{username}deprecated
GitHub Add or Update Team Membership for User (legacy)
addOrUpdateTeamMembershipForUserLegacy 2 params body → 200403404422
PUT
/teams/{team_id}/repos/{owner}/{repo}deprecated
GitHub Add or Update Team Repository Permissions (legacy)
addOrUpdateTeamRepositoryPermissionsLegacy 3 params body → 204403422

Schemas 28

The contract defines 28 schemas that model the data the API accepts and returns. The most detailed are repository (95 properties), issue (34 properties), nullable-simple-user (21 properties), nullable-simple-user_2 (21 properties). Each schema is shown below with its type and property counts.

integration
object
GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They…
17 properties 11 required
nullable-simple-user
objectnull
A GitHub user.
21 properties 18 required
validation-error
object
Validation Error
3 properties 2 required
ssh-key
object
2 properties
basic-error
object
Basic Error
4 properties
validation-error-simple
object
Validation Error Simple
3 properties 2 required
runner-label
object
A label for a self hosted runner
3 properties 1 required
team-membership
object
Team Membership
3 properties 3 required
runner-label_2
object
label for a self hosted runner
3 properties 1 required
integration_2
object
GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They…
17 properties 11 required
simple-user
object
GitHub user.
21 properties 18 required
nullable-simple-user_2
object
GitHub user.
21 properties 18 required
validation-error_2
object
Validation Error
3 properties 2 required
team
object
Groups of organization members that gives permissions on specified repositories.
13 properties 11 required
nullable-team-simple
object
Groups of organization members that gives permissions on specified repositories.
12 properties 10 required
validation-error_3
object
Validation Error
3 properties 2 required
label
object
Color-coded labels help you categorize and filter your issues (just like labels in Gmail).
7 properties 7 required
nullable-integration
object
GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They…
17 properties 11 required
repository
object
repository on GitHub.
95 properties 73 required
validation-error_4
object
Validation Error
3 properties 2 required
nullable-simple-user_3
object
GitHub user.
21 properties 18 required
issue
object
Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.
34 properties 21 required
reaction-rollup
object
10 properties 10 required
author-association
string
How the author is associated with the repository.
nullable-milestone
object
collection of related issues and pull requests.
16 properties 16 required
nullable-license-simple
object
License Simple
6 properties 5 required
nullable-team-simple_2
objectnull
Groups of organization members that gives permissions on specified repositories.
12 properties 10 required
team_2
object
Groups of organization members that gives permissions on specified repositories.
13 properties 11 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

github-add-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 Add 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.