---
title: "Create a new GitHub integration"
method: POST
path: "/integrations/github"
tags: ["integrations"]
---

# Create a new GitHub integration

`POST /integrations/github`

Create a new GitHub integration

## Request body

- object
  - `gitHubSettings` GitHubSettingsInput, required
    - `enableAutoMerge` boolean
    - `isActive` boolean, required
    - `repoFilterPairs` object[], required
  - `name` string, required

## Response `200`

Create a new GitHub integration

- CreateGitHubIntegrationResponse
  - `integration` object, required
    - `id` string, required
  - `nextURL` string, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `408` — Request Timeout
- `409` — Conflict
- `422` — Unprocessable Entity
- `500` — Internal Server Error
- `default`

## Changes

> 33 revisions in range; 1 could not be searched.

- **2025-04-16** `6b4369907cb8` — 2 info
  - added the new optional request property `gitHubSettings/enableAutoMerge`
  - added the non-success response with the status `408`
- **2024-10-21** `7aec65a7fcfd` — 1 breaking, 1 warning, 1 info
  - added the new required request property `gitHubSettings`
  - removed the request property `githubSettings`
  - api operation id `createGithubIntegration_mutation` removed and replaced with `createGitHubIntegration_mutation`
- **2024-02-25** `2a77cd72324f` — 1 info
  - endpoint added
- **2023-01-25** `059555a56f3f` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/otterize/apis/otterize-api-server/changes/integrations/github/post.md)

---

[API](https://skmtc.dev/otterize/apis/otterize-api-server.md) · [All operations](https://skmtc.dev/otterize/apis/otterize-api-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/otterize/otterize-api-server/revisions/ec9167824493/schema)
