Site provisioning API reference

The Plausible Site provisioning API offers a way to create and manage your sites in your Plausible account programmatically. It currently allows 3 operations:

  • Create a new site
  • Delete an existing 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 us to get an API key with permissions for the endpoints listed in this document.


POST /api/v1/sites#

Creates a site in your Plausible account.

Try it yourself
curl -X POST \
-H "Authorization: Bearer ${TOKEN}" \
-F 'domain=""' \
-F 'timezone="Europe/London"'
Response 200 OK
"domain": "",
"timezone": "Europe/London"

Post body parameters#


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 optional

Timezone name according to the IANA database. Defaults to Etc/UTC when left blank.

DELETE /api/v1/sites/:site_id#

Deletes a site from your Plausible account along with all of it's data and configuration. The API key must belong to the owner of the site.

Try it yourself
curl -X DELETE \
-H "Authorization: Bearer ${TOKEN}"
Response 200 OK
"deleted": "true"

PUT /api/v1/sites/shared-links#

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.

Try it yourself
curl -X PUT \
-H "Authorization: Bearer ${TOKEN}" \
-F 'site_id=""' \
-F 'name="Wordpress"'
Response 200 OK
"name": "Wordpress",
"url": "<random>"

Body parameters#

site_id REQUIRED

Id of your site in Plausible.


Name of the shared link.