TrackMe API Docs

Federated search across trucks, menu items, jobs, and marketplace listings.

Runs the same query against four Meilisearch indexes in parallel and caps each section at 5 hits. Public; results respect the request locale (`Accept-Language`) for localised name + description.

GET
/api/v1/search

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

q*string

Response Body

application/json

application/json

curl -X GET "https://example.com/api/v1/search?q=string"
{  "data": {    "trucks": [      {        "id": "trk_01jq8z2hf5t8z4w9d8x4mzg2p3",        "name": "Crispy Cart",        "description": "KSA-style smash burgers and turkish coffee, on wheels.",        "city": "Riyadh",        "isOpen": true,        "isFeatured": true,        "ratingAverage": 4.7      }    ],    "menuItems": [      {        "id": "mit_01jq8z5e0f1g2h3j4k5l6m7n8p",        "truckId": "trk_01jq8z2hf5t8z4w9d8x4mzg2p3",        "truckName": "Crispy Cart",        "name": "Smash Double",        "description": "Two smashed beef patties, american cheese, house sauce.",        "priceMinor": 3500      }    ],    "jobs": [      {        "id": "job_01jq8z3g0h1j2k3l4m5n6p7q8r",        "title": "Burger station — full-time",        "description": "Saturdays included; tips on top of base salary.",        "city": "Riyadh"      }    ],    "listings": [      {        "id": "lst_01jq8zs1a3c5e7g9j1l3n5p7q9",        "title": "Used Garland griddle — 36\"",        "description": "Two seasons of weekend service. Recently re-seasoned.",        "priceMinor": 320000,        "city": "Riyadh",        "listingType": "equipment"      }    ]  },  "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"  }}