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

# Consumption totalled by period, with what it was expected to be beside it.



## OpenAPI

````yaml /api-reference/openapi.json get /consumption_snapshots
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: Directory sync
  - name: Document control
  - name: Document folders
  - name: Document tree
  - name: Documents
  - name: Energy
  - name: Extracts
  - name: Features
  - name: Feeds
  - name: File exchange
  - name: Filing exceptions
  - name: Finance
  - name: Inbound mail
  - 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: 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: Tools on a job, and who has them out
  - name: Tray
  - name: Vendor spend forecast
  - name: Vendors and contracts
  - name: Visitors
  - 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_snapshots:
    get:
      tags:
        - Energy
      summary: >-
        Consumption totalled by period, with what it was expected to be beside
        it.
      parameters:
        - $ref: '#/components/parameters/rowFilter.consumption_snapshots.id'
        - $ref: >-
            #/components/parameters/rowFilter.consumption_snapshots.supply_point_id
        - $ref: >-
            #/components/parameters/rowFilter.consumption_snapshots.supply_point_code
        - $ref: >-
            #/components/parameters/rowFilter.consumption_snapshots.supply_point_name
        - $ref: '#/components/parameters/rowFilter.consumption_snapshots.site_id'
        - $ref: '#/components/parameters/rowFilter.consumption_snapshots.asset_id'
        - $ref: '#/components/parameters/rowFilter.consumption_snapshots.commodity_id'
        - $ref: >-
            #/components/parameters/rowFilter.consumption_snapshots.commodity_name
        - $ref: '#/components/parameters/rowFilter.consumption_snapshots.unit_code'
        - $ref: '#/components/parameters/rowFilter.consumption_snapshots.granularity'
        - $ref: '#/components/parameters/rowFilter.consumption_snapshots.period_start'
        - $ref: '#/components/parameters/rowFilter.consumption_snapshots.period_end'
        - $ref: >-
            #/components/parameters/rowFilter.consumption_snapshots.total_consumption
        - $ref: >-
            #/components/parameters/rowFilter.consumption_snapshots.reading_count
        - $ref: >-
            #/components/parameters/rowFilter.consumption_snapshots.estimated_count
        - $ref: '#/components/parameters/rowFilter.consumption_snapshots.total_cost'
        - $ref: >-
            #/components/parameters/rowFilter.consumption_snapshots.total_cost_currency_id
        - $ref: '#/components/parameters/rowFilter.consumption_snapshots.co2e_kg'
        - $ref: >-
            #/components/parameters/rowFilter.consumption_snapshots.heating_degree_days
        - $ref: >-
            #/components/parameters/rowFilter.consumption_snapshots.cooling_degree_days
        - $ref: >-
            #/components/parameters/rowFilter.consumption_snapshots.degree_day_days
        - $ref: '#/components/parameters/rowFilter.consumption_snapshots.computed_at'
        - $ref: >-
            #/components/parameters/rowFilter.consumption_snapshots.expected_consumption
        - $ref: >-
            #/components/parameters/rowFilter.consumption_snapshots.peer_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_snapshots'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/consumption_snapshots'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/consumption_snapshots'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/consumption_snapshots'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.consumption_snapshots.id:
      in: query
      name: id
      required: false
      schema:
        type: string
    rowFilter.consumption_snapshots.supply_point_id:
      in: query
      name: supply_point_id
      required: false
      schema:
        type: string
    rowFilter.consumption_snapshots.supply_point_code:
      in: query
      name: supply_point_code
      required: false
      schema:
        type: string
    rowFilter.consumption_snapshots.supply_point_name:
      in: query
      name: supply_point_name
      required: false
      schema:
        type: string
    rowFilter.consumption_snapshots.site_id:
      in: query
      name: site_id
      required: false
      schema:
        type: string
    rowFilter.consumption_snapshots.asset_id:
      in: query
      name: asset_id
      required: false
      schema:
        type: string
    rowFilter.consumption_snapshots.commodity_id:
      in: query
      name: commodity_id
      required: false
      schema:
        type: string
    rowFilter.consumption_snapshots.commodity_name:
      in: query
      name: commodity_name
      required: false
      schema:
        type: string
    rowFilter.consumption_snapshots.unit_code:
      in: query
      name: unit_code
      required: false
      schema:
        type: string
    rowFilter.consumption_snapshots.granularity:
      in: query
      name: granularity
      required: false
      schema:
        type: string
    rowFilter.consumption_snapshots.period_start:
      in: query
      name: period_start
      required: false
      schema:
        type: string
    rowFilter.consumption_snapshots.period_end:
      in: query
      name: period_end
      required: false
      schema:
        type: string
    rowFilter.consumption_snapshots.total_consumption:
      in: query
      name: total_consumption
      required: false
      schema:
        type: string
    rowFilter.consumption_snapshots.reading_count:
      in: query
      name: reading_count
      required: false
      schema:
        type: string
    rowFilter.consumption_snapshots.estimated_count:
      in: query
      name: estimated_count
      required: false
      schema:
        type: string
    rowFilter.consumption_snapshots.total_cost:
      in: query
      name: total_cost
      required: false
      schema:
        type: string
    rowFilter.consumption_snapshots.total_cost_currency_id:
      in: query
      name: total_cost_currency_id
      required: false
      schema:
        type: string
    rowFilter.consumption_snapshots.co2e_kg:
      in: query
      name: co2e_kg
      required: false
      schema:
        type: string
    rowFilter.consumption_snapshots.heating_degree_days:
      in: query
      name: heating_degree_days
      required: false
      schema:
        type: string
    rowFilter.consumption_snapshots.cooling_degree_days:
      in: query
      name: cooling_degree_days
      required: false
      schema:
        type: string
    rowFilter.consumption_snapshots.degree_day_days:
      in: query
      name: degree_day_days
      required: false
      schema:
        type: string
    rowFilter.consumption_snapshots.computed_at:
      in: query
      name: computed_at
      required: false
      schema:
        type: string
    rowFilter.consumption_snapshots.expected_consumption:
      in: query
      name: expected_consumption
      required: false
      schema:
        type: string
    rowFilter.consumption_snapshots.peer_consumption:
      in: query
      name: peer_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_snapshots:
      description: >-
        Consumption totalled by period, with what it was expected to be beside
        it.
      properties:
        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
        co2e_kg:
          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
        computed_at:
          format: timestamp with time zone
          type: string
        cooling_degree_days:
          format: numeric
          type: number
        degree_day_days:
          format: integer
          type: integer
        estimated_count:
          format: integer
          type: integer
        expected_consumption:
          format: numeric
          type: number
        granularity:
          format: character varying
          maxLength: 10
          type: string
        heating_degree_days:
          format: numeric
          type: number
        id:
          description: |-
            Note:
            This is a Primary Key.<pk/>
          format: uuid
          type: string
        peer_consumption:
          format: numeric
          type: number
        period_end:
          format: date
          type: string
        period_start:
          format: date
          type: string
        reading_count:
          format: integer
          type: integer
        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
        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
        total_cost:
          format: numeric
          type: number
        total_cost_currency_id:
          description: >-
            Note:

            This is a Foreign Key to `asset_cost_to_keep.currency_id`.<fk
            table='asset_cost_to_keep' column='currency_id'/>
          format: uuid
          type: string
        unit_code:
          format: character varying
          maxLength: 30
          type: string
      type: object

````