plausible / analytics

Simple, open source, lightweight (< 1 KB) and privacy-friendly web analytics alternative to Google Analytics.
https://plausible.io
GNU Affero General Public License v3.0
18.98k stars 1.02k forks source link

Site provisioning API returns 404 #4288

Closed tiotdev closed 6 days ago

tiotdev commented 6 days ago

Past Issues Searched

Issue is a Bug Report

Using official Plausible Cloud hosting or self-hosting?

Self-hosting

Describe the bug

The post request

curl -X POST https://plausible.mydomain.com/api/v1/sites \
  -H "Authorization: Bearer ${TOKEN}" \
  -F 'domain="test-domain.com"' \
  -F 'timezone="Europe/London"'

returns 404 Not Found

This is from the docs: https://plausible.io/docs/sites-api

The Site provisioning API is not mentioned as not being included in the CE here https://plausible.io/self-hosted-web-analytics

I assume this is a bug.

Expected behavior

I expect the API request to work

Screenshots

No response

Environment

- OS:
- Browser:
- Browser Version:
ruslandoga commented 6 days ago

👋 @tiotdev

Site provisioning API is indeed not included in CE: https://plausible.io/blog/community-edition#a-stronger-moat-for-our-official-managed-hosting