latestOpenAPI 3.1.02026-08-1021368.3 KB

50679caad756

Sites

Create site

Create a site.

Permissions: Requires full account access (*).

Returns: A site object.

post/sites

Request body

namestring required

The name of the website. Any string (up to 255 characters) is acceptable, and it doesn't have to match the website URL. Example: Daffy's Website

sharing'none' | 'private' | 'public'

The sharing configuration. Supported values are none, private or public.

share_passwordstring

When sharing is set to private, you must also send a password to access the site with (up to 255 characters).

Required if sharing is private.

timezonestring

The site's reporting timezone as a TZ database name (e.g. America/New_York). If omitted, the site inherits your account's default timezone.

multi_domainboolean

Set to true to allow this site to track multiple domains.

multi_domain_option'combined' | 'separate'

How multi-domain data is grouped. Supported values are combined (report all domains together) or separate (report each domain individually).

Required if multi_domain is true.

Example request

{
  "name": "Bugs Bunny Portfolio"
}

Response

Successful response