Authentication
Requires either:
- Session authentication (browser)
- API key with organization scope in
x-api-key header or Authorization: Bearer header
Request Body
The organization ID to list websites for
Include archived websites in results. Defaults to false
Response
Returns an array of website objects.
Unique website identifier
Organization that owns this website
Website domain (e.g., example.com)
Display name for the website
Whether the analytics dashboard is public
Current tracking status: active, inactive, or setup_required
ISO 8601 timestamp of creation
ISO 8601 timestamp of last update
Example Request
curl -X POST https://api.databuddy.cc/websites/list \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"organizationId": "org_abc123"
}'
Example Response
[
{
"id": "web_xyz789",
"organizationId": "org_abc123",
"domain": "example.com",
"name": "Example Website",
"publicAccess": false,
"trackingStatus": "active",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-03-01T14:22:00Z"
}
]