---
title: "Create GitHub repository"
method: POST
path: "/v1/git/repositories/{id}/github"
tags: ["git"]
---

# Create GitHub repository

`POST /v1/git/repositories/{id}/github`

Creates a new GitHub repository and sets it as the origin for a local repository

## Path parameters

- `id` string, required

## Request body

- InternalHandlersCreateGitHubRepositoryRequest — Request to create a new GitHub repository and set it as origin
  - `description` string — Repository description
  - `is_private` boolean — Whether the repository should be private
  - `name` string — Repository name

## Response `200`

OK

- InternalHandlersCreateGitHubRepositoryResponse — Response containing the created repository information
  - `message` string — Success message
  - `url` string — URL of the created repository

## Other responses

- `400` — Invalid request
- `500` — Internal server error

---

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