Skip to main content
POST
Create a website
Creates a site and returns its id, which the SDK script tag and every storefront endpoint use. allowed_origins are full origins (https://www.example.com); all origins on one site must share a root domain. A site-bound key cannot create websites.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
allowed_origins
string[]
required

Response

Site

_id
string
name
string
host
string
enabled
boolean
shadow
boolean

true = messages off

card_enabled
boolean
holdout_pct
number

share of stuck shoppers held back to compare, 0.05 to 0.5

vertical
string | null
state
object