---
title: "List Git installations"
method: GET
path: "/api/hosting/v1/git/installations"
tags: ["Hosting: Git"]
---

# List Git installations

`GET /api/hosting/v1/git/installations`

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

## Query parameters

- `provider` 'github' | 'gitlab' | 'bitbucket', nullable
- `status` 'pending' | 'active' | 'suspended'

## Response `200`

Success response

- HostingV1GitGitInstallationResource[] — Array of [`Hosting.V1.Git.GitInstallationResource`](#model/hostingv1gitgitinstallationresource)
  - `uuid` string, required — Installation identifier. Use it as the path parameter of List Git installation repositories.
  - `provider` 'github' | 'gitlab' | 'bitbucket', required — Git provider the account belongs to
  - `account_login` string, nullable, required — Login of the connected provider account (user or organization)
  - `account_type` 'User' | 'Organization', nullable, required — Whether the connected account is a user or an organization
  - `account_avatar_url` string, nullable, required — Avatar URL of the connected provider account
  - `status` 'pending' | 'active' | 'suspended', required — Installation status. Only active installations are listed unless the status filter says otherwise.
  - `installed_at` string, date-time, nullable, required — When the provider app was installed on the account
  - `created_at` string, date-time, required — When the installation record was created
  - `has_oauth` boolean, nullable, required — 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.

## Other responses

- `401` — Unauthenticated response
- `422` — Validation error response
- `500` — Error response

## Changes

- **2026-09-15** `6d81ec74bf09` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/hostinger/apis/hostinger-api/changes/api/hosting/v1/git/installations/get.md)

---

[API](https://skmtc.dev/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.dev/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hostinger/apis/hostinger-api/revisions/12298bac0a8b?raw)
