SaaSFlow
DevelopersAPI

Data slices

Pre-aggregated analytics endpoints — MRR, cash flow, P&L, balances, forecasts.

Reports in the SaaSFlow UI are powered by data slices: pre-aggregated analytics endpoints under /companies/{companyId}/data/{slice}. Each slice has typed parameters and returns a structured shape.

Single slice

POST /companies/{companyId}/data/{slice}
{
    "timeZone": "Europe/Berlin",
    ...sliceSpecificParams
}

All slices accept an optional timeZone and slice-specific filters (date range, account, product, etc.).

Batch

When you need multiple slices for the same screen, batch them:

POST /companies/{companyId}/data/batch
{
    "timeZone": "Europe/Berlin",
    "slices": [
        { "type": "mrrData", "from": "2026-01-01", "to": "2026-12-31" },
        { "type": "cashFlowTimeSeries", "from": "2026-01-01", "to": "2026-12-31" }
    ]
}

The batch endpoint runs slices in parallel server-side and returns:

{
    "results": [ ... ]
}

Available slices

Subscription metrics:

SlicePowers
mrrDataMRR over time
mrrAtDateMRR at a single date
mrrByProductMRR split by product
mrrChangeEventsNew / expansion / contraction / churn events
customerMrrMRR per customer
customerChangesCustomers that changed in a period
customerMonthlyDataPer-customer monthly history
monthlyDataPer-month new / upgrade / downgrade / churn / revenue
cohortsCohort retention grid
retentionCohortDetailCustomer-level cell drill-down

Cash and balances:

SlicePowers
cashFlowTimeSeriesInflows / outflows per period (+ forecast option)
cashFlowByCategoryCash flow split by category
balanceTimeSeriesAccount balance over time
accountBalanceByAccountCurrent balance per account
accountBalanceKpisTotal cash + change vs previous period
balanceByCashTypeBalance split by account type

P&L:

SlicePowers
profitLossDataFull P&L per period
revenueExpensesRevenue/expense summary
revenueExpensesBarBar-chart data
revenueExpensesByCategoryRevenue/expenses by category
topExpenseVendorsTop expense vendors
periodDetailsPeriod-level detail

Generic:

SlicePowers
analyticsArbitrary analytics passthrough

Slice tools in MCP

Each slice is also exposed as an MCP tool named data_{slice}. See MCP tools.

On this page