---
title: "Clone a website to a new subdomain"
method: POST
path: "/v1/hosting/clone"
tags: ["Website"]
---

# Clone a website to a new subdomain

`POST /v1/hosting/clone`

## Request

- Base URL: `https://api.10web.io`
- URL: `https://api.10web.io/v1/hosting/clone`
- Auth: none declared. Required headers: `x-api-key`
- TypeScript: <https://skmtc.dev/10web/apis/10web-api-v1/docs/v1/hosting/clone/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a copy of an existing website with a new subdomain. This operation 
migrates the website to a new location while preserving the original website.

## Headers

- `x-api-key` string, required

## Request body

- object
  - `subdomain` string, required: The new subdomain for the cloned website
  - `website_id` integer, required: The ID of the website to clone
  - `region` string, required: The target region for the cloned website

## Response `200`

Website clone operation started successfully

- object
  - `status` 'ok': Operation status

## Other responses

- `400`: Bad request
- `403`: Unauthorized access
- `429`: Too many requests
- `500`: Something went wrong

---

[API](https://skmtc.dev/10web/apis/10web-api-v1.md) - [All operations](https://skmtc.dev/10web/apis/10web-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/10web/apis/10web-api-v1/revisions/01afc9651dfc?raw)
