The Dashboard API aggregates all of a user’s fuel log data into a single, chart-ready summary response. It computes the number of active vehicles, the latest available exchange rate, total spending for the selected month, full historical efficiency data points, annual efficiency comparisons by month, monthly spending history, and exchange rate history — everything the AutoLog frontend needs to render its charts and KPI tiles in one round-trip. All data is scoped to the authenticated user automatically. TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/JReyna217/AutoLog/llms.txt
Use this file to discover all available pages before exploring further.
vehicleId, month, and year query parameters let the frontend filter the summary to a specific vehicle and/or time period.
All returned efficiency values are in km/L and all cost values are in MXN, regardless of the units originally submitted on fill-up entries.
GET /api/dashboard/summary
GET /api/dashboard/summary
Returns a fully aggregated dashboard summary for the authenticated user. All query parameters are optional; omitting them returns data across all vehicles and all recorded time periods.
Auth
Authorization: Bearer <accessToken> — required.
Query parameters
Filter the summary to a single vehicle. When omitted, data from all of the user’s vehicles is aggregated together.
Filter spending and efficiency data to a specific calendar month (1 = January … 12 = December). Typically paired with
year.Filter data to a specific calendar year, e.g.
2024. When omitted, all years are included.Response fields
Total number of vehicles registered to the authenticated user.
The most recently stored USD-to-MXN exchange rate.
null if no exchange rate records exist.Sum of all fill-up costs in MXN for the selected month and year. Returns
0 when no logs match the filter.Chronological list of individual fill-up efficiency data points, used to draw a time-series line chart.
Month-by-month average fuel efficiency for the selected year, suitable for rendering a bar or column chart comparing performance across months.
A labeled series of monthly total spending values, used to draw a spending trend chart.
A labeled series of historical USD/MXN exchange rate values, used to draw a rate trend chart.
Response codes
| Code | Meaning |
|---|---|
200 OK | Dashboard summary returned. |
401 Unauthorized | Missing or invalid Bearer token. |