Skip to content

GET/categories

List all categories

Paginated list of categories. Supports filtering, range operators (`_gte`, `_lte`, `_gt`, `_lt`, `_ne`, `_like`), full-text search, sorting, field selection, and relation expansion.

Parameters 12

NameTypeDescription
_pagequery · integerPage number (1-based)
_limitquery · integerItems per page
_startquery · integerSlice start index (alternative to page-based)

ReturnsCategory

Bearer token required

Response examples

200Paginated array of categories

application/json example derived from schema

[
  {
    "id": 1,
    "name": "Electronics",
    "slug": "electronics",
    "description": "Gadgets, devices, and electronic accessories",
    "image": "https://picsum.photos/seed/cat1/300/200",
    "productCount": 5,
    "createdAt": "2022-01-06T04:19:58.076Z"
  }
]
429429 — rate limit exceeded (120/60s)

application/json

{
  "error": {
    "status": 429,
    "message": "Too many requests",
    "details": {
      "retryAfter": 45
    }
  }
}

Released under the MIT License.