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

# List Knowledge Base Entries

> Returns the embedded entries of a knowledge base, paginated. For FAQ knowledge bases the entries are question/answer pairs; for document and website knowledge bases they are text chunks. The application requests 20 entries per page.

Returns the embedded entries of a knowledge base, paginated (`page` and `limit`; the application uses 20 per page).

For FAQ knowledge bases the entries are question/answer pairs; for document and website knowledge bases they are text chunks.


## OpenAPI

````yaml GET /knowledgeBase/chunks?id={id}
openapi: 3.0.1
info:
  title: QCall Ai API
  description: >-
    A sample API that uses a campaign store as an example to demonstrate
    features in the OpenAPI specification
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.qcall.ai/api/v1
security:
  - apiKeyAuth: []
paths:
  /knowledgeBase/chunks?id={id}:
    get:
      description: >-
        Returns the embedded entries of a knowledge base, paginated. For FAQ
        knowledge bases the entries are question/answer pairs; for document and
        website knowledge bases they are text chunks. The application requests
        20 entries per page.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: The `hash_id` of the knowledge base
        - name: page
          in: query
          required: false
          schema:
            type: integer
            default: 1
          description: Page number (1-based)
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 20
          description: Number of entries per page
      responses:
        '200':
          description: Chunks response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Whether the request succeeded
                  message:
                    type: string
                    description: Response message
                  data:
                    $ref: '#/components/schemas/ChunksPage'
        '400':
          description: Unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ChunksPage:
      type: object
      properties:
        chunks:
          description: >-
            The entries of the requested page (FAQ knowledge bases may return
            them as `faqs` with `Question` / `Answer` fields instead)
          type: array
          items:
            $ref: '#/components/schemas/KnowledgeBaseChunk'
        pagination:
          description: Pagination details
          type: object
          properties:
            total:
              description: Total number of entries
              type: integer
            total_pages:
              description: Total number of pages
              type: integer
            page:
              description: Current page number
              type: integer
            limit:
              description: Page size
              type: integer
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: integer
          format: int32
        message:
          type: string
    KnowledgeBaseChunk:
      type: object
      properties:
        node_id:
          description: The unique id of the entry
          type: string
        node_type:
          description: The type of the entry, e.g. `Question` for FAQ entries
          type: string
        content:
          description: >-
            The entry content (question text for FAQ entries, chunk text for
            documents)
          type: string
        answer:
          description: The answer, for FAQ entries
          type: string
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      name: x-api-key
      in: header

````