Project traffic
GET /projects/{projectId}/analytics/traffic
Analytics routes need a key scoped to all, analytics, project, or domain, and a paid plan.
domains holds one entry per hostname with its own summary and timeline. When some data is unavailable the response adds analyticsStatus: "degraded" and warnings.
Analytics endpoints
/user/analytics returns 403 if the hostname is not yours. A domain with no project returns an empty summary. /cli/domains/{hostname}/stats uses the domain key scopes (all, domain, or reselling).
List teams
GET /teams
Team routes need a key scoped to all, team, or database.
/teams/{teamId}/databases needs a key scoped to all or database.
Team endpoints
Pass
teamId to project, domain, database, cron, invoice, server, and usage endpoints when you work outside your personal scope.
