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

# Every scan at every gate, with what the guard was told at the time.



## OpenAPI

````yaml /api-reference/openapi.json get /gate_events
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:
  /gate_events:
    get:
      tags:
        - Visitors
      summary: Every scan at every gate, with what the guard was told at the time.
      parameters:
        - $ref: '#/components/parameters/rowFilter.gate_events.id'
        - $ref: '#/components/parameters/rowFilter.gate_events.site_id'
        - $ref: '#/components/parameters/rowFilter.gate_events.site_code'
        - $ref: '#/components/parameters/rowFilter.gate_events.occurred_at'
        - $ref: '#/components/parameters/rowFilter.gate_events.direction'
        - $ref: '#/components/parameters/rowFilter.gate_events.outcome'
        - $ref: '#/components/parameters/rowFilter.gate_events.reason'
        - $ref: '#/components/parameters/rowFilter.gate_events.scanned_value'
        - $ref: '#/components/parameters/rowFilter.gate_events.gate_name'
        - $ref: '#/components/parameters/rowFilter.gate_events.location_id'
        - $ref: '#/components/parameters/rowFilter.gate_events.location_name'
        - $ref: '#/components/parameters/rowFilter.gate_events.device_registration_id'
        - $ref: '#/components/parameters/rowFilter.gate_events.device_reference'
        - $ref: '#/components/parameters/rowFilter.gate_events.device_description'
        - $ref: '#/components/parameters/rowFilter.gate_events.device_serial_number'
        - $ref: '#/components/parameters/rowFilter.gate_events.carries_storage'
        - $ref: '#/components/parameters/rowFilter.gate_events.visit_id'
        - $ref: '#/components/parameters/rowFilter.gate_events.visit_reference'
        - $ref: '#/components/parameters/rowFilter.gate_events.visitor_name'
        - $ref: '#/components/parameters/rowFilter.gate_events.recorded_by_user_id'
        - $ref: '#/components/parameters/rowFilter.gate_events.recorded_by_name'
        - $ref: '#/components/parameters/rowFilter.gate_events.notes'
        - $ref: '#/components/parameters/rowFilter.gate_events.created_at'
        - $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/gate_events'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/gate_events'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/gate_events'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/gate_events'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.gate_events.id:
      in: query
      name: id
      required: false
      schema:
        type: string
    rowFilter.gate_events.site_id:
      in: query
      name: site_id
      required: false
      schema:
        type: string
    rowFilter.gate_events.site_code:
      in: query
      name: site_code
      required: false
      schema:
        type: string
    rowFilter.gate_events.occurred_at:
      in: query
      name: occurred_at
      required: false
      schema:
        type: string
    rowFilter.gate_events.direction:
      in: query
      name: direction
      required: false
      schema:
        type: string
    rowFilter.gate_events.outcome:
      in: query
      name: outcome
      required: false
      schema:
        type: string
    rowFilter.gate_events.reason:
      in: query
      name: reason
      required: false
      schema:
        type: string
    rowFilter.gate_events.scanned_value:
      in: query
      name: scanned_value
      required: false
      schema:
        type: string
    rowFilter.gate_events.gate_name:
      in: query
      name: gate_name
      required: false
      schema:
        type: string
    rowFilter.gate_events.location_id:
      in: query
      name: location_id
      required: false
      schema:
        type: string
    rowFilter.gate_events.location_name:
      in: query
      name: location_name
      required: false
      schema:
        type: string
    rowFilter.gate_events.device_registration_id:
      in: query
      name: device_registration_id
      required: false
      schema:
        type: string
    rowFilter.gate_events.device_reference:
      in: query
      name: device_reference
      required: false
      schema:
        type: string
    rowFilter.gate_events.device_description:
      in: query
      name: device_description
      required: false
      schema:
        type: string
    rowFilter.gate_events.device_serial_number:
      in: query
      name: device_serial_number
      required: false
      schema:
        type: string
    rowFilter.gate_events.carries_storage:
      in: query
      name: carries_storage
      required: false
      schema:
        type: string
    rowFilter.gate_events.visit_id:
      in: query
      name: visit_id
      required: false
      schema:
        type: string
    rowFilter.gate_events.visit_reference:
      in: query
      name: visit_reference
      required: false
      schema:
        type: string
    rowFilter.gate_events.visitor_name:
      in: query
      name: visitor_name
      required: false
      schema:
        type: string
    rowFilter.gate_events.recorded_by_user_id:
      in: query
      name: recorded_by_user_id
      required: false
      schema:
        type: string
    rowFilter.gate_events.recorded_by_name:
      in: query
      name: recorded_by_name
      required: false
      schema:
        type: string
    rowFilter.gate_events.notes:
      in: query
      name: notes
      required: false
      schema:
        type: string
    rowFilter.gate_events.created_at:
      in: query
      name: created_at
      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:
    gate_events:
      description: Every scan at every gate, with what the guard was told at the time.
      properties:
        carries_storage:
          format: boolean
          type: boolean
        created_at:
          format: timestamp with time zone
          type: string
        device_description:
          format: character varying
          maxLength: 200
          type: string
        device_reference:
          format: character varying
          maxLength: 40
          type: string
        device_registration_id:
          description: >-
            Note:

            This is a Foreign Key to `device_registrations.id`.<fk
            table='device_registrations' column='id'/>
          format: uuid
          type: string
        device_serial_number:
          format: character varying
          maxLength: 80
          type: string
        direction:
          format: character varying
          maxLength: 3
          type: string
        gate_name:
          format: character varying
          maxLength: 80
          type: string
        id:
          description: |-
            Note:
            This is a Primary Key.<pk/>
          format: uuid
          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_name:
          format: character varying
          maxLength: 200
          type: string
        notes:
          format: text
          type: string
        occurred_at:
          format: timestamp with time zone
          type: string
        outcome:
          format: character varying
          maxLength: 20
          type: string
        reason:
          format: character varying
          maxLength: 300
          type: string
        recorded_by_name:
          format: character varying
          maxLength: 200
          type: string
        recorded_by_user_id:
          description: >-
            Note:

            This is a Foreign Key to `capex_invite_candidates.id`.<fk
            table='capex_invite_candidates' column='id'/>
          format: uuid
          type: string
        scanned_value:
          format: character varying
          maxLength: 250
          type: string
        site_code:
          format: character varying
          maxLength: 50
          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
        visit_id:
          description: >-
            Note:

            This is a Foreign Key to `visits.id`.<fk table='visits'
            column='id'/>
          format: uuid
          type: string
        visit_reference:
          format: character varying
          maxLength: 40
          type: string
        visitor_name:
          format: character varying
          maxLength: 150
          type: string
      type: object

````