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

# A delivery day's forecast, schedule, allocation and reBAP

> Per Regelzone and for Germany, as quarter-hour means in MW to the
watt: the **forecast** the day ran on, the **schedule** last sent to the
TSOs (net as confirmed by them), and the **allocation** - the market's
sum time series for the balancing group; for Germany the **reBAP** in
EUR/MWh with its source. A value not there yet is null. Shared between
callers for 5 minutes.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/dashboard/days/{delivery_day}
openapi: 3.1.0
info:
  title: n:lead Scheduling Bridge — Data Delivery API
  version: 0.4.0
  description: >-
    API for delivering portfolio data to the n:lead scheduling bridge. Send a
    portfolio forecast per delivery day, or — if no forecast is available — the
    market-location master data, metered data and rolled-out profiles the bridge
    needs to build the consumption forecast for you. Everything downstream
    (positions, trader handoff, schedule submission to the TSOs) is operated by
    n:lead. A read-only status endpoint reports the BRP activation state per
    DSO/MGA, and the dashboard endpoints a day's or a month's forecast,
    schedule, allocation and reBAP for the customer's own screens.
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/dashboard/days/{delivery_day}:
    get:
      tags:
        - Dashboard
      summary: A delivery day's forecast, schedule, allocation and reBAP
      description: |-
        Per Regelzone and for Germany, as quarter-hour means in MW to the
        watt: the **forecast** the day ran on, the **schedule** last sent to the
        TSOs (net as confirmed by them), and the **allocation** - the market's
        sum time series for the balancing group; for Germany the **reBAP** in
        EUR/MWh with its source. A value not there yet is null. Shared between
        callers for 5 minutes.
      operationId: get_dashboard_day_v1_dashboard_days__delivery_day__get
      parameters:
        - name: delivery_day
          in: path
          required: true
          schema:
            type: string
            format: date
            description: the delivery day; 120 days back to the forecast horizon
            title: Delivery Day
          description: the delivery day; 120 days back to the forecast horizon
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DashboardDay'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    DashboardDay:
      properties:
        delivery_day:
          type: string
          format: date
          title: Delivery Day
        generated_at:
          type: string
          format: date-time
          title: Generated At
        interval_minutes:
          type: integer
          title: Interval Minutes
        interval_count:
          type: integer
          title: Interval Count
          description: 96; 92 or 100 on a clock change
        interval_starts_utc:
          items:
            type: string
            format: date-time
          type: array
          title: Interval Starts Utc
        forecast_source:
          anyOf:
            - type: string
              enum:
                - customer
                - generated
                - backup
            - type: 'null'
          title: Forecast Source
        rebap:
          $ref: '#/components/schemas/Rebap'
        germany:
          $ref: '#/components/schemas/Zone'
        control_areas:
          items:
            $ref: '#/components/schemas/Zone'
          type: array
          title: Control Areas
      type: object
      required:
        - delivery_day
        - generated_at
        - interval_minutes
        - interval_count
        - interval_starts_utc
        - forecast_source
        - rebap
        - germany
        - control_areas
      title: DashboardDay
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    Rebap:
      properties:
        eur_mwh:
          items:
            anyOf:
              - type: number
              - type: 'null'
          type: array
          title: Eur Mwh
        source:
          items:
            anyOf:
              - type: string
                enum:
                  - published_biko
                  - published_netztransparenz
                  - estimated_calculated
                  - estimated_tso_estimator
                  - estimated_forecast
              - type: 'null'
          type: array
          title: Source
      type: object
      required:
        - eur_mwh
        - source
      title: Rebap
    Zone:
      properties:
        control_area:
          anyOf:
            - type: string
            - type: 'null'
          title: Control Area
          description: >-
            the Regelzone (TenneT, 50Hertz, Amprion, TransnetBW); null for
            Germany
        forecast:
          $ref: '#/components/schemas/Forecast'
        schedule:
          $ref: '#/components/schemas/Schedule'
        allocation:
          $ref: '#/components/schemas/Allocation'
        totals_mwh:
          $ref: '#/components/schemas/Totals'
      type: object
      required:
        - control_area
        - forecast
        - schedule
        - allocation
        - totals_mwh
      title: Zone
    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
    Forecast:
      properties:
        consumption_mw:
          items:
            anyOf:
              - type: number
              - type: 'null'
          type: array
          title: Consumption Mw
        production_mw:
          items:
            anyOf:
              - type: number
              - type: 'null'
          type: array
          title: Production Mw
      type: object
      required:
        - consumption_mw
        - production_mw
      title: Forecast
    Schedule:
      properties:
        consumption_mw:
          items:
            anyOf:
              - type: number
              - type: 'null'
          type: array
          title: Consumption Mw
        production_mw:
          items:
            anyOf:
              - type: number
              - type: 'null'
          type: array
          title: Production Mw
        net_mw:
          items:
            anyOf:
              - type: number
              - type: 'null'
          type: array
          title: Net Mw
          description: consumption minus production
        status:
          type: string
          enum:
            - accepted
            - not_accepted
            - not_sent
          title: Status
          description: >-
            the last schedules sent to the TSOs for the day: accepted, refused,
            or none sent (a day ahead before the gate, or a day that ran on a
            backup)
        source:
          anyOf:
            - type: string
              enum:
                - sent
                - confirmed
                - confirmed_final
            - type: 'null'
          title: Source
          description: >-
            net_mw as sent, or as moved by the TSO's intermediate or final
            confirmation
      type: object
      required:
        - consumption_mw
        - production_mw
        - net_mw
        - status
        - source
      title: Schedule
    Allocation:
      properties:
        consumption_mw:
          items:
            anyOf:
              - type: number
              - type: 'null'
          type: array
          title: Consumption Mw
        production_mw:
          items:
            anyOf:
              - type: number
              - type: 'null'
          type: array
          title: Production Mw
        net_mw:
          items:
            anyOf:
              - type: number
              - type: 'null'
          type: array
          title: Net Mw
          description: consumption minus production
        status:
          type: string
          enum:
            - settlement
            - preliminary
            - partial
            - none
          title: Status
          description: >-
            the market's sum time series: Kategorie A plus B (settlement), A
            plus the daily C (preliminary), some quarter-hours, or none yet
        complete:
          type: boolean
          title: Complete
        quarter_hours:
          type: integer
          title: Quarter Hours
          description: quarter-hours with a value
      type: object
      required:
        - consumption_mw
        - production_mw
        - net_mw
        - status
        - complete
        - quarter_hours
      title: Allocation
    Totals:
      properties:
        forecast_consumption:
          anyOf:
            - type: number
            - type: 'null'
          title: Forecast Consumption
        forecast_production:
          anyOf:
            - type: number
            - type: 'null'
          title: Forecast Production
        schedule_consumption:
          anyOf:
            - type: number
            - type: 'null'
          title: Schedule Consumption
        schedule_production:
          anyOf:
            - type: number
            - type: 'null'
          title: Schedule Production
        schedule_net:
          anyOf:
            - type: number
            - type: 'null'
          title: Schedule Net
        allocation_consumption:
          anyOf:
            - type: number
            - type: 'null'
          title: Allocation Consumption
        allocation_production:
          anyOf:
            - type: number
            - type: 'null'
          title: Allocation Production
        allocation_net:
          anyOf:
            - type: number
            - type: 'null'
          title: Allocation Net
      type: object
      required:
        - forecast_consumption
        - forecast_production
        - schedule_consumption
        - schedule_production
        - schedule_net
        - allocation_consumption
        - allocation_production
        - allocation_net
      title: Totals
  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.