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

# Ingest Connector Folder

> Ingest every supported file in a folder into a project (NotebookLM-style).

Lists the folder's supported documents via the connector, then fetches
and ingests each one into ``project_id`` as ``DOCUMENT_VERIFIED`` memory
records, recording one ``project_sources`` row per file. The batch is
resilient: a file that fails to fetch, extract, or write is marked
``failed`` and the run continues, so one bad file never aborts the
folder. Project ownership is verified up front (404 with nothing written
on a cross-tenant project_id) and the per-file daily ingest rate limit
is enforced exactly as the single-document path.

# IDOR AUDIT PASS - project ownership and every write are scoped to the
# authenticated user_id.



## OpenAPI

````yaml post /api/v1/connectors/{connector_type}/ingest_folder
openapi: 3.1.0
info:
  title: EDN Memory Engine
  version: 0.1.0
servers:
  - description: EDN evaluation endpoint
    url: https://api.tensorpro.ai
security:
  - EDNApiKey: []
paths:
  /api/v1/connectors/{connector_type}/ingest_folder:
    post:
      summary: Ingest Connector Folder
      description: >-
        Ingest every supported file in a folder into a project
        (NotebookLM-style).


        Lists the folder's supported documents via the connector, then fetches

        and ingests each one into ``project_id`` as ``DOCUMENT_VERIFIED`` memory

        records, recording one ``project_sources`` row per file. The batch is

        resilient: a file that fails to fetch, extract, or write is marked

        ``failed`` and the run continues, so one bad file never aborts the

        folder. Project ownership is verified up front (404 with nothing written

        on a cross-tenant project_id) and the per-file daily ingest rate limit

        is enforced exactly as the single-document path.


        # IDOR AUDIT PASS - project ownership and every write are scoped to the

        # authenticated user_id.
      operationId: >-
        ingest_connector_folder_api_v1_connectors__connector_type__ingest_folder_post
      parameters:
        - in: path
          name: connector_type
          required: true
          schema:
            title: Connector Type
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConnectorIngestFolderRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorIngestFolderResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    ConnectorIngestFolderRequest:
      properties:
        credentials:
          additionalProperties: true
          title: Credentials
          type: object
        domain:
          default: technical
          title: Domain
          type: string
        page_size:
          default: 100
          title: Page Size
          type: integer
        project_id:
          title: Project Id
          type: string
      required:
        - credentials
        - project_id
      title: ConnectorIngestFolderRequest
      type: object
    ConnectorIngestFolderResponse:
      properties:
        connector_type:
          title: Connector Type
          type: string
        files_failed:
          title: Files Failed
          type: integer
        files_ingested:
          title: Files Ingested
          type: integer
        project_id:
          title: Project Id
          type: string
        results:
          items:
            $ref: '#/components/schemas/FolderIngestFileResult'
          title: Results
          type: array
        total_chunks:
          title: Total Chunks
          type: integer
      required:
        - project_id
        - connector_type
        - files_ingested
        - files_failed
        - total_chunks
        - results
      title: ConnectorIngestFolderResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    FolderIngestFileResult:
      properties:
        chunk_count:
          title: Chunk Count
          type: integer
        external_id:
          title: External Id
          type: string
        status:
          title: Status
          type: string
        title:
          title: Title
          type: string
      required:
        - title
        - external_id
        - status
        - chunk_count
      title: FolderIngestFileResult
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    EDNApiKey:
      description: >-
        EDN API key presented as 'Bearer <key>' in the Authorization header.
        Create and manage keys from the Console.
      in: header
      name: Authorization
      type: apiKey

````