According to "API Enterprise 2.5":

All API endpoints—except Management Console API endpoints—are prefixed with the following URL:

https://hostname/api/v3/

But you need to authenticate:

Authentication

Your Enterprise installation's API endpoints accept the same authentication methods as the GitHub.com API. Specifically, you can authenticate yourself with OAuth tokens (which can be created using the Authorizations API) or basic authentication.

Every Enterprise API endpoint is only accessible to GitHub Enterprise site administrators, with the exception of the Management Console API, which is only accessible via the Management Console password.

Answer from VonC on Stack Overflow
🌐
GitHub
docs.github.com › en › rest › repos › repos
REST API endpoints for repositories - GitHub Docs
This endpoint can be used without authentication or the aforementioned permissions if only public resources are requested. ... curl -L \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2026-03-10" \ https://api.github.com/repos/OWNER/REPO
GitHub Docs
Get started, troubleshoot, and make the most of GitHub. Documentation for new users, developers, administrators, and all of GitHub's products.
REST API
Learn how to use the GitHub REST API. You can authenticate to the REST API to access more endpoints and have a higher rate limit.
Quickstart
Make a request using the GitHub CLI api subcommand, followed by the path. Use the --method or -X flag to specify the method. For more information, see the GitHub CLI api documentation. This example makes a request to the "Get Octocat" endpoint, which uses the method GET and the path /octocat.
Permissions for fine-grained PATs
For each permission granted to ... REST API endpoints that the app can use. When you create a fine-grained personal access token, you grant it a set of permissions. Permissions define what resources the token can access via the API. For more information, see Managing your personal access tokens. To help you choose the correct permissions, you will receive the X-Accepted-GitHub-Permissions ...
🌐
GitHub
docs.github.com › en › rest
GitHub REST API documentation - GitHub Docs
Learn how to use the GitHub REST API. You can authenticate to the REST API to access more endpoints and have a higher rate limit.
🌐
GitHub
docs.github.com › en › rest › releases › releases
REST API endpoints for releases - GitHub Docs
For more information, see "Getting started with the REST API." This endpoint works with the following fine-grained token types: ... This endpoint can be used without authentication or the aforementioned permissions if only public resources are requested. ... curl -L \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2026-03-10" \ https://api.github.com/repos/OWNER/REPO/releases/RELEASE_ID
🌐
GitHub
github.com › github-modules › github-api-endpoints
GitHub - github-modules/github-api-endpoints: A list of all the paths supported by the GitHub v3 API · GitHub
A list of all the paths supported by the GitHub v3 API · This module is compiled by scraping developer.github.com/v3 and collecting all the <code> snippets that start with HTTP verbs. ... const endpoints = require('github-api-enpoints') endpoints.length // 485 endpoints.filter(e => e.includes('GET /gists')) // [ // 'GET /gists', // 'GET /gists/:gist_id/comments', // 'GET /gists/:gist_id/comments/:id', // 'GET /gists/:id', // 'GET /gists/:id/:sha', // 'GET /gists/:id/commits', // 'GET /gists/:id/forks', // 'GET /gists/:id/star', // 'GET /gists/public', // 'GET /gists/starred' // ]
Author: github-modules
🌐
GitHub
docs.github.com › en › rest › pages › pages
REST API endpoints for GitHub Pages - GitHub Docs
This endpoint works with the following fine-grained token types: ... curl -L \ -X POST \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2026-03-10" \ https://api.github.com/repos/OWNER/REPO/pages \ -d '{"source":{"branch":"main","path":"/docs"}}'
Top answer
1 of 5
31

According to "API Enterprise 2.5":

All API endpoints—except Management Console API endpoints—are prefixed with the following URL:

https://hostname/api/v3/

But you need to authenticate:

Authentication

Your Enterprise installation's API endpoints accept the same authentication methods as the GitHub.com API. Specifically, you can authenticate yourself with OAuth tokens (which can be created using the Authorizations API) or basic authentication.

Every Enterprise API endpoint is only accessible to GitHub Enterprise site administrators, with the exception of the Management Console API, which is only accessible via the Management Console password.

2 of 5
15

TLTR; These are the endpoints

+----+------------------------------------------+--------------------------------+
|    |                Enterprise                |             GitHub             |
+----+------------------------------------------+--------------------------------+
| v3 | https://[YOUR_HOST]/api/v3               | https://api.github.com         |
| v4 | https://[YOUR_HOST]/api/graphql          | https://api.github.com/graphql |
+----+------------------------------------------+--------------------------------+

Examples

Here you have some examples in case you want to try them. You'll need to create an ACCESS_TOKEN

Enterprise

curl -H "Authorization: bearer [ACCESS_TOKEN]" https://[YOUR_HOST]/api/v3/organizations
curl -H "authorization: bearer [ACCESS_TOKEN]" https://[YOUR_HOST]/api/graphql -d "{\"query\": \"query { viewer { login } }\"}" 

GitHub

curl -H "Authorization: bearer [ACCESS_TOKEN]" https://api.github.com/organizations
curl -H "authorization: bearer [ACCESS_TOKEN]" https://api.github.com/graphql -d "{\"query\": \"query { viewer { login } }\"}" 
🌐
GitHub
docs.github.com › en › rest › repos › contents
REST API endpoints for repository contents - GitHub Docs
This endpoint can be used without authentication or the aforementioned permissions if only public resources are requested. ... curl -L \ -H "Accept: application/vnd.github.object" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2026-03-10" \ https://api.github.com/repos/OWNER/REPO/contents/PATH
🌐
Medium
medium.com › @ahmetbostanciklioglu › rest-api-endpoint-for-github-api-338dbec08106
Rest API endpoint for Github API. From scratch we will look at how to… | by Ahmet Bostanciklioglu | Medium
May 1, 2025 - Rest API endpoint for Github API From scratch we will look at how to read a GitHub API for repository. What is the REST API? REST (representational state transfer) is bridge between client …
Find elsewhere
🌐
GitHub
github.com › topics › api-endpoints
api-endpoints · GitHub Topics · GitHub
Basic FastAPI project with Uvicorn showcasing complete CRUD endpoints (GET, POST, PUT, DELETE). Ideal for beginners learning REST APIs, Python web development, and backend fundamentals.
🌐
GitHub
docs.github.com › en › rest › projects › projects
REST API endpoints for Projects - GitHub Docs
This endpoint can be used without authentication or the aforementioned permissions if only public resources are requested. ... curl -L \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2026-03-10" \ https://api.github.com/orgs/ORG/projectsV2/PROJECT_NUMBER
🌐
GitHub
docs.github.com › en › rest › actions
REST API endpoints for GitHub Actions - GitHub Docs
Use the REST API to interact with GitHub Actions for an organization or repository. REST API endpoints for GitHub Actions artifacts, 1 of 14
🌐
LoginRadius
loginradius.com › home
Introduction to Github APIs
February 17, 2026 - Github APIs( or Github ReST APIs) are the APIs that you can use to interact with GitHub. They allow you to create and manage repositories, branches, issues, pull requests, and many more.
🌐
GitHub
docs.github.com › v3 › enterprise
REST API endpoints for GitHub Enterprise administration - GitHub Enterprise Cloud Docs
Use the REST API to administer your enterprise. ... This information applies to GitHub Enterprise Cloud. To see the GitHub Enterprise Server version, use the Article version drop-down menu. ... These endpoints only support authentication using a personal access token (classic).
🌐
GitHub
docs.github.com › en › rest › apps › apps
REST API endpoints for GitHub Apps - GitHub Docs
This endpoint does not work with GitHub App user access tokens, GitHub App installation access tokens, or fine-grained personal access tokens. ... curl -L \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2026-03-10" \ https://api.github.com/app/installation-requests
🌐
GitHub
docs.github.com › en › rest › users › users
REST API endpoints for users - GitHub Docs
For more information, see Emails API. This endpoint works with the following fine-grained token types: ... The fine-grained token does not require any permissions. This endpoint can be used without authentication if only public resources are requested. ... curl -L \ -H "Accept: application/vnd.github+json" \ -H "X-GitHub-Api-Version: 2026-03-10" \ https://api.github.com/users/USERNAME
🌐
GeeksforGeeks
geeksforgeeks.org › git › getting-started-with-github-rest-api
Getting Started With GitHub REST API - GeeksforGeeks
July 23, 2025 - A GitHub REST API request consists of several elements: HTTP Method: Defines the action type (e.g., GET, POST, DELETE, PATCH). Path: Specifies the endpoint's location.
🌐
GitHub
docs.github.com › en › rest › apps
REST API endpoints for apps - GitHub Docs
Use the REST API to retrieve information about GitHub Apps and GitHub App installations. REST API endpoints for GitHub Apps, 1 of 5 · Get the authenticated app, 1 of 14 · Create a GitHub App from a manifest, 2 of 14 · List installation requests for the authenticated app, 3 of 14 ·
🌐
Orchestra
getorchestra.io › guides › github-actions-api-all-rest-api-endpoints
Github Actions API: All rest api endpoints | Orchestra
March 22, 2025 - When working with GitHub Actions, optimizing workflow performance is key, and caching can significantly enhance this. GitHub provides a REST API endpoint for managing caches in GitHub Actions, offering developers a programmatic way to handle ...