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

# Post Erstkontakt Import

> Record Erstkontakt mails sent outside the bridge (the initial
mail-merge), so the tracking starts complete.



## OpenAPI

````yaml /setup/internal-openapi.json post /v1/process/erstkontakt/import
openapi: 3.1.0
info:
  title: n:lead Scheduling Bridge — Internal API
  version: 0.4.0
  description: >-
    Internal API of the n:lead scheduling bridge: the process endpoints that
    drive the day-ahead pipeline (aggregate, publish the open position, submit
    schedules, generate forecasts, orchestrate) and the operator console
    endpoints. Requires the process API key; not for customer use.
servers:
  - url: >-
      https://nleadbridge-app.lemonisland-7d6503d3.germanywestcentral.azurecontainerapps.io
    description: Deployed service
  - url: http://localhost:8000
    description: Local development
security: []
paths:
  /v1/process/erstkontakt/import:
    post:
      summary: Post Erstkontakt Import
      description: |-
        Record Erstkontakt mails sent outside the bridge (the initial
        mail-merge), so the tracking starts complete.
      operationId: post_erstkontakt_import_v1_process_erstkontakt_import_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ErstkontaktImportRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErstkontaktImportResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    ErstkontaktImportRequest:
      properties:
        entries:
          items:
            $ref: '#/components/schemas/ErstkontaktImportEntry'
          type: array
          title: Entries
      type: object
      required:
        - entries
      title: ErstkontaktImportRequest
    ErstkontaktImportResponse:
      properties:
        imported:
          type: integer
          title: Imported
        total:
          type: integer
          title: Total
      type: object
      required:
        - imported
        - total
      title: ErstkontaktImportResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ErstkontaktImportEntry:
      properties:
        mp_id:
          type: string
          title: Mp Id
        email:
          type: string
          title: Email
          default: ''
        sent_at:
          type: string
          title: Sent At
      type: object
      required:
        - mp_id
        - sent_at
      title: ErstkontaktImportEntry
    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
    HTTPBearer:
      type: http
      description: OIDC access token (Auth0 M2M)
      scheme: bearer

````