Skip to main content
GET
/
v1
/
api
/
dashboard
/
stats
Get dashboard statistics
curl --request GET \
  --url http://localhost:3091/v1/api/dashboard/stats \
  --header 'Authorization: Bearer <token>'
{
  "totalShipments": 123,
  "pendingShipments": 123,
  "completedShipments": 123,
  "totalTrips": 123,
  "activeTrips": 123,
  "walletBalance": 123,
  "totalEarned": 123,
  "totalWithdrawn": 123,
  "reviewCount": 123,
  "averageRating": 123,
  "unreadNotifications": 123
}

Authorizations

Authorization
string
header
required

JWT access token from POST /v1/api/auth/login

Response

Statistics retrieved successfully

totalShipments
integer<int64>
pendingShipments
integer<int64>
completedShipments
integer<int64>
totalTrips
integer<int64>
activeTrips
integer<int64>
walletBalance
number
totalEarned
number
totalWithdrawn
number
reviewCount
integer<int64>
averageRating
number<double>
unreadNotifications
integer<int64>