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

# List work requests

> The request queue, before anything has become a work order.

What was reported and by whom, the triage decision, and the work order it turned into. A request
that named a duplicate keeps the id of the one it duplicates.



## OpenAPI

````yaml /api-reference/integration.json get /work_requests
openapi: 3.0.0
info:
  description: >-
    The calls an integration needs first. Every endpoint the application uses is
    in the complete reference.
  title: Asset Infinity integration API
  version: 12.2.3
servers:
  - url: https://app.assetinfinity.ai/api
security: []
tags:
  - description: >-
      Exchange an API key, or an email and password, for a short-lived session
      token, and send it as `Authorization: Bearer <token>` on every other call.
    name: Signing in
  - description: >-
      Where assets are and work happens. A location belongs to a site and may
      sit inside another location.
    name: Sites and locations
  - description: >-
      The asset register: read it, add to it, correct it, move an asset between
      sites and locations, and change its status.
    name: Assets
  - description: >-
      Report a problem. A request is triaged by a person, who turns it into a
      work order or turns it down.
    name: Work requests
  - description: >-
      Raise a job, give it to somebody, move it through the organisation's
      statuses, complete it and close it.
    name: Work orders
  - description: >-
      Send readings in. A meter reading brings the meter forward and raises any
      maintenance the usage has made due. A sensor reading can open or clear an
      alert.
    name: Meters and sensors
  - description: >-
      The part catalogue and what is on the shelf in each store, and the three
      movements an outside system most often records: a delivery in, an issue
      out and a correction.
    name: Parts and stock
  - description: >-
      Have the product call your system when something happens, instead of
      asking it on a timer.
    name: Webhooks
  - description: >-
      The calls behind every register that has no call of its own, answers to
      the organisation's own fields, and the two calls that answer what to send.
      `list_options` returns the ids a field accepts. `describe_call` returns
      the fields any call takes.
    name: Any record
externalDocs:
  description: PostgREST Documentation
  url: https://postgrest.org/en/v12/references/api.html
paths:
  /work_requests:
    get:
      tags:
        - Work requests
      summary: List work requests
      description: >-
        The request queue, before anything has become a work order.


        What was reported and by whom, the triage decision, and the work order
        it turned into. A request

        that named a duplicate keeps the id of the one it duplicates.
      parameters:
        - $ref: '#/components/parameters/rowFilter.work_requests.id'
        - $ref: '#/components/parameters/rowFilter.work_requests.request_number'
        - $ref: '#/components/parameters/rowFilter.work_requests.summary'
        - $ref: '#/components/parameters/rowFilter.work_requests.description'
        - $ref: '#/components/parameters/rowFilter.work_requests.status'
        - $ref: '#/components/parameters/rowFilter.work_requests.status_label'
        - $ref: '#/components/parameters/rowFilter.work_requests.status_category'
        - $ref: >-
            #/components/parameters/rowFilter.work_requests.state_model_version_id
        - $ref: '#/components/parameters/rowFilter.work_requests.status_is_terminal'
        - $ref: '#/components/parameters/rowFilter.work_requests.source'
        - $ref: '#/components/parameters/rowFilter.work_requests.source_name'
        - $ref: '#/components/parameters/rowFilter.work_requests.category'
        - $ref: >-
            #/components/parameters/rowFilter.work_requests.work_request_category_id
        - $ref: '#/components/parameters/rowFilter.work_requests.category_name'
        - $ref: '#/components/parameters/rowFilter.work_requests.reported_severity'
        - $ref: '#/components/parameters/rowFilter.work_requests.severity_rank'
        - $ref: >-
            #/components/parameters/rowFilter.work_requests.suggested_work_order_priority_id
        - $ref: >-
            #/components/parameters/rowFilter.work_requests.suggested_priority_code
        - $ref: >-
            #/components/parameters/rowFilter.work_requests.suggested_priority_name
        - $ref: '#/components/parameters/rowFilter.work_requests.asset_id'
        - $ref: '#/components/parameters/rowFilter.work_requests.asset_number'
        - $ref: '#/components/parameters/rowFilter.work_requests.asset_name'
        - $ref: '#/components/parameters/rowFilter.work_requests.site_id'
        - $ref: '#/components/parameters/rowFilter.work_requests.location_id'
        - $ref: '#/components/parameters/rowFilter.work_requests.requester_name'
        - $ref: '#/components/parameters/rowFilter.work_requests.requested_by_user_id'
        - $ref: '#/components/parameters/rowFilter.work_requests.discovered_at'
        - $ref: '#/components/parameters/rowFilter.work_requests.triaged_at'
        - $ref: '#/components/parameters/rowFilter.work_requests.rejection_reason'
        - $ref: >-
            #/components/parameters/rowFilter.work_requests.duplicate_of_work_request_id
        - $ref: '#/components/parameters/rowFilter.work_requests.assigned_worker_id'
        - $ref: '#/components/parameters/rowFilter.work_requests.assigned_worker_name'
        - $ref: '#/components/parameters/rowFilter.work_requests.assigned_team_id'
        - $ref: '#/components/parameters/rowFilter.work_requests.assigned_team_name'
        - $ref: '#/components/parameters/rowFilter.work_requests.assigned_vendor_id'
        - $ref: '#/components/parameters/rowFilter.work_requests.assigned_vendor_name'
        - $ref: '#/components/parameters/rowFilter.work_requests.cc'
        - $ref: '#/components/parameters/rowFilter.work_requests.work_order_id'
        - $ref: '#/components/parameters/rowFilter.work_requests.work_order_number'
        - $ref: >-
            #/components/parameters/rowFilter.work_requests.primary_image_file_id
        - $ref: '#/components/parameters/rowFilter.work_requests.asset_image_file_id'
        - $ref: '#/components/parameters/rowFilter.work_requests.custom_fields'
        - $ref: >-
            #/components/parameters/rowFilter.work_requests.pending_approval_request_id
        - $ref: '#/components/parameters/rowFilter.work_requests.row_version'
        - $ref: '#/components/parameters/rowFilter.work_requests.created_at'
        - $ref: '#/components/parameters/rowFilter.work_requests.created_by_id'
        - $ref: '#/components/parameters/rowFilter.work_requests.created_by_name'
        - $ref: '#/components/parameters/rowFilter.work_requests.created_source'
        - $ref: '#/components/parameters/rowFilter.work_requests.updated_at'
        - $ref: '#/components/parameters/rowFilter.work_requests.updated_by_id'
        - $ref: '#/components/parameters/rowFilter.work_requests.updated_by_name'
        - $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/work_requests'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/work_requests'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/work_requests'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/work_requests'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.work_requests.id:
      in: query
      name: id
      required: false
      schema:
        type: string
    rowFilter.work_requests.request_number:
      in: query
      name: request_number
      required: false
      schema:
        type: string
    rowFilter.work_requests.summary:
      in: query
      name: summary
      required: false
      schema:
        type: string
    rowFilter.work_requests.description:
      in: query
      name: description
      required: false
      schema:
        type: string
    rowFilter.work_requests.status:
      in: query
      name: status
      required: false
      schema:
        type: string
    rowFilter.work_requests.status_label:
      in: query
      name: status_label
      required: false
      schema:
        type: string
    rowFilter.work_requests.status_category:
      in: query
      name: status_category
      required: false
      schema:
        type: string
    rowFilter.work_requests.state_model_version_id:
      in: query
      name: state_model_version_id
      required: false
      schema:
        type: string
    rowFilter.work_requests.status_is_terminal:
      in: query
      name: status_is_terminal
      required: false
      schema:
        type: string
    rowFilter.work_requests.source:
      in: query
      name: source
      required: false
      schema:
        type: string
    rowFilter.work_requests.source_name:
      in: query
      name: source_name
      required: false
      schema:
        type: string
    rowFilter.work_requests.category:
      in: query
      name: category
      required: false
      schema:
        type: string
    rowFilter.work_requests.work_request_category_id:
      in: query
      name: work_request_category_id
      required: false
      schema:
        type: string
    rowFilter.work_requests.category_name:
      in: query
      name: category_name
      required: false
      schema:
        type: string
    rowFilter.work_requests.reported_severity:
      in: query
      name: reported_severity
      required: false
      schema:
        type: string
    rowFilter.work_requests.severity_rank:
      in: query
      name: severity_rank
      required: false
      schema:
        type: string
    rowFilter.work_requests.suggested_work_order_priority_id:
      in: query
      name: suggested_work_order_priority_id
      required: false
      schema:
        type: string
    rowFilter.work_requests.suggested_priority_code:
      in: query
      name: suggested_priority_code
      required: false
      schema:
        type: string
    rowFilter.work_requests.suggested_priority_name:
      in: query
      name: suggested_priority_name
      required: false
      schema:
        type: string
    rowFilter.work_requests.asset_id:
      in: query
      name: asset_id
      required: false
      schema:
        type: string
    rowFilter.work_requests.asset_number:
      in: query
      name: asset_number
      required: false
      schema:
        type: string
    rowFilter.work_requests.asset_name:
      in: query
      name: asset_name
      required: false
      schema:
        type: string
    rowFilter.work_requests.site_id:
      in: query
      name: site_id
      required: false
      schema:
        type: string
    rowFilter.work_requests.location_id:
      in: query
      name: location_id
      required: false
      schema:
        type: string
    rowFilter.work_requests.requester_name:
      in: query
      name: requester_name
      required: false
      schema:
        type: string
    rowFilter.work_requests.requested_by_user_id:
      in: query
      name: requested_by_user_id
      required: false
      schema:
        type: string
    rowFilter.work_requests.discovered_at:
      in: query
      name: discovered_at
      required: false
      schema:
        type: string
    rowFilter.work_requests.triaged_at:
      in: query
      name: triaged_at
      required: false
      schema:
        type: string
    rowFilter.work_requests.rejection_reason:
      in: query
      name: rejection_reason
      required: false
      schema:
        type: string
    rowFilter.work_requests.duplicate_of_work_request_id:
      in: query
      name: duplicate_of_work_request_id
      required: false
      schema:
        type: string
    rowFilter.work_requests.assigned_worker_id:
      in: query
      name: assigned_worker_id
      required: false
      schema:
        type: string
    rowFilter.work_requests.assigned_worker_name:
      in: query
      name: assigned_worker_name
      required: false
      schema:
        type: string
    rowFilter.work_requests.assigned_team_id:
      in: query
      name: assigned_team_id
      required: false
      schema:
        type: string
    rowFilter.work_requests.assigned_team_name:
      in: query
      name: assigned_team_name
      required: false
      schema:
        type: string
    rowFilter.work_requests.assigned_vendor_id:
      in: query
      name: assigned_vendor_id
      required: false
      schema:
        type: string
    rowFilter.work_requests.assigned_vendor_name:
      in: query
      name: assigned_vendor_name
      required: false
      schema:
        type: string
    rowFilter.work_requests.cc:
      in: query
      name: cc
      required: false
      schema:
        type: string
    rowFilter.work_requests.work_order_id:
      in: query
      name: work_order_id
      required: false
      schema:
        type: string
    rowFilter.work_requests.work_order_number:
      in: query
      name: work_order_number
      required: false
      schema:
        type: string
    rowFilter.work_requests.primary_image_file_id:
      in: query
      name: primary_image_file_id
      required: false
      schema:
        type: string
    rowFilter.work_requests.asset_image_file_id:
      in: query
      name: asset_image_file_id
      required: false
      schema:
        type: string
    rowFilter.work_requests.custom_fields:
      in: query
      name: custom_fields
      required: false
      schema:
        type: string
    rowFilter.work_requests.pending_approval_request_id:
      in: query
      name: pending_approval_request_id
      required: false
      schema:
        type: string
    rowFilter.work_requests.row_version:
      in: query
      name: row_version
      required: false
      schema:
        type: string
    rowFilter.work_requests.created_at:
      in: query
      name: created_at
      required: false
      schema:
        type: string
    rowFilter.work_requests.created_by_id:
      in: query
      name: created_by_id
      required: false
      schema:
        type: string
    rowFilter.work_requests.created_by_name:
      in: query
      name: created_by_name
      required: false
      schema:
        type: string
    rowFilter.work_requests.created_source:
      in: query
      name: created_source
      required: false
      schema:
        type: string
    rowFilter.work_requests.updated_at:
      in: query
      name: updated_at
      required: false
      schema:
        type: string
    rowFilter.work_requests.updated_by_id:
      in: query
      name: updated_by_id
      required: false
      schema:
        type: string
    rowFilter.work_requests.updated_by_name:
      in: query
      name: updated_by_name
      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:
    work_requests:
      description: >-
        The request queue, before anything has become a work order.


        What was reported and by whom, the triage decision, and the work order
        it turned into. A request

        that named a duplicate keeps the id of the one it duplicates.
      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_image_file_id:
          format: uuid
          type: string
        asset_name:
          format: character varying
          maxLength: 250
          type: string
        asset_number:
          format: character varying
          maxLength: 80
          type: string
        assigned_team_id:
          description: |-
            Note:
            This is a Foreign Key to `teams.id`.<fk table='teams' column='id'/>
          format: uuid
          type: string
        assigned_team_name:
          format: character varying
          maxLength: 200
          type: string
        assigned_vendor_id:
          description: >-
            Note:

            This is a Foreign Key to `assignable_vendors.id`.<fk
            table='assignable_vendors' column='id'/>
          format: uuid
          type: string
        assigned_vendor_name:
          format: character varying
          maxLength: 200
          type: string
        assigned_worker_id:
          description: >-
            Note:

            This is a Foreign Key to `assignable_workers.id`.<fk
            table='assignable_workers' column='id'/>
          format: uuid
          type: string
        assigned_worker_name:
          format: character varying
          maxLength: 200
          type: string
        category:
          format: character varying
          maxLength: 60
          type: string
        category_name:
          format: character varying
          maxLength: 200
          type: string
        cc:
          format: jsonb
        created_at:
          format: timestamp with time zone
          type: string
        created_by_id:
          description: >-
            Note:

            This is a Foreign Key to `capex_invite_candidates.id`.<fk
            table='capex_invite_candidates' column='id'/>
          format: uuid
          type: string
        created_by_name:
          format: character varying
          maxLength: 200
          type: string
        created_source:
          format: text
          type: string
        custom_fields:
          format: jsonb
        description:
          format: text
          type: string
        discovered_at:
          format: timestamp with time zone
          type: string
        duplicate_of_work_request_id:
          description: >-
            Note:

            This is a Foreign Key to `work_requests.id`.<fk
            table='work_requests' column='id'/>
          format: uuid
          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
        pending_approval_request_id:
          format: uuid
          type: string
        primary_image_file_id:
          format: uuid
          type: string
        rejection_reason:
          format: text
          type: string
        reported_severity:
          format: character varying
          maxLength: 20
          type: string
        request_number:
          format: character varying
          maxLength: 60
          type: string
        requested_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
        requester_name:
          format: character varying
          maxLength: 200
          type: string
        row_version:
          format: bigint
          type: integer
        severity_rank:
          format: integer
          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
        source:
          format: character varying
          maxLength: 40
          type: string
        source_name:
          format: character varying
          maxLength: 150
          type: string
        state_model_version_id:
          description: >-
            Note:

            This is a Foreign Key to `state_models.version_id`.<fk
            table='state_models' column='version_id'/>
          format: uuid
          type: string
        status:
          format: character varying
          maxLength: 60
          type: string
        status_category:
          format: character varying
          maxLength: 20
          type: string
        status_is_terminal:
          format: boolean
          type: boolean
        status_label:
          format: text
          type: string
        suggested_priority_code:
          format: character varying
          maxLength: 40
          type: string
        suggested_priority_name:
          format: character varying
          maxLength: 150
          type: string
        suggested_work_order_priority_id:
          description: >-
            Note:

            This is a Foreign Key to
            `request_severity_priorities.work_order_priority_id`.<fk
            table='request_severity_priorities'
            column='work_order_priority_id'/>
          format: uuid
          type: string
        summary:
          format: character varying
          maxLength: 250
          type: string
        triaged_at:
          format: timestamp with time zone
          type: string
        updated_at:
          format: timestamp with time zone
          type: string
        updated_by_id:
          description: >-
            Note:

            This is a Foreign Key to `capex_invite_candidates.id`.<fk
            table='capex_invite_candidates' column='id'/>
          format: uuid
          type: string
        updated_by_name:
          format: character varying
          maxLength: 200
          type: string
        work_order_id:
          format: uuid
          type: string
        work_order_number:
          format: character varying
          maxLength: 60
          type: string
        work_request_category_id:
          description: >-
            Note:

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

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.