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

> Returns all knowledge bases that the user has access to. Each item's `data` field is a JSON-encoded string: an array of question/answer objects for FAQ knowledge bases, or an object with `type: "document_embedding"` (containing `source_urls`, `total_chunks`, `source_file` or `source_count`) for document and website knowledge bases. `status` is `building` while embeddings are generated in the background, then `ready` or `failed`.



## OpenAPI

````yaml GET /knowledgeBase/list
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/list:
    get:
      description: >-
        Returns all knowledge bases that the user has access to. Each item's
        `data` field is a JSON-encoded string: an array of question/answer
        objects for FAQ knowledge bases, or an object with `type:
        "document_embedding"` (containing `source_urls`, `total_chunks`,
        `source_file` or `source_count`) for document and website knowledge
        bases. `status` is `building` while embeddings are generated in the
        background, then `ready` or `failed`.
      responses:
        '200':
          description: Knowledge base list response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Whether the request succeeded
                  message:
                    type: string
                    description: Response message
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/KnowledgeBase'
        '400':
          description: Unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    KnowledgeBase:
      type: object
      properties:
        hash_id:
          description: >-
            The unique id of the knowledge base, used as `id` in the other
            endpoints
          type: string
        title:
          description: The title of the knowledge base
          type: string
        language:
          description: Language code (e.g. `en`)
          type: string
        status:
          description: 'Build status: `building`, `ready` or `failed`'
          type: string
        data:
          description: >-
            JSON-encoded string. An array of question/answer objects for FAQ
            knowledge bases, or an object with `type: "document_embedding"`,
            `source_urls`, `total_chunks`, `source_file` / `source_count` for
            document and website knowledge bases
          type: string
        created_at:
          description: Creation date
          type: string
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: integer
          format: int32
        message:
          type: string
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      name: x-api-key
      in: header

````