List Git installation repositories
Lists the repositories the Git installation can access, read live from the provider.
Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list.
owner, name and a branch (default_branch or another one) go into source_options of
Start Node.js build or into Update Git auto-deployment settings. Returns 404 when the
installation does not belong to the customer. Limited to 10 calls per minute per API client
(429 above that).
API Token authentication
Git installation UUID from the List Git installations endpoint
018f5e2a-1234-7890-abcd-1234567890abSuccess response
Array of Hosting.V1.Git.GitRepositoryResource
Repository identifier assigned by the Git provider
12345Repository name without the .git suffix
my-repositoryOwner and repository name joined with a slash
octocat/my-repositoryRepository owner login
octocatWhether the repository is private
falseRepository page URL
https://github.com/octocat/my-repositoryHTTPS clone URL
https://github.com/octocat/my-repository.gitDefault branch of the repository
mainUnauthenticated response
Error response
Error response
Error response
GET /api/hosting/v1/git/installations/{uuid}/repositories HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": 12345,
"name": "my-repository",
"full_name": "octocat/my-repository",
"owner": "octocat",
"is_private": false,
"html_url": "https://github.com/octocat/my-repository",
"clone_url": "https://github.com/octocat/my-repository.git",
"default_branch": "main"
}
]Last updated
Was this helpful?