Skip to main content
GET
/
categories
/
getAll
Get all categories (public)
curl --request GET \
  --url https://api.octaviatech.app/cms/categories/getAll \
  --header 'x-api-key: <api-key>'
{
  "success": true,
  "statusCode": 200,
  "message": "OK",
  "data": {
    "items": [
      {
        "id": "{{objectId}}",
        "name": {
          "en": "Surgery",
          "es": "Cirugía"
        },
        "slug": "surgery",
        "isActive": true,
        "order": 1
      }
    ],
    "pagination": {
      "total": 1,
      "page": 1,
      "limit": 50,
      "totalPages": 1
    }
  }
}

Authorizations

x-api-key
string
header
required

Query Parameters

page
integer
Required range: x >= 1
Example:

1

limit
integer
Required range: 1 <= x <= 100
Example:

50

keyword
string
Example:

"surg"

includeInactive
boolean
Example:

false

sortBy
enum<string>
Available options:
order,
createdAt
Example:

"order"

sortOrder
enum<string>
Available options:
asc,
desc
Example:

"asc"

Response

200 - application/json

OK

The response is of type any.