---
title: "Complete GitHub install"
method: POST
path: "/v1/connectors/github/install/complete"
tags: ["GitHub"]
---

# Complete GitHub install

`POST /v1/connectors/github/install/complete`

Completes a GitHub App installation for the current organization and returns visible repositories.

## Request body

- object
  - `installationId` integer, required
  - `state` string, required

## Response `200`

GitHub installation completed successfully.

- PluginArchGithubInstallCompleteResponse
  - `ok` true, required
  - `item` object, required
    - `connectorAccount` PluginArchConnectorAccount, required
      - `id` string, typeid, required — Den TypeID with 'cac_' prefix and a 26-character base32 suffix.
      - `organizationId` string, typeid, required — Den TypeID with 'org_' prefix and a 26-character base32 suffix.
      - `connectorType` 'github', required
      - `remoteId` string, required
      - `externalAccountRef` string, nullable, required
      - `displayName` string, required
      - `status` 'active' | 'inactive' | 'disconnected' | 'error', required
      - `createdByName` string, nullable
      - `createdByOrgMembershipId` string, typeid, required — Den TypeID with 'om_' prefix and a 26-character base32 suffix.
      - `createdAt` string, date-time, required
      - `updatedAt` string, date-time, required
      - `metadata` object
    - `repositories` PluginArchGithubRepository[], required
      - `id` integer, required
      - `fullName` string, required
      - `defaultBranch` string, nullable, required
      - `hasPluginManifest` boolean
      - `manifestKind` 'marketplace' | 'plugin', nullable
      - `marketplacePluginCount` integer, nullable
      - `private` boolean, required

## Other responses

- `400` — The GitHub install completion request was invalid.
- `401` — The caller must be signed in to complete GitHub connection.
- `403` — The caller lacks permission to complete GitHub connection.

---

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