Skip to content

Insights API ​

Reporting — the pages an admin can open, each page's cards, a single card's data for a date range and scope, and CSV export. Replaced the old Pro analytics endpoints.

Authentication ​

Every route is registered with InsightsPolicy, which is site-admin only and implements one method per action, so none of them falls back to the weaker verifyRequest(). Cards are additionally checked with canView() for the requested scope and skipped when the install's Insights level does not include them.

Endpoints ​

MethodPathEditionOperationWhat it does
GET/insights/pagesCoreGet PagesLists the Insights pages the current admin can open, plus the state the admin UI needs before it renders any of them.
GET/insights/pages/{page}CoreGet PageReturns one Insights page's definition together with the definition of every card on it.
GET/insights/cards/{card}CoreGet CardReturns one card's data for a date range and scope: the series or rows it plots, its totals, and the comparison against the preceding period.
GET/insights/cards/{card}/exportCoreGet ExportReturns one card's data as CSV content plus a suggested filename, for the export button.

FluentCommunity developer documentation