> ## 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 gateway's MQTT feed: how it is reached, whether it is reaching us, and whether what arrives is becoming readings.



## OpenAPI

````yaml /api-reference/openapi.json get /feeds
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:
  /feeds:
    get:
      tags:
        - Feeds
      summary: >-
        A gateway's MQTT feed: how it is reached, whether it is reaching us, and
        whether what arrives is becoming readings.
      parameters:
        - $ref: '#/components/parameters/rowFilter.feeds.id'
        - $ref: '#/components/parameters/rowFilter.feeds.device_id'
        - $ref: '#/components/parameters/rowFilter.feeds.code'
        - $ref: '#/components/parameters/rowFilter.feeds.name'
        - $ref: '#/components/parameters/rowFilter.feeds.device_kind'
        - $ref: '#/components/parameters/rowFilter.feeds.device_status'
        - $ref: '#/components/parameters/rowFilter.feeds.device_last_seen_at'
        - $ref: '#/components/parameters/rowFilter.feeds.site_id'
        - $ref: '#/components/parameters/rowFilter.feeds.site_name'
        - $ref: '#/components/parameters/rowFilter.feeds.transport'
        - $ref: '#/components/parameters/rowFilter.feeds.host'
        - $ref: '#/components/parameters/rowFilter.feeds.port'
        - $ref: '#/components/parameters/rowFilter.feeds.tls_mode'
        - $ref: '#/components/parameters/rowFilter.feeds.verify_certificate'
        - $ref: '#/components/parameters/rowFilter.feeds.username'
        - $ref: '#/components/parameters/rowFilter.feeds.mqtt_topic_filter'
        - $ref: '#/components/parameters/rowFilter.feeds.mqtt_client_id'
        - $ref: '#/components/parameters/rowFilter.feeds.mqtt_qos'
        - $ref: '#/components/parameters/rowFilter.feeds.payload_format'
        - $ref: '#/components/parameters/rowFilter.feeds.payload_map'
        - $ref: '#/components/parameters/rowFilter.feeds.max_samples_per_minute'
        - $ref: '#/components/parameters/rowFilter.feeds.clock_skew_minutes'
        - $ref: '#/components/parameters/rowFilter.feeds.is_paused'
        - $ref: '#/components/parameters/rowFilter.feeds.connection_state'
        - $ref: '#/components/parameters/rowFilter.feeds.last_connected_at'
        - $ref: '#/components/parameters/rowFilter.feeds.last_message_at'
        - $ref: '#/components/parameters/rowFilter.feeds.last_error'
        - $ref: '#/components/parameters/rowFilter.feeds.last_error_at'
        - $ref: '#/components/parameters/rowFilter.feeds.consecutive_failures'
        - $ref: '#/components/parameters/rowFilter.feeds.next_attempt_at'
        - $ref: '#/components/parameters/rowFilter.feeds.last_payload'
        - $ref: '#/components/parameters/rowFilter.feeds.last_payload_at'
        - $ref: '#/components/parameters/rowFilter.feeds.unmapped_count'
        - $ref: '#/components/parameters/rowFilter.feeds.last_unmapped_payload'
        - $ref: '#/components/parameters/rowFilter.feeds.unknown_sensor_codes'
        - $ref: '#/components/parameters/rowFilter.feeds.messages_received'
        - $ref: '#/components/parameters/rowFilter.feeds.dropped_messages'
        - $ref: '#/components/parameters/rowFilter.feeds.samples_recorded'
        - $ref: '#/components/parameters/rowFilter.feeds.claimed_by'
        - $ref: '#/components/parameters/rowFilter.feeds.claimed_at'
        - $ref: '#/components/parameters/rowFilter.feeds.has_credential'
        - $ref: '#/components/parameters/rowFilter.feeds.credential_hint'
        - $ref: '#/components/parameters/rowFilter.feeds.credential_set_at'
        - $ref: '#/components/parameters/rowFilter.feeds.sensors'
        - $ref: '#/components/parameters/rowFilter.feeds.connected_but_silent'
        - $ref: '#/components/parameters/rowFilter.feeds.arriving_but_unusable'
        - $ref: '#/components/parameters/rowFilter.feeds.row_version'
        - $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/feeds'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/feeds'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/feeds'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/feeds'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.feeds.id:
      in: query
      name: id
      required: false
      schema:
        type: string
    rowFilter.feeds.device_id:
      in: query
      name: device_id
      required: false
      schema:
        type: string
    rowFilter.feeds.code:
      in: query
      name: code
      required: false
      schema:
        type: string
    rowFilter.feeds.name:
      in: query
      name: name
      required: false
      schema:
        type: string
    rowFilter.feeds.device_kind:
      in: query
      name: device_kind
      required: false
      schema:
        type: string
    rowFilter.feeds.device_status:
      in: query
      name: device_status
      required: false
      schema:
        type: string
    rowFilter.feeds.device_last_seen_at:
      in: query
      name: device_last_seen_at
      required: false
      schema:
        type: string
    rowFilter.feeds.site_id:
      in: query
      name: site_id
      required: false
      schema:
        type: string
    rowFilter.feeds.site_name:
      in: query
      name: site_name
      required: false
      schema:
        type: string
    rowFilter.feeds.transport:
      in: query
      name: transport
      required: false
      schema:
        type: string
    rowFilter.feeds.host:
      in: query
      name: host
      required: false
      schema:
        type: string
    rowFilter.feeds.port:
      in: query
      name: port
      required: false
      schema:
        type: string
    rowFilter.feeds.tls_mode:
      in: query
      name: tls_mode
      required: false
      schema:
        type: string
    rowFilter.feeds.verify_certificate:
      in: query
      name: verify_certificate
      required: false
      schema:
        type: string
    rowFilter.feeds.username:
      in: query
      name: username
      required: false
      schema:
        type: string
    rowFilter.feeds.mqtt_topic_filter:
      in: query
      name: mqtt_topic_filter
      required: false
      schema:
        type: string
    rowFilter.feeds.mqtt_client_id:
      in: query
      name: mqtt_client_id
      required: false
      schema:
        type: string
    rowFilter.feeds.mqtt_qos:
      in: query
      name: mqtt_qos
      required: false
      schema:
        type: string
    rowFilter.feeds.payload_format:
      in: query
      name: payload_format
      required: false
      schema:
        type: string
    rowFilter.feeds.payload_map:
      in: query
      name: payload_map
      required: false
      schema:
        type: string
    rowFilter.feeds.max_samples_per_minute:
      in: query
      name: max_samples_per_minute
      required: false
      schema:
        type: string
    rowFilter.feeds.clock_skew_minutes:
      in: query
      name: clock_skew_minutes
      required: false
      schema:
        type: string
    rowFilter.feeds.is_paused:
      in: query
      name: is_paused
      required: false
      schema:
        type: string
    rowFilter.feeds.connection_state:
      in: query
      name: connection_state
      required: false
      schema:
        type: string
    rowFilter.feeds.last_connected_at:
      in: query
      name: last_connected_at
      required: false
      schema:
        type: string
    rowFilter.feeds.last_message_at:
      in: query
      name: last_message_at
      required: false
      schema:
        type: string
    rowFilter.feeds.last_error:
      in: query
      name: last_error
      required: false
      schema:
        type: string
    rowFilter.feeds.last_error_at:
      in: query
      name: last_error_at
      required: false
      schema:
        type: string
    rowFilter.feeds.consecutive_failures:
      in: query
      name: consecutive_failures
      required: false
      schema:
        type: string
    rowFilter.feeds.next_attempt_at:
      in: query
      name: next_attempt_at
      required: false
      schema:
        type: string
    rowFilter.feeds.last_payload:
      in: query
      name: last_payload
      required: false
      schema:
        type: string
    rowFilter.feeds.last_payload_at:
      in: query
      name: last_payload_at
      required: false
      schema:
        type: string
    rowFilter.feeds.unmapped_count:
      in: query
      name: unmapped_count
      required: false
      schema:
        type: string
    rowFilter.feeds.last_unmapped_payload:
      in: query
      name: last_unmapped_payload
      required: false
      schema:
        type: string
    rowFilter.feeds.unknown_sensor_codes:
      in: query
      name: unknown_sensor_codes
      required: false
      schema:
        type: string
    rowFilter.feeds.messages_received:
      in: query
      name: messages_received
      required: false
      schema:
        type: string
    rowFilter.feeds.dropped_messages:
      in: query
      name: dropped_messages
      required: false
      schema:
        type: string
    rowFilter.feeds.samples_recorded:
      in: query
      name: samples_recorded
      required: false
      schema:
        type: string
    rowFilter.feeds.claimed_by:
      in: query
      name: claimed_by
      required: false
      schema:
        type: string
    rowFilter.feeds.claimed_at:
      in: query
      name: claimed_at
      required: false
      schema:
        type: string
    rowFilter.feeds.has_credential:
      in: query
      name: has_credential
      required: false
      schema:
        type: string
    rowFilter.feeds.credential_hint:
      in: query
      name: credential_hint
      required: false
      schema:
        type: string
    rowFilter.feeds.credential_set_at:
      in: query
      name: credential_set_at
      required: false
      schema:
        type: string
    rowFilter.feeds.sensors:
      in: query
      name: sensors
      required: false
      schema:
        type: string
    rowFilter.feeds.connected_but_silent:
      in: query
      name: connected_but_silent
      required: false
      schema:
        type: string
    rowFilter.feeds.arriving_but_unusable:
      in: query
      name: arriving_but_unusable
      required: false
      schema:
        type: string
    rowFilter.feeds.row_version:
      in: query
      name: row_version
      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:
    feeds:
      description: >-
        A gateway's MQTT feed: how it is reached, whether it is reaching us, and
        whether what arrives is becoming readings.
      properties:
        arriving_but_unusable:
          format: boolean
          type: boolean
        claimed_at:
          format: timestamp with time zone
          type: string
        claimed_by:
          format: character varying
          maxLength: 120
          type: string
        clock_skew_minutes:
          format: integer
          type: integer
        code:
          format: character varying
          maxLength: 60
          type: string
        connected_but_silent:
          format: boolean
          type: boolean
        connection_state:
          format: character varying
          maxLength: 20
          type: string
        consecutive_failures:
          format: integer
          type: integer
        credential_hint:
          format: character varying
          maxLength: 12
          type: string
        credential_set_at:
          format: timestamp with time zone
          type: string
        device_id:
          format: uuid
          type: string
        device_kind:
          format: character varying
          maxLength: 30
          type: string
        device_last_seen_at:
          format: timestamp with time zone
          type: string
        device_status:
          format: character varying
          maxLength: 20
          type: string
        dropped_messages:
          format: bigint
          type: integer
        has_credential:
          format: boolean
          type: boolean
        host:
          format: character varying
          maxLength: 255
          type: string
        id:
          description: |-
            Note:
            This is a Primary Key.<pk/>
          format: uuid
          type: string
        is_paused:
          format: boolean
          type: boolean
        last_connected_at:
          format: timestamp with time zone
          type: string
        last_error:
          format: text
          type: string
        last_error_at:
          format: timestamp with time zone
          type: string
        last_message_at:
          format: timestamp with time zone
          type: string
        last_payload:
          format: jsonb
        last_payload_at:
          format: timestamp with time zone
          type: string
        last_unmapped_payload:
          format: text
          type: string
        max_samples_per_minute:
          format: integer
          type: integer
        messages_received:
          format: bigint
          type: integer
        mqtt_client_id:
          format: character varying
          maxLength: 120
          type: string
        mqtt_qos:
          format: smallint
          type: integer
        mqtt_topic_filter:
          format: character varying
          maxLength: 500
          type: string
        name:
          format: character varying
          maxLength: 150
          type: string
        next_attempt_at:
          format: timestamp with time zone
          type: string
        payload_format:
          format: character varying
          maxLength: 20
          type: string
        payload_map:
          format: jsonb
        port:
          format: integer
          type: integer
        row_version:
          format: bigint
          type: integer
        samples_recorded:
          format: bigint
          type: integer
        sensors:
          format: bigint
          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
        site_name:
          format: character varying
          maxLength: 200
          type: string
        tls_mode:
          format: character varying
          maxLength: 20
          type: string
        transport:
          format: character varying
          maxLength: 20
          type: string
        unknown_sensor_codes:
          format: text[]
          items:
            type: string
          type: array
        unmapped_count:
          format: bigint
          type: integer
        username:
          format: character varying
          maxLength: 320
          type: string
        verify_certificate:
          format: boolean
          type: boolean
      type: object

````