curl --request GET \
--url https://api.example.com/api/reports/dashboard{
"summary": {
"income": 123,
"expense": 123,
"cashFlow": 123,
"totalAvailable": 123
},
"chartData": [
{
"categoryName": "<string>",
"total": 123,
"color": "<string>"
}
],
"expensesAnalysis": {
"fixed": 123,
"variable": 123
}
}curl --request GET \
--url https://api.example.com/api/reports/dashboard{
"summary": {
"income": 123,
"expense": 123,
"cashFlow": 123,
"totalAvailable": 123
},
"chartData": [
{
"categoryName": "<string>",
"total": 123,
"color": "<string>"
}
],
"expensesAnalysis": {
"fixed": 123,
"variable": 123
}
}Authorization header.
Show properties
accountId is provided, shows balance for that specific account. Otherwise, shows sum of all accounts.curl -X GET "https://api.yourfinanceapp.com/api/reports/dashboard?accountId=account_123" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"summary": {
"income": 5000.00,
"expense": 3200.50,
"cashFlow": 1799.50,
"totalAvailable": 12500.00
},
"chartData": [
{
"categoryName": "Housing",
"total": 1200.00,
"color": "#3b82f6"
},
{
"categoryName": "Food",
"total": 850.50,
"color": "#10b981"
},
{
"categoryName": "Transportation",
"total": 450.00,
"color": "#f59e0b"
}
],
"expensesAnalysis": {
"fixed": 1800.00,
"variable": 1400.50
}
}
accountId is provided, totalAvailable reflects only that account’s balanceaccountId, totalAvailable shows the sum of all user accounts