---
title: "Create website"
method: POST
path: "/api/hosting/v1/websites"
tags: ["Hosting: Websites"]
---

# Create website

`POST /api/hosting/v1/websites`

Create a new website for the authenticated client.

Provide the domain name and associated order ID to create a new website.
The datacenter_code parameter is required when creating the first website
on a new hosting plan - this will set up and configure new hosting account
in the selected datacenter.

Subsequent websites will be hosted on the same datacenter automatically.

Website creation takes up to a few minutes to complete. Check the
websites list endpoint to see when your new website becomes available.

## Request body

- HostingV1WebsitesCreateWebsiteRequest
  - `domain` string, required — Domain name for the website. Cannot start with "www."
  - `order_id` integer, required — ID of the associated order
  - `datacenter_code` string, nullable — Datacenter code. This parameter is required when creating the first website on a new hosting plan.

## Response `200`

Success empty response

- CommonSuccessEmptyResource
  - `message` string

## Other responses

- `401` — Unauthenticated response
- `422` — Validation error response
- `500` — Error response

---

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