Skip to main content
POST
Add a site

Authorizations

Authorization
string
header
required

An API key that starts with cs_sk_, created under API and MCP, API keys. A key covers every site of its workspace or a chosen list, and carries permissions per resource (Analytics, Revenue and payments, Goals and events, Funnels, Sites, Notes, Alerts) and extras (Visitor details, Raw events export, Team members, Workspace name, See API keys, Manage API keys). A change acts for the key's creator, with their current role. A request outside them answers 403 naming the missing permission.

Body

application/json
domain
string
required

The website's domain, such as example.com (no path), or for an app with no website its bundle id.

Required string length: 1 - 300
name
string

Shown in the dashboard. Defaults to the domain.

Required string length: 1 - 80
kind
enum<string>
default:website

app for a mobile app that has no website.

Available options:
website,
app
timezone
string
default:UTC

IANA timezone the site's days follow, such as Europe/Berlin. Defaults to UTC.

currency
string
default:USD

ISO 4217 code revenue is reported in. Defaults to USD.

Pattern: ^[A-Z]{3}$

Response

Done.

site
object

One site with what its settings screens edit. Excluded addresses are never returned, only their count.