> ## 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 Document

> Fetch a single document via the connector and ingest it.

Mirrors :func:`edn.app.api.document.ingest_document`'s write path:
text is chunked and each chunk becomes a ``DOCUMENT_VERIFIED``
memory record. PDF documents are run through ``pypdf`` first (the
connector returns the raw bytes via metadata so this endpoint can
reuse the existing extractor).



## OpenAPI

````yaml post /api/v1/connectors/{connector_type}/ingest
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:
    post:
      summary: Ingest Connector Document
      description: |-
        Fetch a single document via the connector and ingest it.

        Mirrors :func:`edn.app.api.document.ingest_document`'s write path:
        text is chunked and each chunk becomes a ``DOCUMENT_VERIFIED``
        memory record. PDF documents are run through ``pypdf`` first (the
        connector returns the raw bytes via metadata so this endpoint can
        reuse the existing extractor).
      operationId: ingest_connector_document_api_v1_connectors__connector_type__ingest_post
      parameters:
        - in: path
          name: connector_type
          required: true
          schema:
            title: Connector Type
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConnectorIngestRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorIngestResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    ConnectorIngestRequest:
      properties:
        credentials:
          additionalProperties: true
          title: Credentials
          type: object
        domain:
          default: technical
          title: Domain
          type: string
        external_id:
          title: External Id
          type: string
        session_id:
          title: Session Id
          type: string
      required:
        - credentials
        - external_id
        - session_id
      title: ConnectorIngestRequest
      type: object
    ConnectorIngestResponse:
      properties:
        chunks_stored:
          title: Chunks Stored
          type: integer
        connector_type:
          title: Connector Type
          type: string
        title:
          title: Title
          type: string
        user_id:
          title: User Id
          type: string
      required:
        - chunks_stored
        - title
        - connector_type
        - user_id
      title: ConnectorIngestResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      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

````