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

# Add Github

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

## Request

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

Add one or more GitHub repositories to the organization

## Request body

- object
  - `organizationId` string: Organization to add the repositories to
  - `repositories` object[]: List of GitHub repositories to add
    - `installationId` string, required: GitHub App installation identifier
    - `externalGithubRepositoryId` string, required: GitHub's internal repository identifier
    - `defaultBranch` string, required: Default branch for repository operations

## Response `200`

Successfully added repositories

- object[]: List of created repository identifiers
  - `id` string, required: Unique identifier of the created repository

---

[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)
