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

> Answer the Wiedervorlagen a partner opened with a question that the
book already answers: where our message is, or whether the
acknowledgment they cite reached us. Every figure in the mail comes
from the exchange itself - references, timestamps, verdicts - so
nothing is asserted that cannot be shown. One reply per Wiedervorlage,
ever; ``dry_run`` lists what would go out.



## OpenAPI

````yaml /setup/internal-openapi.json post /v1/process/mail/auskunft
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://{host}
    description: Deployed service
    variables:
      host:
        default: api.energy.nlead.ch
        description: >-
          The service hostname - n:lead provides it (see the Base URL on the API
          introduction page)
  - url: http://localhost:8000
    description: Local development
security: []
paths:
  /v1/process/mail/auskunft:
    post:
      summary: Post Mail Auskunft
      description: |-
        Answer the Wiedervorlagen a partner opened with a question that the
        book already answers: where our message is, or whether the
        acknowledgment they cite reached us. Every figure in the mail comes
        from the exchange itself - references, timestamps, verdicts - so
        nothing is asserted that cannot be shown. One reply per Wiedervorlage,
        ever; ``dry_run`` lists what would go out.
      operationId: post_mail_auskunft_v1_process_mail_auskunft_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuskunftRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuskunftResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    AuskunftRequest:
      properties:
        dry_run:
          type: boolean
          title: Dry Run
          default: false
        limit:
          type: integer
          minimum: 0
          title: Limit
          default: 0
        lookback_days:
          type: integer
          maximum: 730
          minimum: 1
          title: Lookback Days
          default: 90
        mp_ids:
          anyOf:
            - items:
                type: string
              type: array
              maxItems: 500
            - type: 'null'
          title: Mp Ids
          description: >-
            Restrict the run to these partners; omitted = every answerable
            Wiedervorlage
      type: object
      title: AuskunftRequest
      description: |-
        Answer the Wiedervorlagen whose answer is pure book-keeping.

        A partner asks where our message is, or cites an acknowledgment we
        never received: both are answered from the exchange itself. Nothing is
        composed that the book does not contain, and no business question is
        asked. Partners with a standing rejection are skipped - a CONTRL 23 or
        APERAK Z29 needs a master-data request and a human.
    AuskunftResponse:
      properties:
        dry_run:
          type: boolean
          title: Dry Run
        limit:
          type: integer
          title: Limit
        targets:
          items:
            $ref: '#/components/schemas/AuskunftTarget'
          type: array
          title: Targets
        sent:
          items:
            $ref: '#/components/schemas/AuskunftTarget'
          type: array
          title: Sent
        skipped:
          items:
            $ref: '#/components/schemas/AuskunftTarget'
          type: array
          title: Skipped
      type: object
      required:
        - dry_run
        - limit
        - targets
        - sent
        - skipped
      title: AuskunftResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AuskunftTarget:
      properties:
        key:
          type: string
          title: Key
        mp_id:
          type: string
          title: Mp Id
        name:
          type: string
          title: Name
          default: ''
        email:
          type: string
          title: Email
          default: ''
        beleg:
          type: string
          title: Beleg
          default: ''
        zitiert:
          type: string
          title: Zitiert
          default: ''
        zitat_gefunden:
          type: boolean
          title: Zitat Gefunden
          default: false
        offen:
          items:
            type: string
          type: array
          title: Offen
        skip:
          type: string
          title: Skip
          default: ''
      type: object
      required:
        - key
        - mp_id
      title: AuskunftTarget
    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

````