# List GitHub installations

- **OpenAPI Version:** `3.2.0`
- **API Version:** `3.1.0`
- **Contact:** Syndai <https://syndai.ai>

## Contents

**Operations**

- [GET /api/v1/coding/customers/{customer\_id}/github-installations](#scalar-operation-get-apiv1codingcustomerscustomer-idgithub-installations)

**Schemas**

- [CustomerGithubInstallationListResponse](#scalar-schema-customergithubinstallationlistresponse)
- [CustomerGithubInstallationRead](#scalar-schema-customergithubinstallationread)
- [CustomerGithubInstallationRepoRead](#scalar-schema-customergithubinstallationreporead)
- [ProblemDetail](#scalar-schema-problemdetail)
- [ExternalErrorCode](#scalar-schema-externalerrorcode)

<a id="scalar-context-global-servers"></a>

## Servers

- **URL:** `https://api.syndai.ai`

<a id="scalar-context-global-authentication"></a>

## Authentication

- **CustomerApiKey**: HTTP bearer (`API Key`)

  Customer API key sent as a bearer token

## Tags

### Repositories

The repositories connected to your workspace. List them and the GitHub app installations they come through, change a repository's settings, and make or undo a direct text edit on a live site without starting a full run.

## Operations

<a id="scalar-operation-get-apiv1codingcustomerscustomer-idgithub-installations"></a>

### List GitHub installations

- **Method:** `GET`
- **Path:** `/api/v1/coding/customers/{customer_id}/github-installations`
- **Operation ID:** `listGithubInstallations`
- **Tags:** Repositories

The GitHub App installations linked to the workspace and the repositories they reach. Any member.

**Servers:** [Inherited servers](#scalar-context-global-servers)

**Authentication:** [Global authentication](#scalar-context-global-authentication)

#### Path parameters

- **`customer_id` (required)**: `string`, format: `uuid`

#### Responses

##### 200 Request fulfilled, document follows

**Content type:** `application/json`

[CustomerGithubInstallationListResponse](#scalar-schema-customergithubinstallationlistresponse)

<a id="scalar-example-1"></a>

**Generated example:**

```json
{
  "installations": [
    {
      "account_github_id": 1,
      "account_login": "",
      "account_type": "",
      "created_at": "",
      "customer_id": "",
      "github_installation_id": 1,
      "id": "",
      "installed_at": "",
      "repository_selection": "",
      "target_github_id": 1,
      "target_type": "",
      "uninstalled_at": "",
      "updated_at": ""
    }
  ],
  "repos": [
    {
      "created_at": "",
      "default_branch": "",
      "full_name": "",
      "github_repo_id": 1,
      "id": "",
      "installation_id": "",
      "last_synced_at": "",
      "updated_at": ""
    }
  ]
}
```

##### 400, 401, 403, 404

- `400` Bad request syntax or unsupported method
- `401` Invalid or missing customer API key
- `403` Insufficient scope or forbidden customer access
- `404` Resource not found

**Content type:** `application/problem+json`

[ProblemDetail](#scalar-schema-problemdetail)

RFC 7807 problem detail returned for public CaaS errors.

<a id="scalar-example-2"></a>

**Generated example:**

```json
{
  "code": "BUDGET_EXHAUSTED",
  "detail": null,
  "existing_run_id": null,
  "instance": null,
  "status": 1,
  "title": "",
  "type": "about:blank",
  "additionalProperty": "anything"
}
```

##### 429 Rate limit exceeded

**Headers:**

- **`Retry-After`**

  Seconds to wait before retrying the request

  `integer`

**Content type:** `application/problem+json`

[ProblemDetail](#scalar-schema-problemdetail)

RFC 7807 problem detail returned for public CaaS errors.

[Generated example](#scalar-example-2)

##### default Unexpected error

**Content type:** `application/problem+json`

[ProblemDetail](#scalar-schema-problemdetail)

<a id="scalar-example-3"></a>

**Generated example:**

```json
null
```

## Schemas

<a id="scalar-schema-customergithubinstallationlistresponse"></a>

### CustomerGithubInstallationListResponse

**Type:** `object`

- **`installations` (required)**: array of [CustomerGithubInstallationRead](#scalar-schema-customergithubinstallationread)
- **`repos` (required)**: array of [CustomerGithubInstallationRepoRead](#scalar-schema-customergithubinstallationreporead)

<a id="scalar-example-4"></a>

**Generated example:**

```json
{
  "installations": [
    {
      "account_github_id": 1,
      "account_login": "",
      "account_type": "",
      "created_at": "",
      "customer_id": "",
      "github_installation_id": 1,
      "id": "",
      "installed_at": "",
      "repository_selection": "",
      "target_github_id": 1,
      "target_type": "",
      "uninstalled_at": "",
      "updated_at": ""
    }
  ],
  "repos": [
    {
      "created_at": "",
      "default_branch": "",
      "full_name": "",
      "github_repo_id": 1,
      "id": "",
      "installation_id": "",
      "last_synced_at": "",
      "updated_at": ""
    }
  ]
}
```

<a id="scalar-schema-customergithubinstallationread"></a>

### CustomerGithubInstallationRead

**Type:** `object`

- **`account_login` (required)**: `string`
- **`account_type` (required)**: `string`
- **`created_at` (required)**: `string`, format: `date-time`
- **`customer_id` (required)**: `string`, format: `uuid`
- **`github_installation_id` (required)**: `integer`
- **`id` (required)**: `string`, format: `uuid`
- **`repository_selection` (required)**: `string`
- **`updated_at` (required)**: `string`, format: `date-time`
- **`account_github_id`**: `integer | null`
- **`installed_at`**: `string | null`, format: `date-time`
- **`target_github_id`**: `integer | null`
- **`target_type`**: `string | null`
- **`uninstalled_at`**: `string | null`, format: `date-time`

<a id="scalar-example-5"></a>

**Generated example:**

```json
{
  "account_github_id": 1,
  "account_login": "",
  "account_type": "",
  "created_at": "",
  "customer_id": "",
  "github_installation_id": 1,
  "id": "",
  "installed_at": "",
  "repository_selection": "",
  "target_github_id": 1,
  "target_type": "",
  "uninstalled_at": "",
  "updated_at": ""
}
```

<a id="scalar-schema-customergithubinstallationreporead"></a>

### CustomerGithubInstallationRepoRead

**Type:** `object`

- **`created_at` (required)**: `string`, format: `date-time`
- **`default_branch` (required)**: `string`
- **`full_name` (required)**: `string`
- **`github_repo_id` (required)**: `integer`
- **`id` (required)**: `string`, format: `uuid`
- **`installation_id` (required)**: `string`, format: `uuid`
- **`updated_at` (required)**: `string`, format: `date-time`
- **`last_synced_at`**: `string | null`, format: `date-time`

<a id="scalar-example-6"></a>

**Generated example:**

```json
{
  "created_at": "",
  "default_branch": "",
  "full_name": "",
  "github_repo_id": 1,
  "id": "",
  "installation_id": "",
  "last_synced_at": "",
  "updated_at": ""
}
```

<a id="scalar-schema-problemdetail"></a>

### ProblemDetail

**Type:** `object`

RFC 7807 problem detail returned for public CaaS errors.

- **`code` (required)**: `string`, possible values: `"BUDGET_EXHAUSTED", "QUOTA_EXCEEDED", "INSUFFICIENT_CREDITS", "RUN_CONCURRENCY_LIMIT", "CUSTOMER_DISABLED", "REPO_NOT_BOUND", "REPO_ARCHIVED", "IDEMPOTENCY_REPLAY", "CONFLICT", "MISSION_BUSY_RETRY", "HITL_REQUEST_CONFLICT", "HITL_REQUEST_SETTLED", "RUN_TERMINATED_BEFORE_RESPONSE", "INVALID_POLICY", "INVALID_SCOPE", "RATE_LIMITED", "INSTALLATION_INCOMPLETE", "SUBSCRIPTION_USAGE_UNAVAILABLE", "INVALID_TOKEN", "ROLE_REQUIRED", "PLAN_UPGRADE_REQUIRED", "EMAIL_MISMATCH", "EXPIRED_TOKEN", "NOT_FOUND", "OVERSCOPE_ACK_REQUIRED", "VERIFY_FAILED", "PUBLISH_IN_FLIGHT", "PUBLISH_UNSUPPORTED_REPO", "PUBLICATION_NOT_LIVE", "NO_APP_DATA", "FEATURE_REQUESTS_NEEDS_MEMBERS", "EMPTY_UPDATE", "BAD_CURSOR", "HUMAN_APPROVAL_REQUIRED", "PROTECTED_PATHS_MANAGED_ONLY", "RUN_IN_FLIGHT", "TEXT_EDIT_REFUSED", "CLI_UPGRADE_REQUIRED", "PRODUCTION_STEP_UP_REQUIRED", "PRICES_UPDATING", "GITHUB_UNAVAILABLE", "PUBLISH_NOT_SET_UP", "PUBLISH_TAG_EXISTS", "PUBLISH_VERSION_EXISTS", "VERSION_NOT_DEPLOYED", "DATA_REFUSED", "HARNESS_MODEL_UNSUPPORTED", "ECONOMY_CONFLICTS_WITH_MODEL", "HARNESS_UNKNOWN", "INTERNAL_ERROR"`

  Stable error codes surfaced to public CaaS clients.
- **`status` (required)**: `integer`
- **`title` (required)**: `string`
- **`detail`**: `string | null`, default: `null`
- **`existing_run_id`**: `string | null`, default: `null`
- **`instance`**: `string | null`, default: `null`
- **`type`**: `string`, default: `"about:blank"`

<a id="scalar-example-7"></a>

**Generated example:**

```json
{
  "code": "BUDGET_EXHAUSTED",
  "detail": null,
  "existing_run_id": null,
  "instance": null,
  "status": 1,
  "title": "",
  "type": "about:blank",
  "additionalProperty": "anything"
}
```

<a id="scalar-schema-externalerrorcode"></a>

### ExternalErrorCode

**Type:** `string`, possible values: `"BUDGET_EXHAUSTED", "QUOTA_EXCEEDED", "INSUFFICIENT_CREDITS", "RUN_CONCURRENCY_LIMIT", "CUSTOMER_DISABLED", "REPO_NOT_BOUND", "REPO_ARCHIVED", "IDEMPOTENCY_REPLAY", "CONFLICT", "MISSION_BUSY_RETRY", "HITL_REQUEST_CONFLICT", "HITL_REQUEST_SETTLED", "RUN_TERMINATED_BEFORE_RESPONSE", "INVALID_POLICY", "INVALID_SCOPE", "RATE_LIMITED", "INSTALLATION_INCOMPLETE", "SUBSCRIPTION_USAGE_UNAVAILABLE", "INVALID_TOKEN", "ROLE_REQUIRED", "PLAN_UPGRADE_REQUIRED", "EMAIL_MISMATCH", "EXPIRED_TOKEN", "NOT_FOUND", "OVERSCOPE_ACK_REQUIRED", "VERIFY_FAILED", "PUBLISH_IN_FLIGHT", "PUBLISH_UNSUPPORTED_REPO", "PUBLICATION_NOT_LIVE", "NO_APP_DATA", "FEATURE_REQUESTS_NEEDS_MEMBERS", "EMPTY_UPDATE", "BAD_CURSOR", "HUMAN_APPROVAL_REQUIRED", "PROTECTED_PATHS_MANAGED_ONLY", "RUN_IN_FLIGHT", "TEXT_EDIT_REFUSED", "CLI_UPGRADE_REQUIRED", "PRODUCTION_STEP_UP_REQUIRED", "PRICES_UPDATING", "GITHUB_UNAVAILABLE", "PUBLISH_NOT_SET_UP", "PUBLISH_TAG_EXISTS", "PUBLISH_VERSION_EXISTS", "VERSION_NOT_DEPLOYED", "DATA_REFUSED", "HARNESS_MODEL_UNSUPPORTED", "ECONOMY_CONFLICTS_WITH_MODEL", "HARNESS_UNKNOWN", "INTERNAL_ERROR"`

Stable error codes surfaced to public CaaS clients.
