> ## 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 Comments

> Get All Comments.



## OpenAPI

````yaml GET /articles/comments/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:
  /articles/comments/getAll:
    get:
      tags:
        - Articles
      summary: Get all comments for tenant (moderation)
      description: >-
        Paginated moderation feed of every non-deleted comment in the tenant,
        newest first, including pending and rejected ones. Each row is joined
        with its article, the article's categories, and the comment author. All
        filters are optional and combine together.
      parameters:
        - in: query
          name: page
          schema:
            type: integer
            example: 1
            minimum: 1
        - in: query
          name: limit
          description: Defaults to 20, capped at 100
          schema:
            type: integer
            example: 20
            minimum: 1
            maximum: 100
        - in: query
          name: status
          description: Filter by moderation status. Values outside the enum are ignored.
          schema:
            type: string
            enum:
              - pending
              - approved
              - rejected
            example: pending
        - in: query
          name: from
          description: Only comments created on or after this date
          schema:
            type: string
            format: date
            example: '2025-05-01'
        - in: query
          name: to
          description: Only comments created on or before this date (end of day)
          schema:
            type: string
            format: date
            example: '2025-05-31'
        - in: query
          name: articleId
          schema:
            type: string
            pattern: ^[a-fA-F0-9]{24}$
            example: '{{objectId}}'
        - in: query
          name: categoryId
          schema:
            type: string
            pattern: ^[a-fA-F0-9]{24}$
            example: '{{objectId}}'
        - in: query
          name: articleName
          description: >-
            Case-insensitive match against the article slug (or full-text
            search)
          schema:
            type: string
            example: droopy-nose
      responses:
        '200':
          description: OK
          content:
            application/json:
              example:
                success: true
                statusCode: 200
                message: Tenant comments retrieved successfully
                data:
                  comments:
                    - articleId: '{{objectId}}'
                      actorType: user
                      content: Great write-up, thanks for sharing.
                      likes: 2
                      dislikes: 0
                      status: approved
                      createdAt: '2025-05-22T21:42:41.596Z'
                      updatedAt: '2025-05-22T21:42:41.596Z'
                      parentId: null
                      user:
                        firstName: Ada
                        lastName: Lovelace
                        avatar: https://cdn.example.com/a.jpg
                      article:
                        _id: '{{objectId}}'
                        slug: droopy-nose
                        mainTitle:
                          en: Droopy Nose
                          es: Nariz caída
                      categories:
                        - name: Health
                          slug: health
                  pagination:
                    total: 1
                    page: 1
                    limit: 20
                    totalPages: 1
        '401':
          description: Unauthorized
          content:
            application/json:
              example:
                success: false
                statusCode: 401
                message: Unauthorized
                data: null
        '500':
          description: Server error
          content:
            application/json:
              example:
                success: false
                statusCode: 500
                message: Server Error
                data: null
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````