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

# Request the contract from Netzbetreiber

> One Vorgang per Netzbetreiber and variant. Without ``autopilot``
each request waits as a draft for its release (inbox or ``freigeben``);
a Netzbetreiber without a usable contact in its own PARTIN is
``NO_CONTACT`` and nothing is sent. ``dry_run`` lists the recipients.



## OpenAPI

````yaml /setup/internal-openapi.json post /v1/process/lrv/anfragen
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), the operator console endpoints,
    and the read-only operator-app endpoints under /v1/mobile. The process and
    console endpoints require the process API key, /v1/mobile a device key of
    the mobile scope; 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/lrv/anfragen:
    post:
      tags:
        - Lieferantenrahmenvertrag
      summary: Request the contract from Netzbetreiber
      description: |-
        One Vorgang per Netzbetreiber and variant. Without ``autopilot``
        each request waits as a draft for its release (inbox or ``freigeben``);
        a Netzbetreiber without a usable contact in its own PARTIN is
        ``NO_CONTACT`` and nothing is sent. ``dry_run`` lists the recipients.
      operationId: post_anfragen_v1_process_lrv_anfragen_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AnfrageRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Post Anfragen V1 Process Lrv Anfragen Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    AnfrageRequest:
      properties:
        partner:
          items:
            type: string
          type: array
          maxItems: 500
          minItems: 1
          title: Partner
          description: Netzbetreiber by MP-ID, Bilanzierungsgebiet EIC or name
        auspraegung:
          type: string
          enum:
            - gv
            - dv
          title: Auspraegung
          description: >-
            gv: Generelle Versorgung (Entnahme-MaLo), dv: Direktvermarktung
            (Einspeise-MaLo)
        autopilot:
          type: boolean
          title: Autopilot
          description: Send without a person's release
          default: false
        dry_run:
          type: boolean
          title: Dry Run
          description: List, change nothing
          default: false
        email:
          type: string
          maxLength: 200
          title: Email
          description: An address by hand, one partner
          default: ''
        bdew_fallback:
          type: boolean
          title: Bdew Fallback
          description: Use the BDEW list's address where the PARTIN names none
          default: false
      type: object
      required:
        - partner
        - auspraegung
      title: AnfrageRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.