---
title: "create"
method: POST
path: "/api/v1/repos"
tags: ["repositories"]
---

# create

`POST /api/v1/repos`

**Example request:**

```
curl -X POST                                                  \
     -H "Content-Type: application/json"                      \
     -d '{"repository": {"name": "thename", "private": "1"}}' \
     "https://packagecloud.io/api/v1/repos.json"
```

## Request body

- object
  - `repository` object
    - `name` string
    - `private` string

## Response `201`

String The URL of the new repository resource.

- RepositoryCreated — The result of creating a repository — the API URL of the new repo.
  - `url` string, required — The API URL of the newly created repository.

---

[API](https://skmtc.net/cstrahan/apis/packagecloud-api.md) · [All operations](https://skmtc.net/cstrahan/apis/packagecloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cstrahan/packagecloud-api/versions/9744ac4cffc2/schema)
