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

# Inspections with derived outcome, progress and overdue state.



## OpenAPI

````yaml /api-reference/openapi.json get /inspections
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:
  /inspections:
    get:
      tags:
        - Inspections
      summary: Inspections with derived outcome, progress and overdue state.
      parameters:
        - $ref: '#/components/parameters/rowFilter.inspections.id'
        - $ref: '#/components/parameters/rowFilter.inspections.inspection_number'
        - $ref: '#/components/parameters/rowFilter.inspections.template_code'
        - $ref: '#/components/parameters/rowFilter.inspections.template_name'
        - $ref: '#/components/parameters/rowFilter.inspections.inspection_type'
        - $ref: '#/components/parameters/rowFilter.inspections.inspection_type_name'
        - $ref: '#/components/parameters/rowFilter.inspections.is_regulatory'
        - $ref: '#/components/parameters/rowFilter.inspections.status'
        - $ref: '#/components/parameters/rowFilter.inspections.status_label'
        - $ref: '#/components/parameters/rowFilter.inspections.status_category'
        - $ref: '#/components/parameters/rowFilter.inspections.origin'
        - $ref: '#/components/parameters/rowFilter.inspections.outcome'
        - $ref: '#/components/parameters/rowFilter.inspections.score_percent'
        - $ref: '#/components/parameters/rowFilter.inspections.items_total'
        - $ref: '#/components/parameters/rowFilter.inspections.items_passed'
        - $ref: '#/components/parameters/rowFilter.inspections.items_failed'
        - $ref: '#/components/parameters/rowFilter.inspections.critical_failures'
        - $ref: '#/components/parameters/rowFilter.inspections.asset_id'
        - $ref: '#/components/parameters/rowFilter.inspections.asset_number'
        - $ref: '#/components/parameters/rowFilter.inspections.asset_name'
        - $ref: '#/components/parameters/rowFilter.inspections.site_id'
        - $ref: '#/components/parameters/rowFilter.inspections.location_id'
        - $ref: '#/components/parameters/rowFilter.inspections.work_order_id'
        - $ref: >-
            #/components/parameters/rowFilter.inspections.maintenance_occurrence_id
        - $ref: '#/components/parameters/rowFilter.inspections.inspector_worker_id'
        - $ref: '#/components/parameters/rowFilter.inspections.inspector_name'
        - $ref: '#/components/parameters/rowFilter.inspections.scheduled_for'
        - $ref: '#/components/parameters/rowFilter.inspections.due_at'
        - $ref: '#/components/parameters/rowFilter.inspections.is_overdue'
        - $ref: '#/components/parameters/rowFilter.inspections.started_at'
        - $ref: '#/components/parameters/rowFilter.inspections.submitted_at'
        - $ref: '#/components/parameters/rowFilter.inspections.reviewed_at'
        - $ref: '#/components/parameters/rowFilter.inspections.notes'
        - $ref: '#/components/parameters/rowFilter.inspections.items_answered'
        - $ref: '#/components/parameters/rowFilter.inspections.mandatory_unanswered'
        - $ref: '#/components/parameters/rowFilter.inspections.row_version'
        - $ref: '#/components/parameters/rowFilter.inspections.updated_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/inspections'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/inspections'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/inspections'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/inspections'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.inspections.id:
      in: query
      name: id
      required: false
      schema:
        type: string
    rowFilter.inspections.inspection_number:
      in: query
      name: inspection_number
      required: false
      schema:
        type: string
    rowFilter.inspections.template_code:
      in: query
      name: template_code
      required: false
      schema:
        type: string
    rowFilter.inspections.template_name:
      in: query
      name: template_name
      required: false
      schema:
        type: string
    rowFilter.inspections.inspection_type:
      in: query
      name: inspection_type
      required: false
      schema:
        type: string
    rowFilter.inspections.inspection_type_name:
      in: query
      name: inspection_type_name
      required: false
      schema:
        type: string
    rowFilter.inspections.is_regulatory:
      in: query
      name: is_regulatory
      required: false
      schema:
        type: string
    rowFilter.inspections.status:
      in: query
      name: status
      required: false
      schema:
        type: string
    rowFilter.inspections.status_label:
      in: query
      name: status_label
      required: false
      schema:
        type: string
    rowFilter.inspections.status_category:
      in: query
      name: status_category
      required: false
      schema:
        type: string
    rowFilter.inspections.origin:
      in: query
      name: origin
      required: false
      schema:
        type: string
    rowFilter.inspections.outcome:
      in: query
      name: outcome
      required: false
      schema:
        type: string
    rowFilter.inspections.score_percent:
      in: query
      name: score_percent
      required: false
      schema:
        type: string
    rowFilter.inspections.items_total:
      in: query
      name: items_total
      required: false
      schema:
        type: string
    rowFilter.inspections.items_passed:
      in: query
      name: items_passed
      required: false
      schema:
        type: string
    rowFilter.inspections.items_failed:
      in: query
      name: items_failed
      required: false
      schema:
        type: string
    rowFilter.inspections.critical_failures:
      in: query
      name: critical_failures
      required: false
      schema:
        type: string
    rowFilter.inspections.asset_id:
      in: query
      name: asset_id
      required: false
      schema:
        type: string
    rowFilter.inspections.asset_number:
      in: query
      name: asset_number
      required: false
      schema:
        type: string
    rowFilter.inspections.asset_name:
      in: query
      name: asset_name
      required: false
      schema:
        type: string
    rowFilter.inspections.site_id:
      in: query
      name: site_id
      required: false
      schema:
        type: string
    rowFilter.inspections.location_id:
      in: query
      name: location_id
      required: false
      schema:
        type: string
    rowFilter.inspections.work_order_id:
      in: query
      name: work_order_id
      required: false
      schema:
        type: string
    rowFilter.inspections.maintenance_occurrence_id:
      in: query
      name: maintenance_occurrence_id
      required: false
      schema:
        type: string
    rowFilter.inspections.inspector_worker_id:
      in: query
      name: inspector_worker_id
      required: false
      schema:
        type: string
    rowFilter.inspections.inspector_name:
      in: query
      name: inspector_name
      required: false
      schema:
        type: string
    rowFilter.inspections.scheduled_for:
      in: query
      name: scheduled_for
      required: false
      schema:
        type: string
    rowFilter.inspections.due_at:
      in: query
      name: due_at
      required: false
      schema:
        type: string
    rowFilter.inspections.is_overdue:
      in: query
      name: is_overdue
      required: false
      schema:
        type: string
    rowFilter.inspections.started_at:
      in: query
      name: started_at
      required: false
      schema:
        type: string
    rowFilter.inspections.submitted_at:
      in: query
      name: submitted_at
      required: false
      schema:
        type: string
    rowFilter.inspections.reviewed_at:
      in: query
      name: reviewed_at
      required: false
      schema:
        type: string
    rowFilter.inspections.notes:
      in: query
      name: notes
      required: false
      schema:
        type: string
    rowFilter.inspections.items_answered:
      in: query
      name: items_answered
      required: false
      schema:
        type: string
    rowFilter.inspections.mandatory_unanswered:
      in: query
      name: mandatory_unanswered
      required: false
      schema:
        type: string
    rowFilter.inspections.row_version:
      in: query
      name: row_version
      required: false
      schema:
        type: string
    rowFilter.inspections.updated_at:
      in: query
      name: updated_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:
    inspections:
      description: Inspections with derived outcome, progress and overdue state.
      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
        critical_failures:
          format: integer
          type: integer
        due_at:
          format: timestamp with time zone
          type: string
        id:
          description: |-
            Note:
            This is a Primary Key.<pk/>
          format: uuid
          type: string
        inspection_number:
          format: character varying
          maxLength: 60
          type: string
        inspection_type:
          format: character varying
          maxLength: 40
          type: string
        inspection_type_name:
          format: character varying
          maxLength: 150
          type: string
        inspector_name:
          format: character varying
          maxLength: 200
          type: string
        inspector_worker_id:
          description: >-
            Note:

            This is a Foreign Key to `technician_workload.worker_id`.<fk
            table='technician_workload' column='worker_id'/>
          format: uuid
          type: string
        is_overdue:
          format: boolean
          type: boolean
        is_regulatory:
          format: boolean
          type: boolean
        items_answered:
          format: bigint
          type: integer
        items_failed:
          format: integer
          type: integer
        items_passed:
          format: integer
          type: integer
        items_total:
          format: integer
          type: integer
        location_id:
          description: >-
            Note:

            This is a Foreign Key to `location_settings.id`.<fk
            table='location_settings' column='id'/>
          format: uuid
          type: string
        maintenance_occurrence_id:
          description: >-
            Note:

            This is a Foreign Key to `maintenance_due.occurrence_id`.<fk
            table='maintenance_due' column='occurrence_id'/>
          format: uuid
          type: string
        mandatory_unanswered:
          format: bigint
          type: integer
        notes:
          format: text
          type: string
        origin:
          format: character varying
          maxLength: 30
          type: string
        outcome:
          format: character varying
          maxLength: 30
          type: string
        reviewed_at:
          format: timestamp with time zone
          type: string
        row_version:
          format: bigint
          type: integer
        scheduled_for:
          format: timestamp with time zone
          type: string
        score_percent:
          format: numeric
          type: number
        site_id:
          description: >-
            Note:

            This is a Foreign Key to `site_settings.id`.<fk
            table='site_settings' column='id'/>
          format: uuid
          type: string
        started_at:
          format: timestamp with time zone
          type: string
        status:
          format: character varying
          maxLength: 60
          type: string
        status_category:
          format: character varying
          maxLength: 20
          type: string
        status_label:
          format: character varying
          maxLength: 150
          type: string
        submitted_at:
          format: timestamp with time zone
          type: string
        template_code:
          format: character varying
          maxLength: 60
          type: string
        template_name:
          format: character varying
          maxLength: 250
          type: string
        updated_at:
          format: timestamp with time zone
          type: string
        work_order_id:
          description: >-
            Note:

            This is a Foreign Key to
            `inspection_failures.found_in_work_order_id`.<fk
            table='inspection_failures' column='found_in_work_order_id'/>
          format: uuid
          type: string
      type: object

````

## Related topics

- [Inspections](/maintenance/inspections.md)
- [Inspection settings](/config/inspections.md)
- [The work order lifecycle](/work/lifecycle.md)
- [Statuses and transitions](/config/statuses.md)
- [Reliability](/assets/reliability.md)
