---
title: "Connect a GitHub repository"
method: POST
path: "/v1/apps/{app_id}/connect-repo"
tags: ["Apps"]
---

# Connect a GitHub repository

`POST /v1/apps/{app_id}/connect-repo`

Connect a GitHub repository for automatic deploys on push.

After connecting, pushes to the configured branch will trigger
a build + deploy via the GitHub App webhook.

## Path parameters

- `app_id` string, required

## Request body

- ConnectRepoRequest — Request to connect a GitHub repo for auto-deploy.
  - `repo_url` string, required — GitHub repository URL
  - `branch` string — Branch to deploy from
  - `github_installation_id` integer, nullable — GitHub App installation ID

## Response `200`

Successful Response

- unknown

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Validation Error
- `500` — Internal Server Error

---

[API](https://skmtc.net/mixpeek/apis/mixpeek-api.md) · [All operations](https://skmtc.net/mixpeek/apis/mixpeek-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mixpeek/mixpeek-api/revisions/220a3b263fda/schema)
