Admin APIs/Dashboard
Get Dashboard Summary
GET
/admin/dashboard/summaryBearer token required
ADMINContent-Type:
application/jsonQuery Parameters
| Name | Type | Required | Description |
|---|---|---|---|
months | integer | Optional | Graph range (3–24)Default: 12 |
listLimit | integer | Optional | List items (5–25)Default: 10 |
currency | string | Optional | ISO 4217 code |
Response Example
200 OK
{
"action": true,
"data": {
"totalVehicles": 150,
"totalUsers": 45,
"lastMonthRevenue": {
"amount": 25000,
"currency": "INR"
},
"thisMonthRevenue": {
"amount": 18500,
"currency": "INR"
},
"pendingAmount": {
"amount": 5200,
"count": 12,
"currency": "INR"
},
"expiryThisWeek": 5,
"expiryThisMonth": 18,
"deviceInstallsThisMonth": 8,
"vehicleLiveStatus": {
"total": 150,
"running": 82,
"stop": 35,
"inactive": 20,
"noData": 8,
"noDevice": 5
}
}
}Code Examples
curl -X GET 'https://<your-domain>:3001/admin/dashboard/summary' \
-H 'Authorization: Bearer <token>'Try It
API Playground
Sends a real request to the configured servermonthslistLimitcurrency