---
title: "Add Website."
method: POST
path: "/websites"
tags: ["website"]
---

# Add Website.

`POST /websites`

Add a new website.

## Request body

- WebsiteCreate — Request body for creating a website.
  - `name` string, required
  - `hostname` string, hostname, required

## Response `201`

Created

- WebsiteGet — Response body for getting a website.
  - `name` string, required
  - `hostname` string, hostname, required

## Other responses

- `400` — 400 Bad Request.
- `401` — 401 Unauthorised.
- `409` — 409 Conflict Found.
- `500` — 500 Unexpected Internal Server Error.

## Changes

- **2023-11-26** `b173cabb315f` — 1 breaking, 6 warning, 4 info
  - added the new required request property `name`
  - the optional response header `X-Api-Commit` removed for the status `201`
  - the optional response header `X-Api-Commit` removed for the status `400`
  - the optional response header `X-Api-Commit` removed for the status `401`
  - …7 more

[Change history](https://skmtc.dev/medama-io/apis/medama-analytics-api/changes/websites/post.md)

---

[API](https://skmtc.dev/medama-io/apis/medama-analytics-api.md) · [All operations](https://skmtc.dev/medama-io/apis/medama-analytics-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/medama-io/medama-analytics-api/revisions/7e58a00a419e/schema)
