TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/astrxnomo/financial-analytics-agent/llms.txt
Use this file to discover all available pages before exploring further.
/api/finance/trend endpoint returns a time series of income or expense values aggregated by month, making it the right choice for any question about how a metric changes over time. When groupBy=month (the default), each row represents one calendar month across the entire company. When groupBy=department, the series is split per department so you can compare trajectories side by side — for example, to see which department’s spend grew fastest over a quarter. You can also narrow the response to specific departments using the departments filter.
Request
Which transaction type to aggregate. Must be either
income or expense.Start of the date range in
YYYY-MM-DD format. Inclusive.End of the date range in
YYYY-MM-DD format. Inclusive.Grouping dimension. Use
month for a single company-wide series or department to get one series per department. Defaults to month if omitted.Optional comma-separated list of department names to include. Works with both
groupBy=month (narrows the company-wide aggregate to only those departments) and groupBy=department (filters which per-department series are returned). Example: Engineering,Marketing. Whitespace around commas is trimmed automatically.Response
The response is an array ofTrendPoint objects, one per month (and optionally per department). Months with no transactions are omitted rather than returned as zero-value rows.
The first day of the calendar month for this data point, in
YYYY-MM-DD format (e.g. 2025-03-01 for March 2025).The department name. Only present when
groupBy=department.The summed income or expense for this period (and department, if grouped).