---
title: "List installation repositories"
method: GET
path: "/v1/repository-connections/installations/{installationId}/repositories"
tags: ["Git"]
---

# List installation repositories

`GET /v1/repository-connections/installations/{installationId}/repositories`

## Request

- Base URL: `https://api.spacefast.com`
- URL: `https://api.spacefast.com/v1/repository-connections/installations/{installationId}/repositories`
- Auth: API key in cookie `__Host-better-auth.session_token`

Returns the repositories the team may connect through one GitHub App installation, most recently pushed first.

## Path parameters

- `installationId` string, required

## Query parameters

- `teamId` string: Team the installation is connected to. Required unless the deprecated `spaceId` is sent.
- `spaceId` string: Deprecated. Use `teamId`. A Space whose team to read; it also acts as the return Space.

## Response `200`

Response for status 200

- object
  - `$schema` string, uri: Canonical JSON Schema URL for this response body. The server also sends it in the `Link: rel="describedby"` response header.
  - `data` object[], required
    - `id` string, required
    - `name` string, required
    - `fullName` string, required
    - `defaultBranch` string, required
    - `cloneUrl` string, required
    - `private` boolean, required
    - `pushedAt` string, date-time, nullable, required: When the repository last received a push, read live from GitHub. Null when GitHub could not be reached; the list then falls back to name order.

## Other responses

- `default`: Problem details (RFC 9457). Any 4xx/5xx response is one `application/problem+json` document.

---

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