# The workspace's GitHub App installations.

> A workspace links the App on several GitHub accounts (a personal account and organizations, at most 20), one installation each.
> https://koi.dog/docs/api/github/get-git-hub-installation/

`GET /api/v1/github/installation` · Scope: `read`

`installations` lists every linked one that is not removed, each with its account, `accountType`, `status`, `manageUrl`, `missingPermissions` and `pendingPermissions` (what the App asks for beyond what Koidog needs that it has not accepted on GitHub yet; display only). `installation` is the newest of them (else the newest removed one, else null), kept for older clients. `needsMigration` says a legacy token from Settings is still stored. `configured` says whether this server has the App's credentials, `source` what serves pushes and pull requests now, `coverage` which project repositories the installations reach (each repository only through the installation on its owner's account; read from GitHub at most every few minutes; null when it could not be asked; `uncoveredOwners` names accounts with no installation) and `manageUrl` where to change `installation` on GitHub.

## Response.

200 OK · JSON object

## Request.

```sh
curl https://api.koi.dog/api/v1/github/installation \
    -H "Authorization: Bearer $KOIDOG_API_KEY"
```

```js
const res = await fetch("https://api.koi.dog/api/v1/github/installation", {
  headers: {
    Authorization: `Bearer ${process.env.KOIDOG_API_KEY}`,
  },
});
console.log(await res.json());
```

```python
import os

import requests

r = requests.get(
    "https://api.koi.dog/api/v1/github/installation",
    headers={
        "Authorization": f"Bearer {os.environ['KOIDOG_API_KEY']}",
    },
)
r.raise_for_status()
print(r.json())
```

## Response example.

```json
{
  "installation": {
  },
  "needsMigration": false,
  …
}
```
