---
title: "Connect a GitHub organization"
method: POST
path: "/api/v1/orgs/{slug}/github"
tags: ["Organizations"]
---

# Connect a GitHub organization

`POST /api/v1/orgs/{slug}/github`

## Request

- Base URL: `https://api.skills-hub.ai`
- URL: `https://api.skills-hub.ai/api/v1/orgs/{slug}/github`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Links a GitHub organization to this org and imports its members. Requires the `ADMIN` org role, and the caller must also be an admin of the target GitHub organization (verified via their stored GitHub token).

## Path parameters

- `slug` string, required

## Response `200`

Successful response. The returned fields are described in this endpoint's summary/description; typed per-field response schemas are being added incrementally.

- object
  - `connected` boolean
  - `membersAdded` integer

---

[API](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api.md) · [All operations](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api/revisions/cb5d46d80300?raw)
