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

# One row per visit — where a tag was, from when to when, and how long it stayed.



## OpenAPI

````yaml /api-reference/openapi.json get /tag_presences
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:
  /tag_presences:
    get:
      tags:
        - Readers
      summary: >-
        One row per visit — where a tag was, from when to when, and how long it
        stayed.
      parameters:
        - $ref: '#/components/parameters/rowFilter.tag_presences.id'
        - $ref: '#/components/parameters/rowFilter.tag_presences.tag_value'
        - $ref: '#/components/parameters/rowFilter.tag_presences.tag_format'
        - $ref: '#/components/parameters/rowFilter.tag_presences.status'
        - $ref: '#/components/parameters/rowFilter.tag_presences.entity_type'
        - $ref: '#/components/parameters/rowFilter.tag_presences.entity_id'
        - $ref: '#/components/parameters/rowFilter.tag_presences.asset_id'
        - $ref: '#/components/parameters/rowFilter.tag_presences.asset_number'
        - $ref: '#/components/parameters/rowFilter.tag_presences.asset_name'
        - $ref: '#/components/parameters/rowFilter.tag_presences.reader_id'
        - $ref: '#/components/parameters/rowFilter.tag_presences.reader_code'
        - $ref: '#/components/parameters/rowFilter.tag_presences.reader_antenna_id'
        - $ref: '#/components/parameters/rowFilter.tag_presences.antenna_number'
        - $ref: '#/components/parameters/rowFilter.tag_presences.antenna_name'
        - $ref: '#/components/parameters/rowFilter.tag_presences.purpose'
        - $ref: '#/components/parameters/rowFilter.tag_presences.site_id'
        - $ref: '#/components/parameters/rowFilter.tag_presences.site_name'
        - $ref: '#/components/parameters/rowFilter.tag_presences.location_id'
        - $ref: '#/components/parameters/rowFilter.tag_presences.location_path'
        - $ref: '#/components/parameters/rowFilter.tag_presences.opened_at'
        - $ref: '#/components/parameters/rowFilter.tag_presences.last_seen_at'
        - $ref: '#/components/parameters/rowFilter.tag_presences.closed_at'
        - $ref: '#/components/parameters/rowFilter.tag_presences.read_count'
        - $ref: '#/components/parameters/rowFilter.tag_presences.stored_reads'
        - $ref: '#/components/parameters/rowFilter.tag_presences.peak_rssi'
        - $ref: '#/components/parameters/rowFilter.tag_presences.last_rssi'
        - $ref: '#/components/parameters/rowFilter.tag_presences.dwell_seconds'
        - $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/tag_presences'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/tag_presences'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/tag_presences'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/tag_presences'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.tag_presences.id:
      in: query
      name: id
      required: false
      schema:
        type: string
    rowFilter.tag_presences.tag_value:
      in: query
      name: tag_value
      required: false
      schema:
        type: string
    rowFilter.tag_presences.tag_format:
      in: query
      name: tag_format
      required: false
      schema:
        type: string
    rowFilter.tag_presences.status:
      in: query
      name: status
      required: false
      schema:
        type: string
    rowFilter.tag_presences.entity_type:
      in: query
      name: entity_type
      required: false
      schema:
        type: string
    rowFilter.tag_presences.entity_id:
      in: query
      name: entity_id
      required: false
      schema:
        type: string
    rowFilter.tag_presences.asset_id:
      in: query
      name: asset_id
      required: false
      schema:
        type: string
    rowFilter.tag_presences.asset_number:
      in: query
      name: asset_number
      required: false
      schema:
        type: string
    rowFilter.tag_presences.asset_name:
      in: query
      name: asset_name
      required: false
      schema:
        type: string
    rowFilter.tag_presences.reader_id:
      in: query
      name: reader_id
      required: false
      schema:
        type: string
    rowFilter.tag_presences.reader_code:
      in: query
      name: reader_code
      required: false
      schema:
        type: string
    rowFilter.tag_presences.reader_antenna_id:
      in: query
      name: reader_antenna_id
      required: false
      schema:
        type: string
    rowFilter.tag_presences.antenna_number:
      in: query
      name: antenna_number
      required: false
      schema:
        type: string
    rowFilter.tag_presences.antenna_name:
      in: query
      name: antenna_name
      required: false
      schema:
        type: string
    rowFilter.tag_presences.purpose:
      in: query
      name: purpose
      required: false
      schema:
        type: string
    rowFilter.tag_presences.site_id:
      in: query
      name: site_id
      required: false
      schema:
        type: string
    rowFilter.tag_presences.site_name:
      in: query
      name: site_name
      required: false
      schema:
        type: string
    rowFilter.tag_presences.location_id:
      in: query
      name: location_id
      required: false
      schema:
        type: string
    rowFilter.tag_presences.location_path:
      in: query
      name: location_path
      required: false
      schema:
        type: string
    rowFilter.tag_presences.opened_at:
      in: query
      name: opened_at
      required: false
      schema:
        type: string
    rowFilter.tag_presences.last_seen_at:
      in: query
      name: last_seen_at
      required: false
      schema:
        type: string
    rowFilter.tag_presences.closed_at:
      in: query
      name: closed_at
      required: false
      schema:
        type: string
    rowFilter.tag_presences.read_count:
      in: query
      name: read_count
      required: false
      schema:
        type: string
    rowFilter.tag_presences.stored_reads:
      in: query
      name: stored_reads
      required: false
      schema:
        type: string
    rowFilter.tag_presences.peak_rssi:
      in: query
      name: peak_rssi
      required: false
      schema:
        type: string
    rowFilter.tag_presences.last_rssi:
      in: query
      name: last_rssi
      required: false
      schema:
        type: string
    rowFilter.tag_presences.dwell_seconds:
      in: query
      name: dwell_seconds
      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:
    tag_presences:
      description: >-
        One row per visit — where a tag was, from when to when, and how long it
        stayed.
      properties:
        antenna_name:
          format: character varying
          maxLength: 150
          type: string
        antenna_number:
          format: smallint
          type: integer
        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
        closed_at:
          format: timestamp with time zone
          type: string
        dwell_seconds:
          format: integer
          type: integer
        entity_id:
          format: uuid
          type: string
        entity_type:
          format: character varying
          maxLength: 80
          type: string
        id:
          description: |-
            Note:
            This is a Primary Key.<pk/>
          format: uuid
          type: string
        last_rssi:
          format: numeric
          type: number
        last_seen_at:
          format: timestamp with time zone
          type: string
        location_id:
          description: >-
            Note:

            This is a Foreign Key to `location_settings.id`.<fk
            table='location_settings' column='id'/>
          format: uuid
          type: string
        location_path:
          format: text
          type: string
        opened_at:
          format: timestamp with time zone
          type: string
        peak_rssi:
          format: numeric
          type: number
        purpose:
          format: character varying
          maxLength: 20
          type: string
        read_count:
          format: integer
          type: integer
        reader_antenna_id:
          description: >-
            Note:

            This is a Foreign Key to `reader_antennas.id`.<fk
            table='reader_antennas' column='id'/>
          format: uuid
          type: string
        reader_code:
          format: character varying
          maxLength: 60
          type: string
        reader_id:
          description: >-
            Note:

            This is a Foreign Key to `readers.id`.<fk table='readers'
            column='id'/>
          format: uuid
          type: string
        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
        status:
          format: character varying
          maxLength: 20
          type: string
        stored_reads:
          format: integer
          type: integer
        tag_format:
          format: character varying
          maxLength: 20
          type: string
        tag_value:
          format: character varying
          maxLength: 128
          type: string
      type: object

````