---
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.

- object
  - `url` string

---

[API](https://skmtc.dev/cstrahan/apis/packagecloud-api.md) · [All operations](https://skmtc.dev/cstrahan/apis/packagecloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cstrahan/packagecloud-api/revisions/40c6159e89e4/schema)
