GuideLab API

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.

GET
/dashboard/stats

Returns monthly order counts, revenue totals, completion rates, and deadline breakdown for the authenticated lab. Compares current month to previous month for trend calculation.

Authorization

__Secure-guidelab-prod.session_token<token>

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  }}
Empty