---
title: "POST /new"
method: POST
path: "/new"
tags: ["Função"]
---

# POST /new

`POST /new`

Creates new site using a repository.

## Request body

- NewSite
  - `orgName` string
  - `repo` string
  - `sampleUrl` string
  - `private` boolean
  - `environmentVars` object[]
    - `key` string
    - `value` string

## Response `200`

Site created

- NewSiteRes
  - `ret` number
  - `orgName` string
  - `repoName` string

## Other responses

- `400` — code 4 = Organization not found or permission denied. code 5 = Domain already in use
- `403` — Forbidden code 6 = OAuth token is not valid or expired.
- `404` — Not found
- `500` — Server error. Error 1001 = invalid environment variable. Key must have 2 or more characters. Error 1003 = Invalid subdomain name

---

[API](https://skmtc.net/bohr-io/apis/bohr-io-api.md) · [All operations](https://skmtc.net/bohr-io/apis/bohr-io-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bohr-io/bohr-io-api/revisions/926405b5dade/schema)
