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| Endpoint | Method | Path | Permission | Purpose |
|---|---|---|---|---|
| List websites | GET | /websites | websites:read | List websites available to the token |
| Create website | POST | /websites | websites:write | Create a website |
| Get website | GET | /websites/{websiteId} | settings:read | Get website settings |
| Update website | PUT | /websites/{websiteId} | settings:write | Update website settings |
| Delete website | DELETE | /websites/{websiteId} | websites:write | Currently 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.