analytics resource to fetch overview metrics, conversation trends, genie performance breakdowns, and period-over-period comparisons.
Supported actions: all, overview, trends, genie-performance, page-views, page-view-totals, page-view-unused-analysis, compare.
Overview
Returns account-level aggregate counts for genies, conversations, leads, and knowledge base documents.all and overview are equivalent.
string
required
Must be
"analytics".string
required
"all" or "overview".object
Response
boolean
object
Trends
Returns daily conversation trend data points over a time period.string
required
Must be
"analytics".string
required
Must be
"trends".object
Genie performance
Returns conversation volume grouped by genie, filtered by time period. Supports custom date ranges.string
required
Must be
"analytics".string
required
Must be
"genie-performance".object
Page views
Returns per-path, per-day page view counts for the platform’s own pages over a time period. Rows are ordered newest day first, then by view count descending.string
required
Must be
"analytics".string
required
Must be
"page-views".object
Response
boolean
object
Page view totals
Returns view counts aggregated per page path across the whole period — the daily rows frompage-views collapsed into one total per path, sorted most-viewed first. Not paginated.
string
required
Must be
"analytics".string
required
Must be
"page-view-totals".object
Response
boolean
object
Unused page analysis
Matches recorded page-view URLs to the route patterns in a supplied route manifest, aggregates traffic per route, and returns a Smart review of which feature and public pages look safe to retire. Concrete URLs are rolled up into their route pattern (so a dynamic route such as/genie-hub/my-genies/:genieId counts every URL it serves), and each route is compared with the same-length prior period.
Only routes of kind feature and public are judged. Per-genie, system, redirect, and internal routes are set aside and returned under excluded with their numbers. Confidence is capped when tracking coverage is short (never high with under 14 days of coverage), and every number in the response comes from the server-side aggregation, not from the review itself. The result is advisory only — nothing is deleted.
string
required
Must be
"analytics".string
required
Must be
"page-view-unused-analysis".object
required
Response
Every route returned inanalysis.candidates, analysis.caution, and excluded carries a stats object:
boolean
object
Treat
candidates as a shortlist to verify rather than a delete list — low traffic can also mean a route was only recently added or tracking coverage is still short. Check coverageDays before acting on the results.Compare
Returns a period-over-period conversation comparison (e.g., this week vs last week).string
required
Must be
"analytics".string
required
Must be
"compare".object

