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 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 Version Control. 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 13 operations across 12 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: https://api.github.com, {protocol}://{hostname}/api/v3.

13 operations 12 paths 20 schemas 1 DELETE6 GET1 PATCH5 POST

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 13

Across 12 paths, the API surfaces 13 operations — 1 DELETE, 6 GET, 1 PATCH, 5 POST. Each is listed below with its method, path, parameters, and response codes.

Git 13

Raw Git functionality.

POST
/repos/{owner}/{repo}/git/blobs
Create a blob
git/create-blob 2 params body → 201404409403422
GET
/repos/{owner}/{repo}/git/blobs/{file_sha}
Get a blob
git/get-blob 3 params → 200404422403409
POST
/repos/{owner}/{repo}/git/commits
Create a commit
git/create-commit 2 params body → 201422404409
GET
/repos/{owner}/{repo}/git/commits/{commit_sha}
Get a commit object
git/get-commit 3 params → 200404409
GET
/repos/{owner}/{repo}/git/matching-refs/{ref}
List matching references
git/list-matching-refs 3 params → 200409
GET
/repos/{owner}/{repo}/git/ref/{ref}
Get a reference
git/get-ref 3 params → 200404409
POST
/repos/{owner}/{repo}/git/refs
Create a reference
git/create-ref 2 params body → 201422409
PATCH
/repos/{owner}/{repo}/git/refs/{ref}
Update a reference
git/update-ref 3 params body → 200422409
DELETE
/repos/{owner}/{repo}/git/refs/{ref}
Delete a reference
git/delete-ref 3 params → 204422409
POST
/repos/{owner}/{repo}/git/tags
Create a tag object
git/create-tag 2 params body → 201422409
GET
/repos/{owner}/{repo}/git/tags/{tag_sha}
Get a tag
git/get-tag 3 params → 200404409
POST
/repos/{owner}/{repo}/git/trees
Create a tree
git/create-tree 2 params body → 201422404403409
GET
/repos/{owner}/{repo}/git/trees/{tree_sha}
Get a tree
git/get-tree 4 params → 200422404409

Schemas 20

The contract defines 20 schemas that model the data the API accepts and returns. The most detailed are git-commit (10 properties), git-commit_2 (10 properties), git-tag_2 (8 properties), git-tag (8 properties). Each schema is shown below with its type and property counts.

short-blob
object
Short Blob
2 properties 2 required
basic-error
object
Basic Error
4 properties
blob
object
Blob
7 properties 6 required
git-tree
object
The hierarchy between files in a Git repository.
4 properties 3 required
validation-error
object
Validation Error
3 properties 2 required
secret-scanning-push-protection-bypass-placeholder-id
string
The ID of the push protection bypass placeholder. This value is returned on any push protected routes.
verification
object
5 properties 5 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
repository-rule-violation-error
object
Repository rule violation was detected
4 properties
git-ref
object
Git references within a repository
4 properties 4 required
short-blob_2
object
Short Blob
2 properties 2 required
basic-error_2
object
Basic Error
4 properties
blob_2
object
Blob
7 properties 6 required
git-tree_2
object
The hierarchy between files in a Git repository.
4 properties 4 required
validation-error_2
object
Validation Error
3 properties 2 required
verification_2
object
4 properties 4 required
git-tag_2
object
Metadata for a Git tag
8 properties 7 required
git-commit_2
object
Low-level Git commit operations within a repository
10 properties 10 required
git-ref_2
object
Git references within a repository
4 properties 4 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 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 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.