---
title: "Get a list of GitHub organisations accessible to the current GitHub OAuth user. Request will fail if the user does not have a valid GitHub OAuth token."
method: GET
path: "/{spaceId}/github/installations"
tags: ["GitHub"]
---

# Get a list of GitHub organisations accessible to the current GitHub OAuth user. Request will fail if the user does not have a valid GitHub OAuth token.

`GET /{spaceId}/github/installations`

## Path parameters

- `spaceId` string, required

## Query parameters

- `excludeConnected` boolean

## Response `200`

List of GitHub organisations accessible to the current GitHub OAuth user

- GetGitHubAppInstallationsForUserResponse
  - `Installations` GitHubAppInstallation[], required
    - `AccountAvatarUrl` string
    - `AccountId` string
    - `AccountLogin` string
    - `AccountType` string
    - `AllRepositories` boolean
    - `InstallationId` string

## Other responses

- `400` — Bad request. Either the payload was not structurally valid or business rules did not permit the operation.
- `404` — Not found. One or more of the entities involved in the operation was not found.

---

[API](https://skmtc.net/octopus/apis/octopus-server-api.md) · [All operations](https://skmtc.net/octopus/apis/octopus-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/octopus/octopus-server-api/versions/bc9158facfc7/schema)
