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
| Name | Type | Description |
|---|---|---|
| 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 -X POST https://cotlet.dev/api/v1/plausible/sites \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain":"domain"}' result = client.call("plausible", "create_site", {"domain":"domain"}) const result = await cotlet.call('plausible', 'create_site', {"domain":"domain"}); cotlet call plausible create_site --data '{"domain":"domain"}' Example response
{
"domain": "shop.acme-shop.example",
"timezone": "Europe/Warsaw",
"status": "created"
}