---
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`

## Request

- Base URL: `https://api.mixpeek.com`
- URL: `https://api.mixpeek.com/v1/apps/{app_id}/connect-repo`
- Auth: HTTP bearer

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`: Unprocessable Entity
- `429`: Too Many Requests
- `500`: Internal Server Error
- `503`: Service Unavailable

## Changes

- **2026-10-09** `61a175e8eb9a`: 1 warning, 5 info
  - removed the optional property `detail` from the response with the `422` status
  - added the non-success response with the status `429`
  - added the non-success response with the status `503`
  - added the optional property `success` to the response with the `422` status
  - …2 more
- **2026-08-09** `5d4c905106b4`: 1 info
  - the endpoint scheme security `BearerAuth` was added to the API

[Operation history](https://skmtc.dev/mixpeek/apis/mixpeek-api/changes/v1/apps/:app_id/connect-repo/post.md)

---

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