Skip to main content

Get finance insights summary

Currency-scoped read model for the Insights tab. Pass periodStartMs/periodEndMs from the user-local month. Mixed currencies are never summed into one total.
1 min read
get/finance/profiles/{studioId}/insights-summary
Request example
Response
get/finance/profiles/{studioId}/insights-summary

Authorization

Authorizationstringheaderrequired#
Better Auth session token. Go resolves the token in the session table and maps it to users.id via auth_user_id. The profile is taken from the path param :studioId when applicable.

Path parameters

studioIdstringrequired#

Query parameters

periodStartMsinteger#
periodEndMsinteger#
currencystring#

Responses

application/json
OK.
dataobjectrequired#
Show child attributes
periodStartMsintegerrequired#
periodEndMsintegerrequired#
primaryCurrencystring#
hasMultipleCurrenciesbooleanrequired#
periodSummaryobject#
Show child attributes
currencystring#
incomeCentsintegerrequired#
expenseCentsintegerrequired#
expensePaidCentsintegerrequired#
expensePendingCentsintegerrequired#
transferCountintegerrequired#
monthlyTrendobject[]required#
Show child attributes
monthKeystringrequired#
incomeCentsintegerrequired#
expenseCentsintegerrequired#
periodBreakdownobject[]required#
budgetsobject[]required#
budgetsExceededinteger#
budgetsWarninginteger#
budgetsNeedingAttentioninteger#
Budgets in the Budgets list attention filter (over, reached, committed, or near threshold) for the insights period and currency. Includes pending spend; not the same as budgetsExceeded (paid limit exceeded only).
accountsByCurrencyobject[]required#
savingsByCurrencyobject[]required#
debtsByCurrencyobject[]required#
activeRecurringintegerrequired#
pausedRecurringintegerrequired#
accountsobject[]required#
request_idstring#