> ## 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 a booking holds — assets, tools, parts, places and people — in one list, each with

>      the window that line holds rather than the header's, and the header's number to link by.
     Quantity is set on part lines and null on the rest, which hold a slot rather than an amount.



## OpenAPI

````yaml /api-reference/openapi.json get /booking_lines
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:
  /booking_lines:
    get:
      tags:
        - Bookings
      summary: >-
        Everything a booking holds — assets, tools, parts, places and people —
        in one list, each with
      description: |2-
             the window that line holds rather than the header's, and the header's number to link by.
             Quantity is set on part lines and null on the rest, which hold a slot rather than an amount.
      parameters:
        - $ref: '#/components/parameters/rowFilter.booking_lines.line_kind'
        - $ref: '#/components/parameters/rowFilter.booking_lines.id'
        - $ref: '#/components/parameters/rowFilter.booking_lines.booking_id'
        - $ref: '#/components/parameters/rowFilter.booking_lines.booking_number'
        - $ref: '#/components/parameters/rowFilter.booking_lines.booking_title'
        - $ref: '#/components/parameters/rowFilter.booking_lines.resource_id'
        - $ref: '#/components/parameters/rowFilter.booking_lines.reference'
        - $ref: '#/components/parameters/rowFilter.booking_lines.name'
        - $ref: '#/components/parameters/rowFilter.booking_lines.start_at'
        - $ref: '#/components/parameters/rowFilter.booking_lines.end_at'
        - $ref: '#/components/parameters/rowFilter.booking_lines.status'
        - $ref: '#/components/parameters/rowFilter.booking_lines.purpose'
        - $ref: >-
            #/components/parameters/rowFilter.booking_lines.buffer_before_minutes
        - $ref: '#/components/parameters/rowFilter.booking_lines.buffer_after_minutes'
        - $ref: '#/components/parameters/rowFilter.booking_lines.quantity'
        - $ref: '#/components/parameters/rowFilter.booking_lines.quantity_issued'
        - $ref: '#/components/parameters/rowFilter.booking_lines.cancelled_at'
        - $ref: '#/components/parameters/rowFilter.booking_lines.cancelled_reason'
        - $ref: '#/components/parameters/rowFilter.booking_lines.row_version'
        - $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/booking_lines'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/booking_lines'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/booking_lines'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/booking_lines'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.booking_lines.line_kind:
      in: query
      name: line_kind
      required: false
      schema:
        type: string
    rowFilter.booking_lines.id:
      in: query
      name: id
      required: false
      schema:
        type: string
    rowFilter.booking_lines.booking_id:
      in: query
      name: booking_id
      required: false
      schema:
        type: string
    rowFilter.booking_lines.booking_number:
      in: query
      name: booking_number
      required: false
      schema:
        type: string
    rowFilter.booking_lines.booking_title:
      in: query
      name: booking_title
      required: false
      schema:
        type: string
    rowFilter.booking_lines.resource_id:
      in: query
      name: resource_id
      required: false
      schema:
        type: string
    rowFilter.booking_lines.reference:
      in: query
      name: reference
      required: false
      schema:
        type: string
    rowFilter.booking_lines.name:
      in: query
      name: name
      required: false
      schema:
        type: string
    rowFilter.booking_lines.start_at:
      in: query
      name: start_at
      required: false
      schema:
        type: string
    rowFilter.booking_lines.end_at:
      in: query
      name: end_at
      required: false
      schema:
        type: string
    rowFilter.booking_lines.status:
      in: query
      name: status
      required: false
      schema:
        type: string
    rowFilter.booking_lines.purpose:
      in: query
      name: purpose
      required: false
      schema:
        type: string
    rowFilter.booking_lines.buffer_before_minutes:
      in: query
      name: buffer_before_minutes
      required: false
      schema:
        type: string
    rowFilter.booking_lines.buffer_after_minutes:
      in: query
      name: buffer_after_minutes
      required: false
      schema:
        type: string
    rowFilter.booking_lines.quantity:
      in: query
      name: quantity
      required: false
      schema:
        type: string
    rowFilter.booking_lines.quantity_issued:
      in: query
      name: quantity_issued
      required: false
      schema:
        type: string
    rowFilter.booking_lines.cancelled_at:
      in: query
      name: cancelled_at
      required: false
      schema:
        type: string
    rowFilter.booking_lines.cancelled_reason:
      in: query
      name: cancelled_reason
      required: false
      schema:
        type: string
    rowFilter.booking_lines.row_version:
      in: query
      name: row_version
      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:
    booking_lines:
      description: >-
        Everything a booking holds — assets, tools, parts, places and people —
        in one list, each with
             the window that line holds rather than the header's, and the header's number to link by.
             Quantity is set on part lines and null on the rest, which hold a slot rather than an amount.
      properties:
        booking_id:
          format: uuid
          type: string
        booking_number:
          format: character varying
          maxLength: 60
          type: string
        booking_title:
          format: character varying
          maxLength: 250
          type: string
        buffer_after_minutes:
          format: integer
          type: integer
        buffer_before_minutes:
          format: integer
          type: integer
        cancelled_at:
          format: timestamp with time zone
          type: string
        cancelled_reason:
          format: character varying
          maxLength: 250
          type: string
        end_at:
          format: timestamp with time zone
          type: string
        id:
          format: uuid
          type: string
        line_kind:
          format: text
          type: string
        name:
          format: text
          type: string
        purpose:
          format: character varying
          type: string
        quantity:
          format: numeric
          type: number
        quantity_issued:
          format: numeric
          type: number
        reference:
          format: text
          type: string
        resource_id:
          format: uuid
          type: string
        row_version:
          format: bigint
          type: integer
        start_at:
          format: timestamp with time zone
          type: string
        status:
          format: character varying
          type: string
      type: object

````