Create site

Add a website to your Plausible team from the Sites page.

POST https://cotlet.dev/api/v1/plausible/sites

write

Clicks + Add a website with the domain and timezone you give. It does not install the tracking script: the site shows no data until you add the script to the website. It reaches no one. It cannot delete a site, so a wrong domain is removed in Plausible; this tool does not undo it.

Parameters

Parameters: create_site
NameTypeDescription
domain string required string Bare domain without https:// or www., e.g. acme-shop.example. A subdomain such as blog.acme-shop.example makes a separate site.
timezone string string Reporting timezone as an IANA name, e.g. Europe/Warsaw. Default: the form default.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/plausible/sites \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain":"domain"}'
Python
result = client.call("plausible", "create_site", {"domain":"domain"})
Node.js
const result = await cotlet.call('plausible', 'create_site', {"domain":"domain"});
CLI
cotlet call plausible create_site --data '{"domain":"domain"}'

Example response

JSON

{
  "domain": "shop.acme-shop.example",
  "timezone": "Europe/Warsaw",
  "status": "created"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.