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

# Create Source

> Attach a connector source (Notion connection, URL, S3, …) to a KB.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/knowledge-base/knowledge-bases/{kb_id}/sources
openapi: 3.1.0
info:
  title: Feather API
  description: >-
    Unified customer experience platform API. Manages identity, conversations,
    memory, agents, procedures, policies, model routing, knowledge bases,
    integrations, and runtime execution.
  version: 1.21.0
servers:
  - url: https://api-sandbox.featherhq.com
    description: Sandbox
  - url: http://localhost:8000
    description: Local dev
security: []
paths:
  /v1/knowledge-base/knowledge-bases/{kb_id}/sources:
    post:
      tags:
        - knowledge-base-connectors
      summary: Create Source
      description: Attach a connector source (Notion connection, URL, S3, …) to a KB.
      operationId: create_source_v1_knowledge_base_knowledge_bases__kb_id__sources_post
      parameters:
        - name: kb_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Kb Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSourceRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SourceResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    CreateSourceRequest:
      properties:
        provider:
          type: string
          title: Provider
          default: notion
        integration_connection_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Integration Connection Id
        config:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Config
        credentials:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          title: Credentials
      type: object
      title: CreateSourceRequest
    SourceResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        knowledge_base_id:
          type: string
          format: uuid
          title: Knowledge Base Id
        provider:
          type: string
          title: Provider
          default: notion
        integration_connection_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Integration Connection Id
        config:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Config
        status:
          type: string
          title: Status
        last_sync_job_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Last Sync Job Id
        integration_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Integration Key
        connection_nickname:
          anyOf:
            - type: string
            - type: 'null'
          title: Connection Nickname
        connection_metadata:
          additionalProperties: true
          type: object
          title: Connection Metadata
        auto_sync_enabled:
          type: boolean
          title: Auto Sync Enabled
          default: false
        sync_interval_seconds:
          anyOf:
            - type: integer
            - type: 'null'
          title: Sync Interval Seconds
        next_sync_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Next Sync At
        last_auto_sync_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Auto Sync At
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - knowledge_base_id
        - status
        - created_at
        - updated_at
      title: SourceResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````