Add a website
Adds a website owned by the token owner. Account tokens only (site keys and connected apps cannot add websites). A token limited to selected websites can create a site but cannot read it afterwards.
Related: List websites and Get a website in Websites.
Request
Headers
AuthorizationstringrequiredBearer followed by an account token with the websites:write scope.
Content-TypestringrequiredSend the body as JSON.
One of: application/json
Body fields
domainstringrequiredUp to 300 characters
namestringoptional1–80 characters
timezonestringrequiredcurrencystringoptionalOne of: USD, EUR, GBP, INR, JPY, CAD, AUD, CHF, SEK, NOK, DKK, PLN, CZK, BRL, MXN, SGD, HKD, NZD, ZAR, KRW, CNY, TRY, AED, ILS
colourstringoptionalPattern: ^#[0-9a-f]{6}$
Response
The new website.
{
"status": "string",
"data": {
"id": "string",
"domain": "string",
"name": "string",
"timezone": "string",
"currency": "USD",
"colour": "string",
"trackingId": "string",
"role": "viewer",
"archived": true,
"archivedAt": "2026-01-01T00:00:00.000Z",
"createdAt": "2026-01-01T00:00:00.000Z"
}
}Response fields
| Field | Type | Description |
|---|---|---|
| status | "ok" | |
| data | object | |
| data.id | string | |
| data.domain | string | |
| data.name | string | |
| data.timezone | string | |
| data.currency | string | |
| data.colour | string | |
| data.trackingId | string | |
| data.role | string | null | null | |
| data.archived | boolean | |
| data.archivedAt | string (date-time) | null | null | |
| data.createdAt | string (date-time) |