Skip to content
Account API / Websites

Add a website

POSThttps://<your Reveata origin>/api/v1/websites

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.

Try in playground

Request

Headers

Authorizationstringrequired

Bearer followed by an account token with the websites:write scope.

Content-Typestringrequired

Send the body as JSON.

One of: application/json

Body fields

domainstringrequired

Up to 300 characters

namestringoptional

1–80 characters

timezonestringrequired
currencystringoptional

One 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

colourstringoptional

Pattern: ^#[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

FieldTypeDescription
status"ok"
dataobject
data.idstring
data.domainstring
data.namestring
data.timezonestring
data.currencystring
data.colourstring
data.trackingIdstring
data.rolestring | null | null
data.archivedboolean
data.archivedAtstring (date-time) | null | null
data.createdAtstring (date-time)