TrackMe API Docs
API ReferenceOwner: Dashboard

Owner home-screen aggregator — KPIs, recent orders, pending applications.

Single round-trip composition so the mobile owner home screen's first paint never fans out into ten separate queries. Returns counts (total / active / featured trucks; total / active jobs; total / active listings), revenue and order rollups over the last 7 + 30 days, the latest order rows, pending applicant count, and a weighted average rating across the owner's trucks. Every value is filtered on `owner_id = caller`.

GET
/api/v1/owner/dashboard

Authorization

bearerAuth
AuthorizationBearer <token>

AdonisJS access-token guard (middleware.auth({ guards: ["api"] })). Send Authorization: Bearer <oat_…> (issued by /auth/register, /auth/login, /auth/social/{google,apple}, or /auth/guest).

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/owner/dashboard"
{}
{  "error": {    "code": "AUTH_REQUIRED",    "message": "Authentication is required to access this resource."  },  "meta": {    "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7"  }}
{  "error": {    "code": "FORBIDDEN",    "message": "You are not allowed to perform this action."  },  "meta": {    "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7"  }}