TrackMe API Docs

List the caller's favorite trucks.

Sorted by `favoritedAt` newest-first. Bound the result with `?limit=` (default 50, max 200).

GET
/api/v1/me/favorite-trucks

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

Query Parameters

limit?number

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/me/favorite-trucks"
{  "data": {    "items": [      {        "id": "trk_01jq8z2hf5t8z4w9d8x4mzg2p3",        "name": "Crispy Cart",        "description": "KSA-style smash burgers and turkish coffee, on wheels.",        "categoryId": "cat_01jq8z2c4r6n8p0q2s4u6w8y0a",        "cuisineTypes": [          "burgers",          "coffee"        ],        "city": "Riyadh",        "address": "Tahlia Street, near Boulevard",        "lat": 24.6877,        "lng": 46.7219,        "distanceKm": 1.42,        "isOpen": true,        "isFeatured": true,        "ratingAverage": 4.7,        "reviewsCount": 218,        "contactPhone": "+966555012345",        "contactWhatsapp": "+966555012345",        "whatsappNumber": "+966555012345",        "images": [          {            "id": "fil_01jq8z5a0b1c2d3e4f5g6h7j8k",            "purpose": "truck_photo",            "urls": {              "original": "https://cdn.trackme.sa/t/crispy-cart-original.jpg",              "thumb": "https://cdn.trackme.sa/t/crispy-cart-thumb.jpg",              "medium": "https://cdn.trackme.sa/t/crispy-cart-medium.jpg",              "large": "https://cdn.trackme.sa/t/crispy-cart-large.jpg"            }          }        ],        "langActual": "en",        "favoritedAt": "2026-05-19T11:02:09.000Z"      }    ]  },  "meta": {    "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7"  }}
{  "error": {    "code": "AUTH_REQUIRED",    "message": "Authentication is required to access this resource."  },  "meta": {    "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7"  }}
{  "error": {    "code": "VALIDATION_ERROR",    "message": "One or more fields are invalid.",    "fields": [      {        "path": "email",        "rule": "email",        "message": "Must be a valid email address."      }    ]  },  "meta": {    "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7"  }}