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

> ## Agent Instructions
> These docs cover learner integrations through Hosted Lab Pages, the SDK, and the REST API. Content management is outside this integration scope.
> Read the setup page for the chosen approach before implementing it. Keep organization API keys and hosted mint secrets on the server.
> The public SDK is coming soon. Check the SDK quickstart for current availability. Do not invent installation commands or direct readers to a private package.
> Cybr provides completion tracking and CTF verification. The integrating platform decides whether to award points.

# List comments

> Returns organization-scoped discussion threads and replies. SDK: `labs.listComments()`.

SDK: `labs.listComments()`.


## OpenAPI

````yaml assets/openapi.json GET /api/v2/labs/{labId}/comments
openapi: 3.1.0
info:
  title: Cybr Labs public integration API
  version: 0.0.15
  description: SDK and REST integration contract. Organization keys remain on the server.
  contact:
    email: support@cybr.com
servers:
  - url: https://api.cybr.com
security:
  - OrganizationKey: []
tags:
  - name: Labs
    description: Content, progress, discussions, and resource links.
  - name: Deployments
    description: Lab environments and terminal sessions.
paths:
  /api/v2/labs/{labId}/comments:
    get:
      tags:
        - Labs
      summary: List comments
      description: >-
        Returns organization-scoped discussion threads and replies. SDK:
        `labs.listComments()`.
      operationId: list_comments
      parameters:
        - name: labId
          in: path
          required: true
          schema:
            type: string
        - name: x-cybr-learner-id
          in: header
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 500
          description: Learner ID from the server session.
        - name: cursor
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 50
            default: 20
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommentsPage'
              example:
                comments: []
                nextCursor: null
                totalCount: 0
        '400':
          description: Invalid cursor, limit, or learner header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Organization API key required.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Lab not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Discussion read limit reached. Read the Retry-After header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        default:
          description: Other API error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CommentsPage:
      type: object
      properties:
        comments:
          type: array
          items:
            $ref: '#/components/schemas/Comment'
        nextCursor:
          anyOf:
            - type: string
            - type: 'null'
        totalCount:
          type: integer
      required:
        - comments
        - nextCursor
        - totalCount
    Error:
      type: object
      properties:
        message:
          type: string
        retryAfter:
          type: number
        activeCount:
          type: integer
        limit:
          type: integer
        errors:
          type: array
          items:
            type: string
      required:
        - message
    Comment:
      type: object
      properties:
        id:
          type: string
        authorName:
          anyOf:
            - type: string
            - type: 'null'
        body:
          anyOf:
            - type: string
            - type: 'null'
        createdAt:
          type: string
          format: date-time
        ownedByViewer:
          type: boolean
        deleted:
          type: boolean
        replies:
          type: array
          items:
            $ref: '#/components/schemas/Comment'
      required:
        - id
        - authorName
        - body
        - createdAt
        - ownedByViewer
        - deleted
        - replies
  securitySchemes:
    OrganizationKey:
      type: apiKey
      in: header
      name: X-API-Key

````