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

> Mail the plain first contact (with the Kontaktdatenblatt attached)
to Netzbetreiber the bridge has never spoken to - dry_run lists the
targets without sending.



## OpenAPI

````yaml /setup/internal-openapi.json post /v1/process/erstkontakt
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:
    post:
      summary: Post Erstkontakt
      description: |-
        Mail the plain first contact (with the Kontaktdatenblatt attached)
        to Netzbetreiber the bridge has never spoken to - dry_run lists the
        targets without sending.
      operationId: post_erstkontakt_v1_process_erstkontakt_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ErstkontaktRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErstkontaktResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    ErstkontaktRequest:
      properties:
        dry_run:
          type: boolean
          title: Dry Run
          default: false
        mp_ids:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Mp Ids
        limit:
          anyOf:
            - type: integer
              maximum: 500
              minimum: 1
            - type: 'null'
          title: Limit
      type: object
      title: ErstkontaktRequest
    ErstkontaktResponse:
      properties:
        dry_run:
          type: boolean
          title: Dry Run
        candidates:
          type: integer
          title: Candidates
        targets:
          items:
            $ref: '#/components/schemas/ErstkontaktTarget'
          type: array
          title: Targets
        sent:
          items:
            $ref: '#/components/schemas/ErstkontaktTarget'
          type: array
          title: Sent
        remaining:
          type: integer
          title: Remaining
        skipped:
          items:
            $ref: '#/components/schemas/ErstkontaktSkip'
          type: array
          title: Skipped
      type: object
      required:
        - dry_run
        - candidates
        - targets
        - sent
        - remaining
        - skipped
      title: ErstkontaktResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ErstkontaktTarget:
      properties:
        mp_id:
          type: string
          title: Mp Id
        name:
          type: string
          title: Name
        email:
          type: string
          title: Email
      type: object
      required:
        - mp_id
        - name
        - email
      title: ErstkontaktTarget
    ErstkontaktSkip:
      properties:
        mp_id:
          type: string
          title: Mp Id
        reason:
          type: string
          title: Reason
      type: object
      required:
        - mp_id
        - reason
      title: ErstkontaktSkip
    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

````