> ## Documentation Index
> Fetch the complete documentation index at: https://docs.assetinfinity.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# A year of each supply point's consumption on one line: a column per month, the year's total and the whole of the year before, with where the supply point is a level at a time. A month is every reading taken in it on the site's own clock. A supply point has a line for each year it was read in and the year after, so one that stopped being read still appears, blank.



## OpenAPI

````yaml /api-reference/openapi.json get /consumption_years
openapi: 3.0.0
info:
  description: ''
  title: >-
    The only schema PostgREST exposes. Reads are security_invoker views; writes
    are SECURITY DEFINER functions. Rebuilt wholesale on every deploy — it holds
    no data.
  version: 12.2.3
servers:
  - url: https://app.assetinfinity.ai/api
security: []
tags:
  - name: Signing in
  - name: Profile
  - name: Assets
  - name: Asset lifecycle
  - name: Work lifecycle
  - name: Maintenance
  - name: Inventory
  - name: Inventory detail
  - name: Procurement
  - name: Contracts
  - name: Workforce
  - name: Capacity
  - name: Dispatch
  - name: Tools
  - name: Inspections
  - name: Verification
  - name: Reliability
  - name: Parts demand
  - name: Sensors and meters
  - name: Map
  - name: Floor plans
  - name: Labels
  - name: Lost and found
  - name: Root cause analysis
  - name: Reports
  - name: Audit center
  - name: Activity
  - name: Notifications
  - name: Channels
  - name: Search
  - name: Copilot
  - name: Import
  - name: Files
  - name: Sync
  - name: Support
  - name: Admin
  - name: Access
  - name: Lookups
  - name: Read models
  - name: Branding
  - name: Custom fields
  - name: Form studio
  - name: Workflows
  - name: Workflow studio
  - name: Rules
  - name: Statuses and transitions
  - name: Currencies and locales
  - name: Work configuration
  - name: Asset configuration
  - name: Inventory configuration
  - name: Tool configuration
  - name: Workforce configuration
  - name: Vendor and contract configuration
  - name: Document configuration
  - name: Inspection configuration
  - name: Sites, locations and the organisation
  - name: Platform
  - name: Amendments
  - name: Asset clone
  - name: Asset components
  - name: Asset register
  - name: Asset transfer
  - name: Audit feed
  - name: Billing
  - name: Bookings
  - name: Budgets
  - name: Bulk jobs
  - name: Calibration history
  - name: Capex plans
  - name: Conversations
  - name: Costing
  - name: Currency
  - name: Dashboards
  - name: Data exports
  - name: Directory sync
  - name: Document control
  - name: Document folders
  - name: Document tree
  - name: Documents
  - name: Energy
  - name: Extracts
  - name: Features
  - name: Feeds
  - name: Ffe plans
  - name: File exchange
  - name: Filing exceptions
  - name: Finance
  - name: Inbound mail
  - name: Itam
  - name: Itam software
  - name: Itam topology
  - name: Keys
  - name: Knowledge
  - name: Licence
  - name: List views
  - name: Locations
  - name: Mapping
  - name: Mcp
  - name: Mcp oauth
  - name: Mfa
  - name: Numbering
  - name: Permits
  - name: Readers
  - name: Reference
  - name: Reference columns
  - name: Reference entry
  - name: Release
  - name: Rtls
  - name: Scim
  - name: Security streams
  - name: Self verification
  - name: Setup
  - name: Shutdown
  - name: Sso
  - name: Telegram
  - name: Tenant switch
  - name: The caller's own work
  - name: The checklist library
  - name: Today
  - name: Tools on a job, and who has them out
  - name: Trackers
  - name: Tray
  - name: Vendor spend forecast
  - name: Vendors and contracts
  - name: Visitors
  - name: Webhooks
  - name: Welcome
  - name: Work order execution
  - name: Work sequencing
  - name: Workforce detail
externalDocs:
  description: PostgREST Documentation
  url: https://postgrest.org/en/v12/references/api.html
paths:
  /consumption_years:
    get:
      tags:
        - Energy
      summary: >-
        A year of each supply point's consumption on one line: a column per
        month, the year's total and the whole of the year before, with where the
        supply point is a level at a time. A month is every reading taken in it
        on the site's own clock. A supply point has a line for each year it was
        read in and the year after, so one that stopped being read still
        appears, blank.
      parameters:
        - $ref: '#/components/parameters/rowFilter.consumption_years.supply_point_id'
        - $ref: >-
            #/components/parameters/rowFilter.consumption_years.supply_point_code
        - $ref: >-
            #/components/parameters/rowFilter.consumption_years.supply_point_name
        - $ref: '#/components/parameters/rowFilter.consumption_years.commodity_id'
        - $ref: '#/components/parameters/rowFilter.consumption_years.commodity_name'
        - $ref: '#/components/parameters/rowFilter.consumption_years.unit_code'
        - $ref: '#/components/parameters/rowFilter.consumption_years.site_id'
        - $ref: '#/components/parameters/rowFilter.consumption_years.site_name'
        - $ref: '#/components/parameters/rowFilter.consumption_years.location_level_1'
        - $ref: '#/components/parameters/rowFilter.consumption_years.location_level_2'
        - $ref: '#/components/parameters/rowFilter.consumption_years.location_path'
        - $ref: '#/components/parameters/rowFilter.consumption_years.asset_id'
        - $ref: '#/components/parameters/rowFilter.consumption_years.asset_number'
        - $ref: '#/components/parameters/rowFilter.consumption_years.year'
        - $ref: '#/components/parameters/rowFilter.consumption_years.jan_consumption'
        - $ref: '#/components/parameters/rowFilter.consumption_years.feb_consumption'
        - $ref: '#/components/parameters/rowFilter.consumption_years.mar_consumption'
        - $ref: '#/components/parameters/rowFilter.consumption_years.apr_consumption'
        - $ref: '#/components/parameters/rowFilter.consumption_years.may_consumption'
        - $ref: '#/components/parameters/rowFilter.consumption_years.jun_consumption'
        - $ref: '#/components/parameters/rowFilter.consumption_years.jul_consumption'
        - $ref: '#/components/parameters/rowFilter.consumption_years.aug_consumption'
        - $ref: '#/components/parameters/rowFilter.consumption_years.sep_consumption'
        - $ref: '#/components/parameters/rowFilter.consumption_years.oct_consumption'
        - $ref: '#/components/parameters/rowFilter.consumption_years.nov_consumption'
        - $ref: '#/components/parameters/rowFilter.consumption_years.dec_consumption'
        - $ref: >-
            #/components/parameters/rowFilter.consumption_years.total_consumption
        - $ref: >-
            #/components/parameters/rowFilter.consumption_years.previous_year_consumption
        - $ref: '#/components/parameters/select'
        - $ref: '#/components/parameters/order'
        - $ref: '#/components/parameters/range'
        - $ref: '#/components/parameters/rangeUnit'
        - $ref: '#/components/parameters/offset'
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/preferCount'
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/consumption_years'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/consumption_years'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/consumption_years'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/consumption_years'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.consumption_years.supply_point_id:
      in: query
      name: supply_point_id
      required: false
      schema:
        type: string
    rowFilter.consumption_years.supply_point_code:
      in: query
      name: supply_point_code
      required: false
      schema:
        type: string
    rowFilter.consumption_years.supply_point_name:
      in: query
      name: supply_point_name
      required: false
      schema:
        type: string
    rowFilter.consumption_years.commodity_id:
      in: query
      name: commodity_id
      required: false
      schema:
        type: string
    rowFilter.consumption_years.commodity_name:
      in: query
      name: commodity_name
      required: false
      schema:
        type: string
    rowFilter.consumption_years.unit_code:
      in: query
      name: unit_code
      required: false
      schema:
        type: string
    rowFilter.consumption_years.site_id:
      in: query
      name: site_id
      required: false
      schema:
        type: string
    rowFilter.consumption_years.site_name:
      in: query
      name: site_name
      required: false
      schema:
        type: string
    rowFilter.consumption_years.location_level_1:
      in: query
      name: location_level_1
      required: false
      schema:
        type: string
    rowFilter.consumption_years.location_level_2:
      in: query
      name: location_level_2
      required: false
      schema:
        type: string
    rowFilter.consumption_years.location_path:
      in: query
      name: location_path
      required: false
      schema:
        type: string
    rowFilter.consumption_years.asset_id:
      in: query
      name: asset_id
      required: false
      schema:
        type: string
    rowFilter.consumption_years.asset_number:
      in: query
      name: asset_number
      required: false
      schema:
        type: string
    rowFilter.consumption_years.year:
      in: query
      name: year
      required: false
      schema:
        type: string
    rowFilter.consumption_years.jan_consumption:
      in: query
      name: jan_consumption
      required: false
      schema:
        type: string
    rowFilter.consumption_years.feb_consumption:
      in: query
      name: feb_consumption
      required: false
      schema:
        type: string
    rowFilter.consumption_years.mar_consumption:
      in: query
      name: mar_consumption
      required: false
      schema:
        type: string
    rowFilter.consumption_years.apr_consumption:
      in: query
      name: apr_consumption
      required: false
      schema:
        type: string
    rowFilter.consumption_years.may_consumption:
      in: query
      name: may_consumption
      required: false
      schema:
        type: string
    rowFilter.consumption_years.jun_consumption:
      in: query
      name: jun_consumption
      required: false
      schema:
        type: string
    rowFilter.consumption_years.jul_consumption:
      in: query
      name: jul_consumption
      required: false
      schema:
        type: string
    rowFilter.consumption_years.aug_consumption:
      in: query
      name: aug_consumption
      required: false
      schema:
        type: string
    rowFilter.consumption_years.sep_consumption:
      in: query
      name: sep_consumption
      required: false
      schema:
        type: string
    rowFilter.consumption_years.oct_consumption:
      in: query
      name: oct_consumption
      required: false
      schema:
        type: string
    rowFilter.consumption_years.nov_consumption:
      in: query
      name: nov_consumption
      required: false
      schema:
        type: string
    rowFilter.consumption_years.dec_consumption:
      in: query
      name: dec_consumption
      required: false
      schema:
        type: string
    rowFilter.consumption_years.total_consumption:
      in: query
      name: total_consumption
      required: false
      schema:
        type: string
    rowFilter.consumption_years.previous_year_consumption:
      in: query
      name: previous_year_consumption
      required: false
      schema:
        type: string
    select:
      description: Filtering Columns
      in: query
      name: select
      required: false
      schema:
        type: string
    order:
      description: Ordering
      in: query
      name: order
      required: false
      schema:
        type: string
    range:
      description: Limiting and Pagination
      in: header
      name: Range
      required: false
      schema:
        type: string
    rangeUnit:
      description: Limiting and Pagination
      in: header
      name: Range-Unit
      required: false
      schema:
        default: items
        type: string
    offset:
      description: Limiting and Pagination
      in: query
      name: offset
      required: false
      schema:
        type: string
    limit:
      description: Limiting and Pagination
      in: query
      name: limit
      required: false
      schema:
        type: string
    preferCount:
      description: Preference
      in: header
      name: Prefer
      required: false
      schema:
        enum:
          - count=none
        type: string
  schemas:
    consumption_years:
      description: >-
        A year of each supply point's consumption on one line: a column per
        month, the year's total and the whole of the year before, with where the
        supply point is a level at a time. A month is every reading taken in it
        on the site's own clock. A supply point has a line for each year it was
        read in and the year after, so one that stopped being read still
        appears, blank.
      properties:
        apr_consumption:
          format: numeric
          type: number
        asset_id:
          description: >-
            Note:

            This is a Foreign Key to `asset_contracts.asset_id`.<fk
            table='asset_contracts' column='asset_id'/>
          format: uuid
          type: string
        asset_number:
          format: character varying
          maxLength: 80
          type: string
        aug_consumption:
          format: numeric
          type: number
        commodity_id:
          description: >-
            Note:

            This is a Foreign Key to `commodities.id`.<fk table='commodities'
            column='id'/>
          format: uuid
          type: string
        commodity_name:
          format: character varying
          maxLength: 120
          type: string
        dec_consumption:
          format: numeric
          type: number
        feb_consumption:
          format: numeric
          type: number
        jan_consumption:
          format: numeric
          type: number
        jul_consumption:
          format: numeric
          type: number
        jun_consumption:
          format: numeric
          type: number
        location_level_1:
          format: text
          type: string
        location_level_2:
          format: text
          type: string
        location_path:
          format: text
          type: string
        mar_consumption:
          format: numeric
          type: number
        may_consumption:
          format: numeric
          type: number
        nov_consumption:
          format: numeric
          type: number
        oct_consumption:
          format: numeric
          type: number
        previous_year_consumption:
          format: numeric
          type: number
        sep_consumption:
          format: numeric
          type: number
        site_id:
          description: >-
            Note:

            This is a Foreign Key to `entry_currencies.for_site_id`.<fk
            table='entry_currencies' column='for_site_id'/>
          format: uuid
          type: string
        site_name:
          format: character varying
          maxLength: 200
          type: string
        supply_point_code:
          format: character varying
          maxLength: 60
          type: string
        supply_point_id:
          description: >-
            Note:

            This is a Foreign Key to `supply_points.id`.<fk
            table='supply_points' column='id'/>
          format: uuid
          type: string
        supply_point_name:
          format: character varying
          maxLength: 150
          type: string
        total_consumption:
          format: numeric
          type: number
        unit_code:
          format: character varying
          maxLength: 30
          type: string
        year:
          format: text
          type: string
      type: object

````

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