List Categories
Retrieve a paginated list of customer-visible categories. Optionally search by name or description and sort alphabetically or by date.integer
default:"1"
Page number (1-based).
integer
default:"20"
Number of results per page. Minimum
1, maximum 100.string
Free-text search across category name and description (trimmed, max 100 characters).
string
default:"name"
Sort field. Prefix with
- for descending. Allowed values: name, -name, created_at, -created_at, updated_at, -updated_at. Default is alphabetical by name.boolean
Always
true on success.array
Array of category objects.
object
Pagination metadata (
page, limit, total, totalPages, hasNext, hasPrev).Get a Category
Retrieve a single category by its public ID, including the number of products assigned to it.string
required
The category’s public ID. Pattern:
cat_*.object
A single category object with the same fields as the list response, plus:
List Products in a Category
Retrieve all customer-visible products belonging to a specific category. Supports the same filtering and sorting options as the global product list.string
required
The category’s public ID. Pattern:
cat_*. Returns 404 if the category is inactive, deleted, or does not exist.integer
default:"1"
Page number (1-based).
integer
default:"20"
Number of results per page. Minimum
1, maximum 100.string
Free-text search within this category’s products (name, brand, description).
string
default:"-created_at"
Sort field. Prefix with
- for descending. Allowed values: name, -name, created_at, -created_at, updated_at, -updated_at.GET /products — an array of product summary objects under data, each containing public_id, name, slug, brand, primary_image, and created_at, plus a meta pagination object.
Example — Render a category product grid