Sites
List, create, update, and delete the sites of the team.
Lists the team's sites that the API key can access, in pages of up to 200.
limitintegerMaximum number of results per page.
cursorstring | any | nullOpaque pagination cursor from the previous response.
Creates a site in the team and returns it. Install the tracking script from Get tracking script to start collecting data.
namestringrequiredDisplay name of the site.
domainstringrequiredDomain of the website, without protocol, e.g. example.com.
publicEnabledbooleanrequiredWhether the public shared dashboard is enabled.
publicSlugstringSlug of the public dashboard URL. Omit it to have one generated.
Returns one site.
siteIdstringrequiredID of the site (see List sites).
Updates a site's name, domain, or public sharing. Send only the fields to change; at least one is required.
siteIdstringrequiredID of the site (see List sites).
namestringdomainstringpublicEnabledbooleanpublicSlugstringDeletes the site and all of its analytics data. This cannot be undone.
siteIdstringrequiredID of the site (see List sites).