"Best analytics tool I've used in 14 years"

Websites

Use these endpoints to manage websites from a backend, script, or AI agent. Creating websites requires a dft_ account token. Website-scoped reads and settings updates can use a dft_ token or a matching df_ website key when supported.

Use this API when onboarding customers into DataFast from your own product, provisioning demo websites for an agent, or building an internal admin panel. Website deletion is intentionally dashboard-only, so destructive automation cannot remove a website by accident.

Base path: https://datafa.st/api/v1/admin
EndpointMethodPathPermissionPurpose
List websitesGET/websiteswebsites:readList websites available to the token
Create websitePOST/websiteswebsites:writeCreate a website
Get websiteGET/websites/{websiteId}settings:readGet website settings
Update websitePUT/websites/{websiteId}settings:writeUpdate website settings
Delete websiteDELETE/websites/{websiteId}websites:writeCurrently returns 403; website deletion is dashboard-only

Create a website

curl -X POST "https://datafa.st/api/v1/admin/websites" \
  -H "Authorization: Bearer dft_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "domain": "example.com",
    "timezone": "America/New_York",
    "name": "Example"
  }'

Update settings

curl -X PUT "https://datafa.st/api/v1/admin/websites/YOUR_WEBSITE_ID" \
  -H "Authorization: Bearer dft_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "New name",
    "kpi": "signup",
    "kpiColorScheme": "green",
    "includeRenewalRevenue": true
  }'
Common updatable fields include domain, name, timezone, currency, kpi, kpiColorScheme, revenueMetric, isCookieless, includeRenewalRevenue, allowedHostnames, excludedIps, excludedPaths, excludedCountries, and excludedHostnames.

✍️ Something missing? Suggest features.

🤖 AI agent or LLM? Read this page as markdown

Create a website
curl -X POST "https://datafa.st/api/v1/admin/websites" \
  -H "Authorization: Bearer dft_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "domain": "example.com",
    "timezone": "America/New_York",
    "name": "Example"
  }'
Success response
{
  "status": "success",
  "data": [
    {
      "websiteId": "665f0b3c4d2e1a0012345678",
      "domain": "example.com",
      "trackingId": "dfid_abc123"
    }
  ]
}