Set email reports

Turn weekly or monthly email reports on or off and add recipients in the site settings.

PUT https://cotlet.dev/api/v1/plausible/email-reports

write Confirm

Sets the Email reports section for the site. The stats are embedded in the email, so recipients need no login, and they do not count toward your team member limit. Recipients you do not list stay as they are; this tool does not remove any. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: set_email_reports
NameTypeDescription
site string required string Domain of the site as the Sites page lists it, e.g. acme-shop.example.
weekly boolean boolean Weekly report, sent every Monday.
monthly boolean boolean Monthly report, sent on the first day of the month.
add_recipients string[] string[] Email addresses to add to Report recipients.

Request

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

Example response

JSON

{
  "site": "acme-shop.example",
  "weekly": true,
  "monthly": false,
  "recipients": [
    "nora@client.example",
    "team@acme-shop.example"
  ]
}

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.