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

Raw Git functionality.

GitHub Git 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 Git. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an AsyncAPI specification, and an API reference.

This API exposes 17 operations across 15 paths, and defines 20 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}.

17 operations 15 paths 20 schemas 2 DELETE8 GET1 PATCH5 POST1 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 Git API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (bearerHttpAuthentication).

  • bearerHttpAuthentication — Bearer Token

Paths & Operations 17

Across 15 paths, the API surfaces 17 operations — 2 DELETE, 8 GET, 1 PATCH, 5 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Git 17

Raw Git functionality.

POST
/repos/{owner}/{repo}/git/blobs
GitHub Create a Blob
git/create-blob 2 params body → 201403404409422
GET
/repos/{owner}/{repo}/git/blobs/{file_sha}
GitHub Get a Blob
git/get-blob 3 params → 200403404422
POST
/repos/{owner}/{repo}/git/commits
GitHub Create a Commit
git/create-commit 2 params body → 201404422
GET
/repos/{owner}/{repo}/git/commits/{commit_sha}
GitHub Get a Commit Object
git/get-commit 3 params → 200404
GET
/repos/{owner}/{repo}/git/matching-refs/{ref}
GitHub List Matching References
git/list-matching-refs 3 params → 200
GET
/repos/{owner}/{repo}/git/ref/{ref}
GitHub Get a Reference
git/get-ref 3 params → 200404
POST
/repos/{owner}/{repo}/git/refs
GitHub Create a Reference
git/create-ref 2 params body → 201422
PATCH
/repos/{owner}/{repo}/git/refs/{ref}
GitHub Update a Reference
git/update-ref 3 params body → 200422
DELETE
/repos/{owner}/{repo}/git/refs/{ref}
GitHub Delete a Reference
git/delete-ref 3 params → 204422
POST
/repos/{owner}/{repo}/git/tags
GitHub Create a Tag Object
git/create-tag 2 params body → 201422
GET
/repos/{owner}/{repo}/git/tags/{tag_sha}
GitHub Get a Tag
git/get-tag 3 params → 200404
POST
/repos/{owner}/{repo}/git/trees
GitHub Create a Tree
git/create-tree 2 params body → 201403404422
GET
/repos/{owner}/{repo}/git/trees/{tree_sha}
GitHub Get a Tree
git/get-tree 4 params → 200404422
GET
/repos/{owner}/{repo}/commits/{ref}/check-runs
GitHub List Check Runs for Git Reference
listCheckRunsForGitReference 12 params → 200
GET
/repos/{owner}/{repo}/commits/{ref}/check-suites
GitHub List Check Suites for Git Reference
listCheckSuitesForGitReference 10 params → 200
PUT
/repos/{owner}/{repo}/lfs
GitHub Enable Git Lfs for Repository
enableGitLfsForRepository 5 params → 202403
DELETE
/repos/{owner}/{repo}/lfs
GitHub Disable Git Lfs for Repository
disableGitLfsForRepository 5 params → 204

Schemas 20

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

git-tree
object
The hierarchy between files in a Git repository.
4 properties 4 required
git-ref
object
Git references within a repository
4 properties 4 required
git-tag
object
Metadata for a Git tag
8 properties 7 required
git-commit
object
Low-level Git commit operations within a repository
10 properties 10 required
validation-error
object
Validation Error
3 properties 2 required
basic-error
object
Basic Error
4 properties
verification
object
4 properties 4 required
short-blob
object
Short Blob
2 properties 2 required
blob
object
Blob
7 properties 6 required
code-of-conduct
object
Code Of Conduct
5 properties 4 required
minimal-repository
object
Minimal Repository
87 properties 46 required
check-suite
object
suite of checks performed on the code of a given code change
19 properties 17 required
security-and-analysis
object
3 properties
simple-user
object
GitHub user.
21 properties 18 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
simple-commit
object
commit.
6 properties 6 required
deployment-simple
object
deployment created as the result of an Actions check run from a workflow that references an environment
14 properties 10 required
pull-request-minimal
object
5 properties 5 required
check-run
object
check performed on the code of a given code change
17 properties 16 required
nullable-simple-user
object
GitHub user.
21 properties 18 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

github-git-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 Git 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.