For the complete documentation index, see llms.txt. This page is also available as Markdown.

List Git installation repositories

Lists the repositories the Git installation can access, read live from the provider.

List Git installation repositories

get

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).

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
uuidstring · uuidRequired

Git installation UUID from the List Git installations endpoint

Example: 018f5e2a-1234-7890-abcd-1234567890ab
Responses
200

Success response

application/json
idintegerRequired

Repository identifier assigned by the Git provider

Example: 12345
namestringRequired

Repository name without the .git suffix

Example: my-repository
full_namestringRequired

Owner and repository name joined with a slash

Example: octocat/my-repository
ownerstringRequired

Repository owner login

Example: octocat
is_privatebooleanRequired

Whether the repository is private

Example: false
html_urlstringRequired

Repository page URL

Example: https://github.com/octocat/my-repository
clone_urlstringRequired

HTTPS clone URL

Example: https://github.com/octocat/my-repository.git
default_branchstringRequired

Default branch of the repository

Example: main
get/api/hosting/v1/git/installations/{uuid}/repositories
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?