curl --request POST \
--url https://api.example.com/websites/create \
--header 'Content-Type: application/json' \
--data '
{
"organizationId": "<string>",
"domain": "<string>",
"name": "<string>",
"timezone": "<string>",
"publicAccess": true
}
'{
"id": "<string>",
"domain": "<string>",
"name": "<string>",
"organizationId": "<string>",
"timezone": "<string>",
"publicAccess": true,
"trackingStatus": "<string>",
"createdAt": "<string>"
}Creates a new website (project) for analytics tracking
curl --request POST \
--url https://api.example.com/websites/create \
--header 'Content-Type: application/json' \
--data '
{
"organizationId": "<string>",
"domain": "<string>",
"name": "<string>",
"timezone": "<string>",
"publicAccess": true
}
'{
"id": "<string>",
"domain": "<string>",
"name": "<string>",
"organizationId": "<string>",
"timezone": "<string>",
"publicAccess": true,
"trackingStatus": "<string>",
"createdAt": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/databuddy-analytics/Databuddy/llms.txt
Use this file to discover all available pages before exploring further.
create permissionexample.com or app.example.com)America/New_York). Defaults to UTCfalseclientId in tracking script)setup_required)curl -X POST https://api.databuddy.cc/websites/create \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"organizationId": "org_abc123",
"domain": "example.com",
"name": "My Website",
"timezone": "America/Los_Angeles"
}'
{
"id": "web_new456",
"organizationId": "org_abc123",
"domain": "example.com",
"name": "My Website",
"timezone": "America/Los_Angeles",
"publicAccess": false,
"trackingStatus": "setup_required",
"createdAt": "2024-03-01T16:45:00Z"
}
id as your clientId