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

# Get Antworten Abgleich

> Replies to a Quittungs-Nachfass or Korrektur mail, with every
acknowledgment reference they cite checked against our inbox: found or
not, which of our messages it answers, and which of the partner's
streams is still open. Read-only triage for the morning report.



## OpenAPI

````yaml /setup/internal-openapi.json get /v1/process/mail/antworten-abgleich
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/antworten-abgleich:
    get:
      summary: Get Antworten Abgleich
      description: |-
        Replies to a Quittungs-Nachfass or Korrektur mail, with every
        acknowledgment reference they cite checked against our inbox: found or
        not, which of our messages it answers, and which of the partner's
        streams is still open. Read-only triage for the morning report.
      operationId: get_antworten_abgleich_v1_process_mail_antworten_abgleich_get
      parameters:
        - name: lookback_days
          in: query
          required: false
          schema:
            type: integer
            maximum: 90
            minimum: 1
            default: 14
            title: Lookback Days
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AntwortenAbgleichResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    AntwortenAbgleichResponse:
      properties:
        lookback_days:
          type: integer
          title: Lookback Days
        antworten:
          items:
            $ref: '#/components/schemas/AntwortAbgleich'
          type: array
          title: Antworten
      type: object
      required:
        - lookback_days
        - antworten
      title: AntwortenAbgleichResponse
      description: |-
        Replies to Nachfass/Korrektur mails, each with the acknowledgment
        references it cites checked against our inbox.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AntwortAbgleich:
      properties:
        folder:
          type: string
          title: Folder
        date:
          type: string
          title: Date
        sender:
          type: string
          title: Sender
        subject:
          type: string
          title: Subject
        mp_id:
          type: string
          title: Mp Id
          default: ''
        name:
          type: string
          title: Name
          default: ''
        zitiert:
          items:
            $ref: '#/components/schemas/ZitierteQuittung'
          type: array
          title: Zitiert
        offen:
          items:
            type: string
          type: array
          title: Offen
          description: The partner's streams still open
        bewertung:
          type: string
          title: Bewertung
      type: object
      required:
        - folder
        - date
        - sender
        - subject
        - zitiert
        - bewertung
      title: AntwortAbgleich
    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
    ZitierteQuittung:
      properties:
        referenz:
          type: string
          title: Referenz
        gefunden:
          type: boolean
          title: Gefunden
        richtung:
          type: string
          title: Richtung
          default: ''
        edi_type:
          type: string
          title: Edi Type
          default: ''
        date:
          type: string
          title: Date
          default: ''
        bezug:
          type: string
          title: Bezug
          description: Our message it acknowledges
          default: ''
        bezug_typ:
          type: string
          title: Bezug Typ
          description: PARTIN or UTILMD
          default: ''
        verdict:
          type: string
          title: Verdict
          default: ''
      type: object
      required:
        - referenz
        - gefunden
      title: ZitierteQuittung
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    HTTPBearer:
      type: http
      description: OIDC access token (Auth0 M2M)
      scheme: bearer

````