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

List Git installations

Lists the Git provider accounts the customer has connected.

List Git installations

get

Lists the Git provider accounts the customer has connected. Only installations with status active are returned unless the status filter says otherwise.

An empty list means the customer has no active installation. Check status=suspended and status=pending as well. If there is none at all, a Git provider (GitHub or GitLab) has to be connected once in hPanel (Websites, Manage, Advanced, Git; or Add Website, Node.js Web App, Import Git Repository); this endpoint then lists the new installation.

Use uuid as the path parameter of List Git installation repositories, and as installation_uuid in Start Node.js build with source_type git and in Update Git auto-deployment settings.

Authorizations
AuthorizationstringRequired

API Token authentication

Query parameters
providerstring · enum · nullableOptional

Filter by Git provider

Example: githubPossible values:
statusstring · enumOptional

Filter by installation status

Default: activeExample: activePossible values:
Responses
200

Success response

application/json
uuidstringRequired

Installation identifier. Use it as the path parameter of List Git installation repositories.

Example: 018f5e2a-1234-7890-abcd-1234567890ab
providerstring · enumRequired

Git provider the account belongs to

Example: githubPossible values:
account_loginstring · nullableRequired

Login of the connected provider account (user or organization)

Example: octocat
account_typestring · enum · nullableRequired

Whether the connected account is a user or an organization

Example: UserPossible values:
account_avatar_urlstring · nullableRequired

Avatar URL of the connected provider account

Example: https://avatars.githubusercontent.com/u/583231
statusstring · enumRequired

Installation status. Only active installations are listed unless the status filter says otherwise.

Example: activePossible values:
installed_atstring · date-time · nullableRequired

When the provider app was installed on the account

Example: 2026-01-15T10:30:00Z
created_atstring · date-timeRequired

When the installation record was created

Example: 2026-01-15T10:00:00Z
has_oauthboolean · nullableRequired

True when the GitHub user account has a stored OAuth token whose refresh token is still valid, false when the token is missing or its refresh token expired. Null for organization accounts and for providers other than GitHub.

Example: true
get/api/hosting/v1/git/installations
GET /api/hosting/v1/git/installations HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "uuid": "018f5e2a-1234-7890-abcd-1234567890ab",
    "provider": "github",
    "account_login": "octocat",
    "account_type": "User",
    "account_avatar_url": "https://avatars.githubusercontent.com/u/583231",
    "status": "active",
    "installed_at": "2026-01-15T10:30:00Z",
    "created_at": "2026-01-15T10:00:00Z",
    "has_oauth": true
  }
]

Last updated

Was this helpful?