The Plausible Site provisioning API offers a way to create and manage your sites in your Plausible account programmatically. It's a work in progress but currently it allows 2 basic operations:
- Create a new site
- Find or create a shared link by name
Each request must be authenticated with an API key using the Bearer Token method. Currently, this API is in private preview and therefore it's not possible to acquire an API key through the dashboard. Please contact email@example.com to get an API key with permissions for the endpoints listed in this document.
Please also let us know what features you're missing. Some possible additions to the API include:
- Configure weekly and monthly email reports
- Configure custom domain for a site
- Configure spike notification
- Update site (change domain and/or timezone)
- Delete site
Creates a site in your Plausible account.
Domain of the site to be created in Plausible. Must be a globally unique, the request will fail if the domain is already taken.
Timezone name according to the IANA database. Defaults to
Etc/UTC when left blank.
Finds or creates a shared link for a given
site_id (use the site domain as the ID). This endpoint is idempotent, it will not fail
if a shared link with the provided name already exists.
Id of your site in Plausible.
Name of the shared link.