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

# Create Knowledge Base Config Endpoint

> Create a new knowledge base configuration.



## OpenAPI

````yaml /api-reference/openapi/EvoAI-Knowledge-Service/knowledge-base-configs.yaml post /api/v1/knowledge-base-configs
openapi: 3.1.0
info:
  title: Evolution Foundation - Knowledge Service - Knowledge Base Configs
  description: Knowledge base and memory management
  version: 1.0.0
servers:
  - url: https://api.evoai.app
    description: Production server
  - url: http://localhost:3005
    description: Development server
    variables:
      port:
        default: '3005'
  - url: '{customUrl}'
    description: Custom server
    variables:
      customUrl:
        default: https://your-instance.com
        description: Enter your server URL
security: []
paths:
  /api/v1/knowledge-base-configs:
    post:
      summary: Create Knowledge Base Config Endpoint
      description: Create a new knowledge base configuration.
      operationId: create_knowledge_base_config_endpoint_api_v1_knowledge_base_configs_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KnowledgeBaseConfigCreate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/SuccessResponse_KnowledgeBaseConfigResponse_
        '400':
          description: Bad Request (invalid data)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: BAD_REQUEST
                  message: Invalid input data
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: /api/v1/knowledge-base-configs
                  method: POST
        '401':
          description: Unauthorized (invalid or missing token)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: UNAUTHORIZED
                  message: Invalid or missing authentication token
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: /api/v1/knowledge-base-configs
                  method: POST
        '403':
          description: Forbidden (insufficient permissions)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: FORBIDDEN
                  message: Insufficient permissions to perform this action
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: /api/v1/knowledge-base-configs
                  method: POST
        '404':
          description: Not Found (resource not found)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: NOT_FOUND
                  message: Resource not found
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: /api/v1/knowledge-base-configs
                  method: POST
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal Server Error (server error)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: INTERNAL_SERVER_ERROR
                  message: An unexpected error occurred
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: /api/v1/knowledge-base-configs
                  method: POST
components:
  schemas:
    KnowledgeBaseConfigCreate:
      properties:
        provider:
          $ref: '#/components/schemas/ProviderType'
          description: Provider type (pinecone or qdrant)
        name:
          type: string
          maxLength: 255
          minLength: 1
          title: Name
          description: Friendly name for the configuration
        is_active:
          type: boolean
          title: Is Active
          description: Whether the configuration is active
          default: true
        is_default:
          type: boolean
          title: Is Default
          description: Whether this is the default configuration for the account
          default: false
        config:
          additionalProperties: true
          type: object
          title: Config
          description: Provider-specific configuration
      type: object
      required:
        - provider
        - name
        - config
      title: KnowledgeBaseConfigCreate
      description: Schema for creating a knowledge base configuration
    SuccessResponse_KnowledgeBaseConfigResponse_:
      properties:
        success:
          type: boolean
          title: Success
          description: Success indicator
          default: true
        data:
          $ref: 1de28bb1-e293-4fea-90de-4a57b66da1a7
          description: Response payload
        meta:
          $ref: 600c95d2-0d7a-4054-b678-1b7eb44e999d
          description: Metadata
        message:
          anyOf:
            - type: string
            - type: 'null'
          title: Message
          description: Optional success message
      type: object
      required:
        - data
        - meta
      title: SuccessResponse[KnowledgeBaseConfigResponse]
    ErrorResponse:
      properties:
        success:
          type: boolean
          title: Success
          description: Success indicator
          default: false
        error: de7aff3a-baa1-434f-b4a8-98b611d37355
        meta:
          $ref: 4b6e66dc-476d-4342-a415-f132de0fb1ea
          description: Metadata
      type: object
      required:
        - error
        - meta
      title: ErrorResponse
      description: |-
        Standard error response schema matching error_response() return format.

        This schema matches the structure returned by error_response() function,
        which always uses ErrorInfo for the error field.
    HTTPValidationError:
      properties:
        detail:
          items: afb4ecf3-1404-4a62-b44b-ced1dc220f44
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ProviderType:
      type: string
      enum:
        - pinecone
        - qdrant
        - openai
        - redis
      title: ProviderType
      description: Supported knowledge base provider types

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.