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

# List Knowledge Bases

> Retrieves a paginated list of all knowledge bases accessible to the authenticated user. The results
can be paginated using the page_size and page_token parameters. This endpoint is useful for discovering
and managing multiple knowledge bases, with each entry including basic metadata about the knowledge base.



## OpenAPI

````yaml /api-reference/openapi.json get /v2/knowledge-bases/
openapi: 3.1.0
info:
  title: Verbex Platform API
  description: API for managing AI agents, calls, phone numbers, and more.
  version: 1.0.0
servers: []
security: []
paths:
  /v2/knowledge-bases/:
    get:
      tags:
        - Knowledge Bases v2
      summary: List Knowledge Bases
      description: >-
        Retrieves a paginated list of all knowledge bases accessible to the
        authenticated user. The results

        can be paginated using the page_size and page_token parameters. This
        endpoint is useful for discovering

        and managing multiple knowledge bases, with each entry including basic
        metadata about the knowledge base.
      operationId: list_knowledge_bases_v2_knowledge_bases__get
      parameters:
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 20
            title: Page Size
        - name: page_token
          in: query
          required: false
          schema:
            type: string
            title: Page Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/app__knowledge_bases_v2__schemas__KnowledgeBaseList
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    app__knowledge_bases_v2__schemas__KnowledgeBaseList:
      properties:
        data:
          items:
            $ref: >-
              #/components/schemas/app__knowledge_bases_v2__schemas__KnowledgeBaseResponse
          type: array
          title: Data
          description: List of knowledge bases for the current page.
        next_page_token:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Page Token
          description: >-
            Token for retrieving the next page of results. Null if no more pages
            exist.
      type: object
      required:
        - data
      title: KnowledgeBaseList
      description: Model for paginated list of Knowledge Bases.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    app__knowledge_bases_v2__schemas__KnowledgeBaseResponse:
      properties:
        _id:
          type: string
          title: Id
          description: Unique identifier of the knowledge base in MongoDB ObjectId format.
        name:
          type: string
          title: Name
          description: The name of the knowledge base.
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: Detailed description of the knowledge base's purpose and contents.
        document_language:
          type: string
          title: Document Language
          description: >-
            The language of the documents in the knowledge base. This will be
            used to filter documents by language when adding to the knowledge
            base.
          default: en
        document_count:
          type: integer
          title: Document Count
          description: Total number of documents currently stored in this knowledge base.
          default: 0
        created_at:
          type: string
          format: date-time
          title: Created At
          description: UTC timestamp indicating when this knowledge base was created.
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: UTC timestamp indicating when this knowledge base was last modified.
        status:
          anyOf:
            - type: string
              enum:
                - processing
                - completed
                - failed
            - type: 'null'
          title: Status
          description: >-
            Status of the knowledge base. 'processing' means documents are being
            processed. 'completed' means all documents are processed and ready.
            'failed' means there was an error in processing the documents.
      type: object
      required:
        - _id
        - name
        - created_at
        - updated_at
      title: KnowledgeBaseResponse
      description: Response model for a Knowledge Base.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````