Skip to main content

Project traffic

GET /projects/{projectId}/analytics/traffic Analytics routes need a key scoped to all, analytics, project, or domain, and a paid plan.
24h | 48h | 72h | 7d | 30d
default:"24h"
Analytics period. Other values fall back to 24h.
string
Limits results to one project hostname.
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.
A team-scoped key sees only its own team. /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.