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

# Sensors with their latest reading, open alerts, and whether they feed a meter.



## OpenAPI

````yaml /api-reference/openapi.json get /sensors
openapi: 3.0.0
info:
  description: ''
  title: >-
    The only schema PostgREST exposes (ADR-014). 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: Routing
  - 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: Self verification
  - name: Setup
  - name: Tools on a job, and who has them out
  - name: Vendors and contracts
  - name: Work order execution
  - name: Workforce detail
externalDocs:
  description: PostgREST Documentation
  url: https://postgrest.org/en/v12/references/api.html
paths:
  /sensors:
    get:
      tags:
        - Sensors and meters
      summary: >-
        Sensors with their latest reading, open alerts, and whether they feed a
        meter.
      parameters:
        - $ref: '#/components/parameters/rowFilter.sensors.id'
        - $ref: '#/components/parameters/rowFilter.sensors.code'
        - $ref: '#/components/parameters/rowFilter.sensors.name'
        - $ref: '#/components/parameters/rowFilter.sensors.measurement'
        - $ref: '#/components/parameters/rowFilter.sensors.asset_id'
        - $ref: '#/components/parameters/rowFilter.sensors.asset_number'
        - $ref: '#/components/parameters/rowFilter.sensors.asset_name'
        - $ref: '#/components/parameters/rowFilter.sensors.device_id'
        - $ref: '#/components/parameters/rowFilter.sensors.device_code'
        - $ref: '#/components/parameters/rowFilter.sensors.device_status'
        - $ref: '#/components/parameters/rowFilter.sensors.meter_id'
        - $ref: '#/components/parameters/rowFilter.sensors.meter_code'
        - $ref: '#/components/parameters/rowFilter.sensors.meter_sync_seconds'
        - $ref: '#/components/parameters/rowFilter.sensors.sample_interval_seconds'
        - $ref: '#/components/parameters/rowFilter.sensors.last_reading_at'
        - $ref: '#/components/parameters/rowFilter.sensors.last_meter_sync_at'
        - $ref: '#/components/parameters/rowFilter.sensors.is_active'
        - $ref: '#/components/parameters/rowFilter.sensors.feeds_maintenance'
        - $ref: '#/components/parameters/rowFilter.sensors.thresholds'
        - $ref: '#/components/parameters/rowFilter.sensors.open_alerts'
        - $ref: '#/components/parameters/rowFilter.sensors.latest_value'
        - $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/sensors'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/sensors'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/sensors'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/sensors'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.sensors.id:
      in: query
      name: id
      required: false
      schema:
        type: string
    rowFilter.sensors.code:
      in: query
      name: code
      required: false
      schema:
        type: string
    rowFilter.sensors.name:
      in: query
      name: name
      required: false
      schema:
        type: string
    rowFilter.sensors.measurement:
      in: query
      name: measurement
      required: false
      schema:
        type: string
    rowFilter.sensors.asset_id:
      in: query
      name: asset_id
      required: false
      schema:
        type: string
    rowFilter.sensors.asset_number:
      in: query
      name: asset_number
      required: false
      schema:
        type: string
    rowFilter.sensors.asset_name:
      in: query
      name: asset_name
      required: false
      schema:
        type: string
    rowFilter.sensors.device_id:
      in: query
      name: device_id
      required: false
      schema:
        type: string
    rowFilter.sensors.device_code:
      in: query
      name: device_code
      required: false
      schema:
        type: string
    rowFilter.sensors.device_status:
      in: query
      name: device_status
      required: false
      schema:
        type: string
    rowFilter.sensors.meter_id:
      in: query
      name: meter_id
      required: false
      schema:
        type: string
    rowFilter.sensors.meter_code:
      in: query
      name: meter_code
      required: false
      schema:
        type: string
    rowFilter.sensors.meter_sync_seconds:
      in: query
      name: meter_sync_seconds
      required: false
      schema:
        type: string
    rowFilter.sensors.sample_interval_seconds:
      in: query
      name: sample_interval_seconds
      required: false
      schema:
        type: string
    rowFilter.sensors.last_reading_at:
      in: query
      name: last_reading_at
      required: false
      schema:
        type: string
    rowFilter.sensors.last_meter_sync_at:
      in: query
      name: last_meter_sync_at
      required: false
      schema:
        type: string
    rowFilter.sensors.is_active:
      in: query
      name: is_active
      required: false
      schema:
        type: string
    rowFilter.sensors.feeds_maintenance:
      in: query
      name: feeds_maintenance
      required: false
      schema:
        type: string
    rowFilter.sensors.thresholds:
      in: query
      name: thresholds
      required: false
      schema:
        type: string
    rowFilter.sensors.open_alerts:
      in: query
      name: open_alerts
      required: false
      schema:
        type: string
    rowFilter.sensors.latest_value:
      in: query
      name: latest_value
      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:
    sensors:
      description: >-
        Sensors with their latest reading, open alerts, and whether they feed a
        meter.
      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
        asset_name:
          format: character varying
          maxLength: 250
          type: string
        asset_number:
          format: character varying
          maxLength: 80
          type: string
        code:
          format: character varying
          maxLength: 60
          type: string
        device_code:
          format: character varying
          maxLength: 60
          type: string
        device_id:
          format: uuid
          type: string
        device_status:
          format: character varying
          maxLength: 20
          type: string
        feeds_maintenance:
          format: boolean
          type: boolean
        id:
          description: |-
            Note:
            This is a Primary Key.<pk/>
          format: uuid
          type: string
        is_active:
          format: boolean
          type: boolean
        last_meter_sync_at:
          format: timestamp with time zone
          type: string
        last_reading_at:
          format: timestamp with time zone
          type: string
        latest_value:
          format: numeric
          type: number
        measurement:
          format: character varying
          maxLength: 30
          type: string
        meter_code:
          format: character varying
          maxLength: 60
          type: string
        meter_id:
          description: >-
            Note:

            This is a Foreign Key to `asset_meters.meter_id`.<fk
            table='asset_meters' column='meter_id'/>
          format: uuid
          type: string
        meter_sync_seconds:
          format: integer
          type: integer
        name:
          format: character varying
          maxLength: 150
          type: string
        open_alerts:
          format: bigint
          type: integer
        sample_interval_seconds:
          format: integer
          type: integer
        thresholds:
          format: bigint
          type: integer
      type: object

````

## Related topics

- [Sensors and condition alerts](/assets/sensors.md)
- [Meters and readings](/assets/meters.md)
- [What this system does](/introduction.md)
- [Inside an asset](/assets/detail.md)
- [Asset settings](/config/assets.md)
