---
title: "Create Repository"
method: POST
path: "/api/v2/repos"
---

# Create Repository

`POST /api/v2/repos`

Create a new repository for the authenticated user or organization.

## Headers

- `authorization` string, nullable

## Cookies

- `modaic_session` string, nullable

## Request body

- CreateRepositoryRequest
  - `username` string, required
  - `name` string, required
  - `description` string, nullable
  - `private` boolean
  - `license` string, nullable
  - `issue_labels` string[], nullable
  - `auto_init` boolean
  - `gitignores` string, nullable
  - `readme` string, nullable
  - `default_branch` string, nullable
  - `template` boolean, nullable
  - `trust_model` string, nullable
  - `topics` string[], nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/modaic-ai/apis/modaic-api.md) · [All operations](https://skmtc.net/modaic-ai/apis/modaic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/modaic-ai/modaic-api/versions/43a90513ac59/schema)
