> ## Documentation Index
> Fetch the complete documentation index at: https://developers.octaviatech.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Get all categories (public)



## OpenAPI

````yaml /api-reference/ai-cms/openapi.json get /categories/getAll
openapi: 3.1.0
info:
  title: Blog API
  version: 1.0.0
servers:
  - url: https://api.octaviatech.app/cms
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Tags
    description: Tag management endpoints
paths:
  /categories/getAll:
    get:
      tags:
        - Categories
      summary: Get all categories (public)
      parameters:
        - in: query
          name: page
          schema:
            type: integer
            example: 1
            minimum: 1
        - in: query
          name: limit
          schema:
            type: integer
            example: 50
            minimum: 1
            maximum: 100
        - in: query
          name: privacy
          description: >-
            "public" (default) returns only non-private categories; "private"
            returns only private ones; any other value returns both
          schema:
            type: string
            enum:
              - public
              - private
            example: public
      responses:
        '200':
          description: OK
          content:
            application/json:
              examples:
                OK:
                  value:
                    success: true
                    statusCode: 200
                    message: OK
                    data:
                      categories:
                        - _id: '{{objectId}}'
                          name:
                            en: Surgery
                            es: Cirugía
                          slug: surgery
                          isActive: true
                          subCategories: []
                      pagination:
                        total: 1
                        page: 1
                        limit: 50
                        totalPages: 1
        '400':
          description: Bad request (missing `x-tenant-id` header)
          content:
            application/json:
              examples:
                BadRequest:
                  value:
                    success: false
                    statusCode: 400
                    message: x-tenant-id is required in headers
                    data: null
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````