List Git installations
Lists the Git provider accounts the customer has connected.
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.
API Token authentication
Filter by Git provider
githubPossible values: Filter by installation status
activeExample: activePossible values: Success response
Installation identifier. Use it as the path parameter of List Git installation repositories.
018f5e2a-1234-7890-abcd-1234567890abGit provider the account belongs to
githubPossible values: Login of the connected provider account (user or organization)
octocatWhether the connected account is a user or an organization
UserPossible values: Avatar URL of the connected provider account
https://avatars.githubusercontent.com/u/583231Installation status. Only active installations are listed unless the status filter says otherwise.
activePossible values: When the provider app was installed on the account
2026-01-15T10:30:00ZWhen the installation record was created
2026-01-15T10:00:00ZTrue 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.
trueUnauthenticated response
Validation error response
Error response
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?