Skip to content

Stats

The stats endpoint returns aggregate figures for your finances: balances, income, expenses, and derived measures like net cash flow and savings rate. It requires a bearer token and lives under /api/v1.

MethodPathAction
GET/api/v1/statsGet aggregate statistics
ParameterTypeNotes
start_datestringStart of the range.
end_datestringEnd of the range.
wallet_idsstringComma-separated wallet IDs to include.
periodstringday, week, month, or year. Defaults to month.
presetstringall_time, current_week, current_month, or last_3_months.
Terminal window
curl "https://api.your-domain.example/api/v1/stats?preset=current_month" \
-H "Authorization: Bearer your-token-here"
{
"success": true,
"message": "Stats retrieved",
"data": {
"currency": "USD",
"overview": {
"total_balance": 4210.55,
"net_worth": 4210.55,
"total_income": 3200.0,
"total_expenses": 1875.4,
"net_cash_flow": 1324.6,
"avg_monthly_income": 3100.0,
"avg_monthly_expenses": 1800.0,
"savings_rate": 41.39
}
}
}

The overview block carries the headline figures. net_cash_flow is income minus expenses for the period; savings_rate is expressed as a percentage.