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.
Home
Get started, troubleshoot, and make the most of GitHub. Documentation for new users, developers, administrators, and all of GitHub's products.
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.
Authenticating
Many REST API endpoints require authentication or return additional information if you are authenticated. Additionally, you can make more requests per hour when you are authenticated. To authenticate your request, you will need to provide an authentication token with the required scopes or permissions. There a few different ways to get a token: You can create a personal access token, generate a token with a GitHub ...
Permissions for fine-grained PATs
For each permission granted to a fine-grained personal access token, these are the 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 GitHub App can access via the API.
GitHub
docs.github.com › rest › reference › repos
REST API endpoints for repositories - GitHub Docs
Use the REST API to create, manage and control the workflow of public and private GitHub repositories. REST API endpoints for repositories · List organization repositories · Create an organization repository · Get a repository · Update a repository · Delete a repository ·
Videos
25:37
How to use GitHub REST API using OAuth2 Authentication | Fetch ...
02:25
Host Rest API end point on GitHub GET Only Mimic API | Make GET ...
05:37
[Tutorial] - How to use GitHub REST API for Beginners - YouTube
07:22
Exploring the GitHub REST API in 7' - YouTube
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
GitHub
docs.github.com › en › rest › releases › releases
REST API endpoints for releases - GitHub Docs
To get a list of Git tags, use the Repository Tags API. Information about published releases are available to everyone. Only users with push access will receive listings for draft releases. 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
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 · List artifacts for a repository · Get an artifact · Delete an artifact · Download an artifact · List workflow run artifacts ·
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
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"}}'
GitHub
docs.github.com › v3 › enterprise
REST API endpoints for GitHub Enterprise administration - GitHub Enterprise Cloud Docs
When endpoints include {enterprise}, replace {enterprise} with the handle for your enterprise account, which is included in the URL for your enterprise settings. For example, if your enterprise account is located at https://github.com/enterprises/octo-enterprise, replace {enterprise} with octo-enterprise.
GitHub
docs.github.com › en › rest › actions › workflows
REST API endpoints for workflows - 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/actions/workflows/WORKFLOW_ID/timing
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
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 › 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 \ -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/app-manifests/CODE/conversions
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 - { "id": 975769614, "node_id": "R_kgDOOikQDg", "name": "Weather-App-SwiftUI", "full_name": "ahmetbostanciklioglu/Weather-App-SwiftUI", "private": false, "owner": { "login": "ahmetbostanciklioglu", "id": 40151328, "node_id": "MDQ6VXNlcjQwMTUxMzI4", "avatar_url": "https://avatars.githubusercontent.com/u/40151328?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ahmetbostanciklioglu", "html_url": "https://github.com/ahmetbostanciklioglu", "followers_url": "https://api.github.com/users/ahmetbostanciklioglu/followers", "following_url": "https://api.github.com/users/ahmetbostanciklioglu/f
GitHub
docs.github.com › en › rest › pulls › pulls
REST API endpoints for pull requests - GitHub Docs
For more information, see REST API endpoints for issues. ... review_comment: The URL template to construct the API location for a review comment in this pull request's repository · commits: The API location of this pull request's commits · statuses: The API location of this pull request's commit statuses, which are the statuses of its head branch · Lists pull requests in a specified repository. Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud.
GitHub
docs.github.com › en › rest › authentication › endpoints-available-for-github-app-installation-access-tokens
Endpoints available for GitHub App installation access tokens - GitHub Docs
You can use an installation access token to access these endpoints using your GitHub App.
GitHub
docs.github.com › en › rest › issues › issues
REST API endpoints for issues - GitHub Docs
This endpoint works with the following fine-grained token types: ... The fine-grained token does not require any permissions. ... curl -L \ -H "Accept: application/vnd.github+json" \ -H "X-GitHub-Api-Version: 2026-03-10" \ https://api.github.com/issues
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 · Get the authenticated app · Create a GitHub App from a manifest · List installation requests for the authenticated app · List installations for the authenticated app ·
GitHub
docs.github.com › en › rest › users › users
REST API endpoints for users - GitHub Docs
Note: If your email is set to private and you send an email parameter as part of this request to update your profile, your privacy settings are still enforced: the email address will not be displayed on your public profile or via the API. This endpoint works with the following fine-grained token types: ... curl -L \ -X PATCH \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2026-03-10" \ https://api.github.com/user \ -d '{"blog":"https://github.com/blog","name":"monalisa octocat"}'