Get Spending Analysis
Get spending analysis for the authenticated user.
Returns categorized spending breakdown with totals.
Double aggregation: Use group_by=time_period with secondary_group_by=category
or secondary_group_by=merchant to get a breakdown within each time period (top 10 + “Other”).
The end_date is capped at today if it is in the future or omitted.
Returns 404 if no spending data is available.
Documentation Index
Fetch the complete documentation index at: https://help.mytruv.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication with a personal access token (prefix pat_). Generate tokens in the MyTruv web app under Settings > Sharing.
Query Parameters
category, merchant, time_period day, week, month, quarter, year category, merchant Response
Successful Response
Spending analysis response with optional double aggregation.
Wraps the MyTruv API response and adds by_time_period with breakdown when
secondary_group_by is specified.
Spending data from MyTruv API.
Summary statistics from MyTruv API.
Unique request identifier.
Analysis creation timestamp.
Time periods with category/merchant breakdown. Only present when group_by=time_period and secondary_group_by is set.