---
title: "Connect Github"
method: POST
path: "/api/v1/git-providers/connect-github"
tags: ["git-integration", "Git Integration"]
---

# Connect Github

`POST /api/v1/git-providers/connect-github`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/git-providers/connect-github`
- Auth: none declared

One-click GitHub connect: creates platform-managed provider.

Frontend flow: POST /connect-github -> get provider_id ->
redirect to GET /oauth/github/authorize?provider_id={id}

## Headers

- `Authorization` string

## Response `201`

Successful Response

- StandardResponse: Standard API response wrapper.
  - `success` boolean, required
  - `data` unknown
  - `message` string, nullable
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api.md) · [All operations](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/revisions/51c755fb5d0b?raw)
