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

# Admin List Categories

> Admin category listing — NOT the public /categories endpoint.

Two deliberate differences from the public read:
- Includes INACTIVE categories (so a deactivated one stays visible and
  re-activatable), but excludes soft-deleted ones (deleted_at IS NOT NULL).
- Not in the Cloudflare cache allow-list (`/api/v1/categories` is), so an
  operator's create/delete is reflected immediately instead of after the
  edge TTL — which is exactly why the management list must not read the
  cached public endpoint.



## OpenAPI

````yaml https://api.vellaro.io/openapi.json get /api/v1/admin/categories
openapi: 3.1.0
info:
  title: Vellaro API
  description: Vellaro 2026 — E-commerce API
  version: 0.1.0
servers:
  - url: https://api.vellaro.io
    description: Produzione
security: []
tags: []
paths:
  /api/v1/admin/categories:
    get:
      tags:
        - admin
        - admin
      summary: Admin List Categories
      description: >-
        Admin category listing — NOT the public /categories endpoint.


        Two deliberate differences from the public read:

        - Includes INACTIVE categories (so a deactivated one stays visible and
          re-activatable), but excludes soft-deleted ones (deleted_at IS NOT NULL).
        - Not in the Cloudflare cache allow-list (`/api/v1/categories` is), so
        an
          operator's create/delete is reflected immediately instead of after the
          edge TTL — which is exactly why the management list must not read the
          cached public endpoint.
      operationId: admin_list_categories_api_v1_admin_categories_get
      parameters:
        - name: tree
          in: query
          required: false
          schema:
            type: boolean
            description: Return as nested tree
            default: true
            title: Tree
          description: Return as nested tree
        - name: lang
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Force content language (it|en|sq)
            title: Lang
          description: Force content language (it|en|sq)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_list_CategoryOut__'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ApiResponse_list_CategoryOut__:
      properties:
        data:
          anyOf:
            - items:
                $ref: '#/components/schemas/CategoryOut'
              type: array
            - type: 'null'
          title: Data
        meta:
          anyOf:
            - $ref: '#/components/schemas/PaginationMeta'
            - type: 'null'
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Code
      type: object
      title: ApiResponse[list[CategoryOut]]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CategoryOut:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
        name_i18n:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Name I18N
        slug:
          type: string
          title: Slug
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        description_i18n:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Description I18N
        image_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Image Url
        parent_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Parent Id
        position:
          type: integer
          title: Position
        is_active:
          type: boolean
          title: Is Active
        children:
          items:
            $ref: '#/components/schemas/CategoryOut'
          type: array
          title: Children
          default: []
      type: object
      required:
        - id
        - name
        - slug
        - description
        - image_url
        - parent_id
        - position
        - is_active
      title: CategoryOut
    PaginationMeta:
      properties:
        page:
          type: integer
          title: Page
        page_size:
          type: integer
          title: Page Size
        total:
          type: integer
          title: Total
        total_pages:
          type: integer
          title: Total Pages
      type: object
      required:
        - page
        - page_size
        - total
        - total_pages
      title: PaginationMeta
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````