TuKit exposes two category-scoped search endpoints that accept a free-textDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/fredy-rizo/tukit/llms.txt
Use this file to discover all available pages before exploring further.
query parameter and match it against product titles using a case-insensitive MongoDB regex. One endpoint searches only products in the "Uniforme" category and the other searches only "Tipografia". Both endpoints support optional pagination via path parameters and accept an optional typeProduct body field to further narrow results to paid or free products. Results are sorted by newest first (_id: -1) and include a pagination object so clients can implement page controls.
POST /api/product/search-uniform/:query/:pag?/:perpage?
POST /api/product/search-typography/:query/:pag?/:perpage?
Authentication
| Header | Value | Required |
|---|---|---|
token-access | <your JWT token> | ✅ Yes |
Path Parameters
The search term to match against product titles. The lookup uses a
case-insensitive regex (
$regex with $options: "i"), so partial matches
are supported. For example, "tigres" will match "Club Tigres 2025".Page number to retrieve, starting at
1. Handled by the Paginate
middleware before the controller runs. Optional — defaults to page 1
when omitted.Number of results per page. Handled by the
Paginate middleware. Optional
— the middleware supplies a default when omitted.Request Body
Filter results by payment type. When provided, only products matching this
value are returned.Allowed values:
"Pago" | "Gratuito"Category Scope
The two endpoints are identical in behaviour except for the category filter
applied server-side:
Note the spelling difference: the database stores uniform products as
| Endpoint | Category filter applied |
|---|---|
/search-uniform/… | category: "Uniforme" |
/search-typography/… | category: "Tipografia" |
"Uniforme" and typography products as "Tipografia" (no accent) inside
this search controller, so queries against the wrong endpoint will return
zero results regardless of the search term.Response
200 — Search Results
A loading message:
"Cargando uniformes..." for the uniform endpoint, or
"Cargando tipografías..." for the typography endpoint.true on success.Array of product documents matching the search criteria, sorted by newest
first. May be an empty array if no products match.
Pagination metadata for the current result set.
Error Responses
| Status | Condition |
|---|---|
500 | Unexpected server error |
Examples
- Search uniforms (paid)
- Search typography (free)
Search for uniforms whose title contains “tigres”, returning only paid
products on page 1 with 10 results per page.
cURL
Success Response