Get lab dashboard statistics
Returns monthly order counts, revenue totals, completion rates, and deadline breakdown for the authenticated lab. Compares current month to previous month for trend calculation.
Returns monthly order counts, revenue totals, completion rates, and deadline breakdown for the authenticated lab. Compares current month to previous month for trend calculation.
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Response Body
application/json
curl -X GET "https://example.com/dashboard/stats"{ "monthly": { "totalOrders": 0, "completedOrders": 0, "pendingOrders": 0, "currency": "GBP", "revenue": 0, "revenueExact": "1234.56", "avgOrderValue": 0, "avgOrderValueExact": "1234.56", "currencyTotals": [ { "currency": "GBP", "totalOrders": 0, "completedOrders": 0, "pendingOrders": 0, "revenueExact": "1234.56", "previousRevenueExact": "1234.56", "avgOrderValueExact": "1234.56", "trends": { "orders": { "change": "string", "type": "increase" }, "completed": { "change": "string", "type": "increase" }, "revenue": { "change": "string", "type": "increase" }, "pending": { "change": "string", "type": "increase" } } } ], "trends": { "orders": { "change": "string", "type": "increase" }, "completed": { "change": "string", "type": "increase" }, "revenue": { "change": "string", "type": "increase" }, "pending": { "change": "string", "type": "increase" } } }, "deadlines": { "overdue": 0, "today": 0, "tomorrow": 0, "thisWeek": 0 }}Bootstrap all lab dashboard panels in one call GET
Aggregates /dashboard/stats, /dashboard/today, /dashboard/trends, and /dashboard/operations into a single parallel request. Defaults: today's date, revenue metric, 30-day trends, all deadlines, page 1, limit 10.
Get today's hourly breakdown GET
Returns hourly order or revenue data for a given day (defaults to today). Includes cumulative totals and end-of-day projection. Lab-only endpoint.