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

# Everything waiting on the caller to decide, and how long it has been waiting. may_revise and may_rollback say whether…

> Everything waiting on the caller to decide, and how long it has been waiting. may_revise and may_rollback say whether the step may be sent to its initiator for revision or rolled back to the level before, and a request that came back from a revision carries what was asked for and what its initiator said when they sent it back. rolled_back_to_me says whether the request was rolled back to this step in particular, which a step waiting beside it on a parallel branch was not; sent_back_reason, sent_back_by and sent_back_for are that Rollback's note, who sent it and under whose authority, and are empty on every other step. record_status, record_due_at and record_details describe the record the request is about rather than the request: its own status, when it is due where its kind has a due date, and an ordered array of {key, value} facts that tell it from others of its kind — category and serial number for an asset, type and priority for a work order, from and to for a transfer. For a record that does not exist yet they are read from what the request proposes. record_details_text is the same values as one line.



## OpenAPI

````yaml /api-reference/openapi.json get /my_approvals
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: My work
  - name: Sites and locations
  - name: Assets
  - name: Asset lifecycle
  - name: Asset components
  - name: Work lifecycle
  - name: Work order execution
  - name: Work sequencing
  - name: Maintenance
  - name: Inspections
  - name: Checklists
  - name: Verification
  - name: Self verification
  - name: Inventory
  - name: Inventory detail
  - name: Parts demand
  - name: Procurement
  - name: Catalogue
  - name: Vendors and contracts
  - name: Contracts
  - name: Amendments
  - name: Vendor spend forecast
  - name: Workforce
  - name: Workforce detail
  - name: Capacity
  - name: Dispatch
  - name: Shutdown
  - name: Permits
  - name: Tools
  - name: Tools on jobs
  - name: Bookings
  - name: Booking bills
  - name: Calibration history
  - name: Reliability
  - name: Sensors and meters
  - name: Readers
  - name: Trackers
  - name: Real-time location
  - name: Feeds
  - name: Energy
  - name: IT assets
  - name: IT asset software
  - name: IT asset topology
  - name: Warranty lookups
  - name: Map
  - name: Floor plans
  - name: Labels
  - name: Lost and found
  - name: Visitors
  - name: Root cause analysis
  - name: Costing
  - name: Finance
  - name: E-way bills
  - name: E-way bill filing
  - name: Budgets
  - name: Capex plans
  - name: FF&E plans
  - name: Documents
  - name: Document control
  - name: Document folders
  - name: Document tree
  - name: Knowledge
  - name: Reports
  - name: Dashboards
  - name: Extracts
  - name: Data exports
  - name: Audit center
  - name: Audit feed
  - name: Activity
  - name: Conversations
  - name: Notifications
  - name: Date reminders
  - name: Channels
  - name: Search
  - name: Copilot
  - name: Import
  - name: Bulk jobs
  - name: File exchange
  - name: Filing exceptions
  - name: Files
  - name: Sync
  - name: Support
  - name: API keys
  - name: Webhooks
  - name: MCP connections
  - name: MCP sign-in
  - name: SCIM provisioning
  - name: Directory sync
  - name: Security streams
  - name: Clarity
  - name: Single sign-on
  - name: Two-factor sign-in
  - name: Admin
  - name: Access
  - name: Lookups
  - name: Read models
  - name: Reference
  - name: Reference columns
  - name: Reference entry
  - name: List views
  - name: Mapping
  - name: Numbering
  - name: Branding
  - name: Custom fields
  - name: Form studio
  - name: Workflows
  - name: Workflow studio
  - name: Rules
  - name: Statuses and transitions
  - name: Currencies and locales
  - name: Today
  - 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: Setup
  - name: Features
  - name: Billing
  - name: Licence
  - name: Welcome
  - name: Tray
  - name: Tenant switch
  - name: Release
  - name: Telegram
  - name: Whatsapp
  - name: Inbound mail
  - name: Platform
externalDocs:
  description: PostgREST Documentation
  url: https://postgrest.org/en/v12/references/api.html
paths:
  /my_approvals:
    get:
      tags:
        - Workflows
      summary: >-
        Everything waiting on the caller to decide, and how long it has been
        waiting. may_revise and may_rollback say whether…
      description: >-
        Everything waiting on the caller to decide, and how long it has been
        waiting. may_revise and may_rollback say whether the step may be sent to
        its initiator for revision or rolled back to the level before, and a
        request that came back from a revision carries what was asked for and
        what its initiator said when they sent it back. rolled_back_to_me says
        whether the request was rolled back to this step in particular, which a
        step waiting beside it on a parallel branch was not; sent_back_reason,
        sent_back_by and sent_back_for are that Rollback's note, who sent it and
        under whose authority, and are empty on every other step. record_status,
        record_due_at and record_details describe the record the request is
        about rather than the request: its own status, when it is due where its
        kind has a due date, and an ordered array of {key, value} facts that
        tell it from others of its kind — category and serial number for an
        asset, type and priority for a work order, from and to for a transfer.
        For a record that does not exist yet they are read from what the request
        proposes. record_details_text is the same values as one line.
      parameters:
        - $ref: '#/components/parameters/rowFilter.my_approvals.source'
        - $ref: '#/components/parameters/rowFilter.my_approvals.task_id'
        - $ref: '#/components/parameters/rowFilter.my_approvals.workflow_instance_id'
        - $ref: '#/components/parameters/rowFilter.my_approvals.entity_type'
        - $ref: '#/components/parameters/rowFilter.my_approvals.entity_label'
        - $ref: '#/components/parameters/rowFilter.my_approvals.entity_id'
        - $ref: '#/components/parameters/rowFilter.my_approvals.action'
        - $ref: '#/components/parameters/rowFilter.my_approvals.summary'
        - $ref: '#/components/parameters/rowFilter.my_approvals.site_id'
        - $ref: '#/components/parameters/rowFilter.my_approvals.site_name'
        - $ref: '#/components/parameters/rowFilter.my_approvals.location_name'
        - $ref: '#/components/parameters/rowFilter.my_approvals.location_path'
        - $ref: '#/components/parameters/rowFilter.my_approvals.category_path'
        - $ref: '#/components/parameters/rowFilter.my_approvals.business_unit_name'
        - $ref: '#/components/parameters/rowFilter.my_approvals.requested_by_user_id'
        - $ref: '#/components/parameters/rowFilter.my_approvals.requested_by'
        - $ref: '#/components/parameters/rowFilter.my_approvals.requested_at'
        - $ref: '#/components/parameters/rowFilter.my_approvals.author_user_id'
        - $ref: '#/components/parameters/rowFilter.my_approvals.author'
        - $ref: '#/components/parameters/rowFilter.my_approvals.is_own_request'
        - $ref: '#/components/parameters/rowFilter.my_approvals.step_label'
        - $ref: '#/components/parameters/rowFilter.my_approvals.opened_at'
        - $ref: '#/components/parameters/rowFilter.my_approvals.due_at'
        - $ref: '#/components/parameters/rowFilter.my_approvals.overdue'
        - $ref: '#/components/parameters/rowFilter.my_approvals.is_escalation'
        - $ref: >-
            #/components/parameters/rowFilter.my_approvals.acknowledgements_outstanding
        - $ref: '#/components/parameters/rowFilter.my_approvals.fields_unanswered'
        - $ref: '#/components/parameters/rowFilter.my_approvals.decision_remarks'
        - $ref: '#/components/parameters/rowFilter.my_approvals.decision_attachment'
        - $ref: '#/components/parameters/rowFilter.my_approvals.decision_files_given'
        - $ref: '#/components/parameters/rowFilter.my_approvals.send_back_to'
        - $ref: '#/components/parameters/rowFilter.my_approvals.may_send_back'
        - $ref: '#/components/parameters/rowFilter.my_approvals.may_rollback'
        - $ref: '#/components/parameters/rowFilter.my_approvals.may_revise'
        - $ref: '#/components/parameters/rowFilter.my_approvals.display_status'
        - $ref: '#/components/parameters/rowFilter.my_approvals.revision_reason'
        - $ref: '#/components/parameters/rowFilter.my_approvals.revision_requested_by'
        - $ref: '#/components/parameters/rowFilter.my_approvals.revision_requested_at'
        - $ref: '#/components/parameters/rowFilter.my_approvals.resubmit_note'
        - $ref: '#/components/parameters/rowFilter.my_approvals.resubmitted_at'
        - $ref: '#/components/parameters/rowFilter.my_approvals.rolled_back_to_me'
        - $ref: '#/components/parameters/rowFilter.my_approvals.sent_back_reason'
        - $ref: '#/components/parameters/rowFilter.my_approvals.sent_back_by'
        - $ref: '#/components/parameters/rowFilter.my_approvals.sent_back_for'
        - $ref: '#/components/parameters/rowFilter.my_approvals.workflow_name'
        - $ref: '#/components/parameters/rowFilter.my_approvals.minutes_waiting'
        - $ref: '#/components/parameters/rowFilter.my_approvals.record_status'
        - $ref: '#/components/parameters/rowFilter.my_approvals.record_due_at'
        - $ref: '#/components/parameters/rowFilter.my_approvals.record_details'
        - $ref: '#/components/parameters/rowFilter.my_approvals.record_details_text'
        - $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/my_approvals'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/my_approvals'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/my_approvals'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/my_approvals'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.my_approvals.source:
      in: query
      name: source
      required: false
      schema:
        type: string
    rowFilter.my_approvals.task_id:
      in: query
      name: task_id
      required: false
      schema:
        type: string
    rowFilter.my_approvals.workflow_instance_id:
      in: query
      name: workflow_instance_id
      required: false
      schema:
        type: string
    rowFilter.my_approvals.entity_type:
      in: query
      name: entity_type
      required: false
      schema:
        type: string
    rowFilter.my_approvals.entity_label:
      in: query
      name: entity_label
      required: false
      schema:
        type: string
    rowFilter.my_approvals.entity_id:
      in: query
      name: entity_id
      required: false
      schema:
        type: string
    rowFilter.my_approvals.action:
      in: query
      name: action
      required: false
      schema:
        type: string
    rowFilter.my_approvals.summary:
      in: query
      name: summary
      required: false
      schema:
        type: string
    rowFilter.my_approvals.site_id:
      in: query
      name: site_id
      required: false
      schema:
        type: string
    rowFilter.my_approvals.site_name:
      in: query
      name: site_name
      required: false
      schema:
        type: string
    rowFilter.my_approvals.location_name:
      in: query
      name: location_name
      required: false
      schema:
        type: string
    rowFilter.my_approvals.location_path:
      in: query
      name: location_path
      required: false
      schema:
        type: string
    rowFilter.my_approvals.category_path:
      in: query
      name: category_path
      required: false
      schema:
        type: string
    rowFilter.my_approvals.business_unit_name:
      in: query
      name: business_unit_name
      required: false
      schema:
        type: string
    rowFilter.my_approvals.requested_by_user_id:
      in: query
      name: requested_by_user_id
      required: false
      schema:
        type: string
    rowFilter.my_approvals.requested_by:
      in: query
      name: requested_by
      required: false
      schema:
        type: string
    rowFilter.my_approvals.requested_at:
      in: query
      name: requested_at
      required: false
      schema:
        type: string
    rowFilter.my_approvals.author_user_id:
      in: query
      name: author_user_id
      required: false
      schema:
        type: string
    rowFilter.my_approvals.author:
      in: query
      name: author
      required: false
      schema:
        type: string
    rowFilter.my_approvals.is_own_request:
      in: query
      name: is_own_request
      required: false
      schema:
        type: string
    rowFilter.my_approvals.step_label:
      in: query
      name: step_label
      required: false
      schema:
        type: string
    rowFilter.my_approvals.opened_at:
      in: query
      name: opened_at
      required: false
      schema:
        type: string
    rowFilter.my_approvals.due_at:
      in: query
      name: due_at
      required: false
      schema:
        type: string
    rowFilter.my_approvals.overdue:
      in: query
      name: overdue
      required: false
      schema:
        type: string
    rowFilter.my_approvals.is_escalation:
      in: query
      name: is_escalation
      required: false
      schema:
        type: string
    rowFilter.my_approvals.acknowledgements_outstanding:
      in: query
      name: acknowledgements_outstanding
      required: false
      schema:
        type: string
    rowFilter.my_approvals.fields_unanswered:
      in: query
      name: fields_unanswered
      required: false
      schema:
        type: string
    rowFilter.my_approvals.decision_remarks:
      in: query
      name: decision_remarks
      required: false
      schema:
        type: string
    rowFilter.my_approvals.decision_attachment:
      in: query
      name: decision_attachment
      required: false
      schema:
        type: string
    rowFilter.my_approvals.decision_files_given:
      in: query
      name: decision_files_given
      required: false
      schema:
        type: string
    rowFilter.my_approvals.send_back_to:
      in: query
      name: send_back_to
      required: false
      schema:
        type: string
    rowFilter.my_approvals.may_send_back:
      in: query
      name: may_send_back
      required: false
      schema:
        type: string
    rowFilter.my_approvals.may_rollback:
      in: query
      name: may_rollback
      required: false
      schema:
        type: string
    rowFilter.my_approvals.may_revise:
      in: query
      name: may_revise
      required: false
      schema:
        type: string
    rowFilter.my_approvals.display_status:
      in: query
      name: display_status
      required: false
      schema:
        type: string
    rowFilter.my_approvals.revision_reason:
      in: query
      name: revision_reason
      required: false
      schema:
        type: string
    rowFilter.my_approvals.revision_requested_by:
      in: query
      name: revision_requested_by
      required: false
      schema:
        type: string
    rowFilter.my_approvals.revision_requested_at:
      in: query
      name: revision_requested_at
      required: false
      schema:
        type: string
    rowFilter.my_approvals.resubmit_note:
      in: query
      name: resubmit_note
      required: false
      schema:
        type: string
    rowFilter.my_approvals.resubmitted_at:
      in: query
      name: resubmitted_at
      required: false
      schema:
        type: string
    rowFilter.my_approvals.rolled_back_to_me:
      in: query
      name: rolled_back_to_me
      required: false
      schema:
        type: string
    rowFilter.my_approvals.sent_back_reason:
      in: query
      name: sent_back_reason
      required: false
      schema:
        type: string
    rowFilter.my_approvals.sent_back_by:
      in: query
      name: sent_back_by
      required: false
      schema:
        type: string
    rowFilter.my_approvals.sent_back_for:
      in: query
      name: sent_back_for
      required: false
      schema:
        type: string
    rowFilter.my_approvals.workflow_name:
      in: query
      name: workflow_name
      required: false
      schema:
        type: string
    rowFilter.my_approvals.minutes_waiting:
      in: query
      name: minutes_waiting
      required: false
      schema:
        type: string
    rowFilter.my_approvals.record_status:
      in: query
      name: record_status
      required: false
      schema:
        type: string
    rowFilter.my_approvals.record_due_at:
      in: query
      name: record_due_at
      required: false
      schema:
        type: string
    rowFilter.my_approvals.record_details:
      in: query
      name: record_details
      required: false
      schema:
        type: string
    rowFilter.my_approvals.record_details_text:
      in: query
      name: record_details_text
      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:
    my_approvals:
      description: >-
        Everything waiting on the caller to decide, and how long it has been
        waiting. may_revise and may_rollback say whether the step may be sent to
        its initiator for revision or rolled back to the level before, and a
        request that came back from a revision carries what was asked for and
        what its initiator said when they sent it back. rolled_back_to_me says
        whether the request was rolled back to this step in particular, which a
        step waiting beside it on a parallel branch was not; sent_back_reason,
        sent_back_by and sent_back_for are that Rollback's note, who sent it and
        under whose authority, and are empty on every other step. record_status,
        record_due_at and record_details describe the record the request is
        about rather than the request: its own status, when it is due where its
        kind has a due date, and an ordered array of {key, value} facts that
        tell it from others of its kind — category and serial number for an
        asset, type and priority for a work order, from and to for a transfer.
        For a record that does not exist yet they are read from what the request
        proposes. record_details_text is the same values as one line.
      properties:
        acknowledgements_outstanding:
          format: integer
          type: integer
        action:
          format: character varying
          maxLength: 20
          type: string
        author:
          format: character varying
          maxLength: 200
          type: string
        author_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
        business_unit_name:
          format: character varying
          maxLength: 200
          type: string
        category_path:
          format: text
          type: string
        decision_attachment:
          format: character varying
          maxLength: 10
          type: string
        decision_files_given:
          format: integer
          type: integer
        decision_remarks:
          format: character varying
          maxLength: 10
          type: string
        display_status:
          format: text
          type: string
        due_at:
          format: timestamp with time zone
          type: string
        entity_id:
          format: uuid
          type: string
        entity_label:
          format: text
          type: string
        entity_type:
          description: >-
            Note:

            This is a Foreign Key to `custom_field_entities.entity`.<fk
            table='custom_field_entities' column='entity'/>
          format: character varying
          maxLength: 80
          type: string
        fields_unanswered:
          format: integer
          type: integer
        is_escalation:
          format: boolean
          type: boolean
        is_own_request:
          format: boolean
          type: boolean
        location_name:
          format: character varying
          maxLength: 200
          type: string
        location_path:
          format: text
          type: string
        may_revise:
          format: boolean
          type: boolean
        may_rollback:
          format: boolean
          type: boolean
        may_send_back:
          format: boolean
          type: boolean
        minutes_waiting:
          format: integer
          type: integer
        opened_at:
          format: timestamp with time zone
          type: string
        overdue:
          format: boolean
          type: boolean
        record_details:
          format: jsonb
        record_details_text:
          format: text
          type: string
        record_due_at:
          format: timestamp with time zone
          type: string
        record_status:
          format: text
          type: string
        requested_at:
          format: timestamp with time zone
          type: string
        requested_by:
          format: character varying
          maxLength: 200
          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
        resubmit_note:
          format: text
          type: string
        resubmitted_at:
          format: timestamp with time zone
          type: string
        revision_reason:
          format: text
          type: string
        revision_requested_at:
          format: timestamp with time zone
          type: string
        revision_requested_by:
          format: character varying
          maxLength: 200
          type: string
        rolled_back_to_me:
          format: boolean
          type: boolean
        send_back_to:
          format: text
          type: string
        sent_back_by:
          format: character varying
          maxLength: 200
          type: string
        sent_back_for:
          format: text
          type: string
        sent_back_reason:
          format: text
          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
        source:
          format: text
          type: string
        step_label:
          format: character varying
          maxLength: 150
          type: string
        summary:
          format: text
          type: string
        task_id:
          description: |-
            Note:
            This is a Primary Key.<pk/>
          format: uuid
          type: string
        workflow_instance_id:
          description: >-
            Note:

            This is a Foreign Key to
            `budget_amendments.awaiting_instance_id`.<fk
            table='budget_amendments' column='awaiting_instance_id'/>
          format: uuid
          type: string
        workflow_name:
          format: character varying
          maxLength: 150
          type: string
      type: object

````

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