Sales Analytics
Sales summary KPIs
Powers the KPI card row on the Sales analytics screen and the top row of the Executive overview screen.
Returns total revenue, avg deal size, open leads, new clients, and deals closed for the requested period. All monetary values are in the contract currency (KES for domestic deals).
Campaign counts have moved to GET analytics/campaigns/summary.
GET
Sales summary KPIs
Authorizations
Enter your JWT token in the format: Bearer
Query Parameters
Period string. Accepted formats:
2026-05— calendar monthQ2-2026— quarter (Q1–Q4)YTD-2026— year to date
Previous
Top clients by revenuePowers the **Top clients by revenue** progress-bar list on the **Sales analytics** screen.
Ranked by `total_contracted_revenue` descending. `revenue_share_pct` is each client's share of total period revenue, computed as a window function so it always sums to 100% across the returned rows.
Next
Sales summary KPIs
