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

# List All Knowledge Bases

> Retrieves a paginated list of all knowledge bases for the specified location.



## OpenAPI

````yaml /api-reference/knowledge-base/openapi.json get /knowledge-base
openapi: 3.0.0
info:
  title: Knowledge Base API
  description: >-
    Documentation for Knowledge Base API — create and manage knowledge bases,
    train web content via URL crawling, and manage FAQ entries.
  version: '1.0'
  contact: {}
servers:
  - url: https://services.leadconnectorhq.com
security: []
tags:
  - name: Knowledge Bases
    description: Create, list, update, and delete knowledge bases
  - name: Web Crawler
    description: Discover and train website URLs for knowledge base content
  - name: FAQs
    description: Create, list, update, and delete FAQ entries within a knowledge base
paths:
  /knowledge-base:
    get:
      tags:
        - Knowledge Bases
      summary: List All Knowledge Bases
      description: >-
        Retrieves a paginated list of all knowledge bases for the specified
        location.
      operationId: list-knowledge-bases
      parameters:
        - name: Version
          in: header
          description: API Version
          required: true
          schema:
            type: string
            enum:
              - '2021-07-28'
        - name: locationId
          in: query
          description: Location ID to list knowledge bases for
          required: true
          schema:
            type: string
            example: ve9EPM428h8vShlRW1KT
        - name: page
          in: query
          description: Page number for pagination
          required: false
          schema:
            type: integer
            default: 1
            minimum: 1
            example: 1
        - name: limit
          in: query
          description: Number of results per page
          required: false
          schema:
            type: integer
            default: 20
            minimum: 1
            maximum: 100
            example: 20
      responses:
        '200':
          description: Knowledge bases retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListKnowledgeBasesResponseDTO'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestDTO'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedDTO'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnprocessableDTO'
      security:
        - bearer: []
components:
  schemas:
    ListKnowledgeBasesResponseDTO:
      type: object
      properties:
        knowledgeBases:
          type: array
          description: List of knowledge bases
          items:
            $ref: '#/components/schemas/KnowledgeBaseDTO'
        total:
          type: integer
          description: Total number of knowledge bases
        page:
          type: integer
          description: Current page number
        limit:
          type: integer
          description: Number of results per page
    BadRequestDTO:
      type: object
      properties:
        statusCode:
          type: number
          example: 400
        message:
          type: string
          example: Bad Request
    UnauthorizedDTO:
      type: object
      properties:
        statusCode:
          type: number
          example: 401
        message:
          type: string
          example: 'Invalid token: access token is invalid'
        error:
          type: string
          example: Unauthorized
    UnprocessableDTO:
      type: object
      properties:
        statusCode:
          type: number
          example: 422
        message:
          type: array
          items:
            type: string
          example:
            - Unprocessable Entity
        error:
          type: string
          example: Unprocessable Entity
    KnowledgeBaseDTO:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the knowledge base
          example: kb_abc123def456
        locationId:
          type: string
          description: Location ID the knowledge base belongs to
          example: ve9EPM428h8vShlRW1KT
        name:
          type: string
          description: Name of the knowledge base
          example: Product Documentation
        urlCount:
          type: integer
          description: Number of trained URLs
          example: 15
        faqCount:
          type: integer
          description: Number of FAQ entries
          example: 42
        status:
          type: string
          description: Current status of the knowledge base
          enum:
            - active
            - training
            - inactive
          example: active
        createdAt:
          type: string
          format: date-time
          description: Creation timestamp
        updatedAt:
          type: string
          format: date-time
          description: Last update timestamp
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Use the Access Token generated with user type as Sub-Account (OR)
        Private Integration Token of Sub-Account.
      type: http

````