Analytics API
Read-only analytics under /v1/analytics/ surface the same figures the creator dashboard renders.
Read-only analytics under /v1/analytics/* surface the same figures the creator dashboard renders. Every endpoint delegates to the same service layer the dashboard uses, so the dashboard, the MCP tools and REST callers see identical numbers.
All eight reads are tenant-scoped by the token's team, need no Idempotency-Key, and share the token's general rate limit.
Background
Common query parameters
Most reads share the same window selection:
period: a preset window, one of7d,14d,30d,60d,90d,mtd,qtd,ytd,1y,all. Defaults to30d. Ignored when bothfromandtoare supplied; an unknown value falls back to the default rather than failing.from,to: an explicitYYYY-MM-DDrange. Takes precedence overperiodwhen both ends are provided.project_id: an optional project id. Scopes the response to a single project; omit for every project visible to the token. A project outside the token'sscope:project:allow-list is404 TENANT_MISMATCH, an unknown one404 RESOURCE_NOT_FOUND.
The dashboard, earnings and transaction-breakdown reads additionally accept filter allow-lists: plan_ids, statuses, payment_method_ids. Pass each as an array (?plan_ids[]=uuid1&plan_ids[]=uuid2) or as one comma-separated string (?plan_ids=uuid1,uuid2).
Caching
All reads share the same 5-minute cache the creator dashboard uses. A REST call warms the human-facing view and vice versa; consecutive calls with identical filters hit the cache until it rotates.
The service layer returns USD-normalised totals for cross-currency comparability. Per-plan or per-payment rows still carry their original currency alongside the USD-normalised amount.
Endpoints
/v1/analytics/dashboardHeadline figuresGET/v1/analytics/earningsEarnings reportGET/v1/analytics/subscribersSubscriber analyticsGET/v1/analytics/transactionsList transactionsGET/v1/analytics/transactions/breakdownTransaction breakdownGET/v1/analytics/plan-performancePlan performanceGET/v1/analytics/connectorsBy connectorGET/v1/analytics/compositionRevenue compositionRelated
How is this guide?
Last updated on