---
title: "Add Github"
method: POST
path: "/api/v1/installations/add-github"
tags: ["Installations"]
---

# Add Github

`POST /api/v1/installations/add-github`

## Request

- Base URL: `https://zeropath.com`
- URL: `https://zeropath.com/api/v1/installations/add-github`
- Auth: API key in header `X-ZeroPath-API-Token-Id` and API key in header `X-ZeroPath-API-Token-Secret`

Creates a new Github App installation connection for repository access. This endpoint is exclusively for whitelabeled ZeroPath managed Github Apps - contact the ZeroPath team to get access to this API and discuss whitelabeling options.

## Request body

- object: Input for creating a new Github App installation connection. This is only available for whitelabeled ZeroPath managed Github Apps. Contact the ZeroPath team for access to this API.
  - `externalGithubAppInstallationId` string, required: Github's internal installation ID found in the installation URL, webhook payload, or Github App installation page
  - `externalGithubAppId` string, required: Github App ID found in the Github App settings
  - `organizationId` string, required: Organization ID where this installation will be linked

## Response `200`

Installation created successfully

- object
  - `id` string: ID of the created Github installation

---

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