Get a repository installation for the authenticated app
Enables an authenticated GitHub App to find the repository’s installation information. The installation’s account type will be either an organization or a user account, depending which account the repository belongs to.
You must use a JWT to access this endpoint.
Path Parameters
Response
application/json
Response
Response
Installation
Installation
The ID of the installation.
Example:1
Any Of
Simple User
Show Child Parameters
Describe whether all repositories have been selected or there’s a selection involved
Allowed values:allselected
Example:https://api.github.com/installations/1/access_tokens
Example:https://api.github.com/installation/repositories
Example:https://github.com/organizations/github/settings/installations/1
Example:1
The ID of the user or organization this token is being scoped to.
Example:Organization
The permissions granted to the user-to-server access token.
Example:{"contents":"read","issues":"read","deployments":"write","single_file":"read"}
Show Child Parameters
Example:config.yaml
Example:true
Example:["config.yml",".github/issue_TEMPLATE.md"]
Example:github-actions
Simple User
Show Child Parameters
Example:"test_13f1e99741e3e004@d7e1eb0bc0a1ba12.com"
Path Parameters
List app installations accessible to the user access token
Lists installations of your GitHub App that the authenticated user has explicit permission (:read
, :write
, or :admin
) to access.
You must use a user-to-server OAuth access token, created for a user who has authorized your GitHub App, to access this endpoint.
The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.
You can find the permissions for the installation under the permissions
key.
Query Parameters
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Response
application/json
Response
You can find the permissions for the installation under the permissions
key.
Installation
Show Child Parameters
Query Parameters
List repositories accessible to the user access token
List repositories that the authenticated user has explicit permission (:read
, :write
, or :admin
) to access for an installation.
The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.
You must use a user-to-server OAuth access token, created for a user who has authorized your GitHub App, to access this endpoint.
The access the user has to each repository is included in the hash under the permissions
key.
Query Parameters
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Path Parameters
installation_id parameter
Response
application/json
Response
The access the user has to each repository is included in the hash under the permissions
key.
A git repository
Show Child Parameters
Path Parameters
Query Parameters
Add a repository to an app installation
Add a single repository to an installation. The authenticated user must have admin access to the repository.
You must use a personal access token (which you can create via the command line or Basic Authentication) to access this endpoint.
Path Parameters
installation_id parameter
Response
Response
Response
Path Parameters
Remove a repository from an app installation
Remove a single repository from an installation. The authenticated user must have admin access to the repository.
You must use a personal access token (which you can create via the command line or Basic Authentication) to access this endpoint.
Path Parameters
installation_id parameter
Response
Response
Response