> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# List purchase proposals

> Network-level purchase proposals with a suggested supplier. Read-only; `planning` in the answer says whether it is the latest stored result or one made for this request's settings. The same proposals are listed as proposed recommendations.

Key scope: read (or execute). Answers the list object (object, data, has_more, next_cursor); the same rows stay under `proposals`, deprecated.



## OpenAPI

````yaml /openapi.json get /v1/inventory/purchase_proposals
openapi: 3.1.0
info:
  title: InsightChain API
  version: 2.0.0
  description: 'The InsightChain API. Send your key as `Authorization: Bearer <key>`.'
  contact:
    name: InsightChain
    url: https://insightchain.ai/docs
  license:
    name: Proprietary
    url: https://insightchain.ai/terms
servers:
  - url: https://api.insightchain.ai
security: []
tags:
  - name: Data ingestion
  - name: Tariff check
  - name: Landed cost
  - name: Import taxes
  - name: Customs documents
  - name: Denied party screening
  - name: Location risk
  - name: Tariff impact and trade data
  - name: Recommendations
  - name: Orders and approval
  - name: Explanations
  - name: Alerts
  - name: Inventory
  - name: Forecast check
  - name: Disruptions
  - name: Product compliance
  - name: Product recalls
  - name: Product passports
  - name: Webhooks
  - name: Connections
  - name: Sync runs
  - name: API keys
  - name: Usage
  - name: Request log
  - name: Agent (MCP) server
paths:
  /v1/inventory/purchase_proposals:
    get:
      tags:
        - Inventory
      summary: List purchase proposals
      description: >-
        Network-level purchase proposals with a suggested supplier. Read-only;
        `planning` in the answer says whether it is the latest stored result or
        one made for this request's settings. The same proposals are listed as
        proposed recommendations.


        Key scope: read (or execute). Answers the list object (object, data,
        has_more, next_cursor); the same rows stay under `proposals`,
        deprecated.
      operationId: listPurchaseProposals
      parameters:
        - name: window_days
          in: query
          required: false
          schema:
            type: integer
            minimum: 30
            maximum: 365
            default: 90
          description: Demand history window
        - name: service_level
          in: query
          required: false
          schema:
            type: number
            minimum: 0.5
            maximum: 0.999
          description: >-
            Applies to every item of this request; left out, each item and
            location plans on its own value in force (default 0.95)
        - name: item
          in: query
          required: false
          schema:
            type: string
            maxLength: 50
          description: Narrow to one item (external id)
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 100
        - name: cursor
          in: query
          required: false
          schema:
            type: string
            maxLength: 200
          description: >-
            next_cursor of the previous page. Opaque; valid only with the same
            filters
      responses:
        '200':
          description: OK
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-RateLimit-Limit-Day:
              $ref: '#/components/headers/X-RateLimit-Limit-Day'
            X-RateLimit-Remaining-Day:
              $ref: '#/components/headers/X-RateLimit-Remaining-Day'
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
            X-Client-Request-ID:
              $ref: '#/components/headers/X-Client-Request-ID'
            X-InsightChain-Sandbox:
              $ref: '#/components/headers/X-InsightChain-Sandbox'
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    const: list
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/InventoryPurchaseProposal'
                  has_more:
                    type: boolean
                    description: Whether a further page exists
                  next_cursor:
                    type:
                      - string
                      - 'null'
                    description: Send as `cursor` for the next page; null on the last page
                  proposals:
                    type: array
                    items:
                      $ref: '#/components/schemas/InventoryPurchaseProposal'
                    deprecated: true
                    description: 'Deprecated: the same rows as `data`'
                  window_days:
                    type: integer
                    description: Demand history window used
                  service_level:
                    type: number
                    description: >-
                      The request's service level, else the account-wide value
                      in force
                  service_level_source:
                    type: string
                    enum:
                      - request
                      - default
                      - observed
                      - stated
                  data_as_of:
                    type:
                      - string
                      - 'null'
                    format: date-time
                    description: >-
                      When the organization's data was last received; null
                      before the first sync
                  demand_source:
                    $ref: '#/components/schemas/DemandSource'
                  stale:
                    type: boolean
                    description: >-
                      True when the data is more than 24 hours old, or was never
                      received
                  count:
                    type: integer
                    description: Rows in this page
                  total:
                    type: integer
                    description: >-
                      Rows in the whole list, before paging; absent when the
                      answer is read from stored results
                  rules:
                    type: object
                    properties:
                      proposals_on_observed_lead_time:
                        type: integer
                        description: >-
                          Proposals planned on a lead time observed from
                          receipts
                    required:
                      - proposals_on_observed_lead_time
                  supplier_updates_applied:
                    type: integer
                    description: Items whose inbound the supplier network changed
                  compliance:
                    $ref: '#/components/schemas/PlanningComplianceExclusions'
                  planning:
                    $ref: '#/components/schemas/InventoryResultSource'
                  notes:
                    type: array
                    items:
                      type: string
                  duration_ms:
                    type: integer
                    description: Milliseconds the request took
                  request_id:
                    type: string
                    description: >-
                      Quote this when asking about the request; also the
                      X-Request-ID header
                required:
                  - object
                  - data
                  - has_more
                  - next_cursor
                  - proposals
                  - window_days
                  - service_level
                  - service_level_source
                  - data_as_of
                  - demand_source
                  - stale
                  - count
                  - rules
                  - supplier_updates_applied
                  - planning
                  - notes
                  - duration_ms
                  - request_id
              example:
                request_id: 17fa907e-33cf-4246-9f66-a104157f86a9
                window_days: 90
                service_level: 0.95
                service_level_source: default
                data_as_of: null
                demand_source:
                  source: order_lines
                  history_complete: false
                  history_as_of: null
                  fallback_reason: history_not_built
                stale: true
                count: 65
                total: 65
                has_more: false
                rules:
                  proposals_on_observed_lead_time: 0
                proposals:
                  - item: MAT-00000026
                    description: Handbags - Style 00000026
                    quantity: 2141
                    priority: 99.44
                    suggested_supplier:
                      external_id: VEND-000022
                      name: Phnom Penh Footwear Mfg 0022
                      country_code: MX
                      lead_time_days: 52
                      disruption_affected: true
                    rationale:
                      network_on_hand: 13
                      inbound_quantity: 0
                      network_position: 13
                      mean_daily_demand: 22.7333
                      lead_time_days: 52
                      safety_stock: 653.11
                      reorder_point: 1835.24
                      order_up_to_level: 2153.51
                      network_days_of_cover: 0.57
                      estimated_value: 959596.2
                      supplier_disruption_affected: true
                      alternate_suppliers: []
                      lead_time_source: supplier_master
                      service_level: 0.95
                      review_period_days: 14
                      parameters:
                        inventory.service_level:
                          value: 0.95
                          origin: default
                          scope: null
                          setBy: null
                          setAt: null
                        inventory.review_period_days:
                          value: 14
                          origin: default
                          scope: null
                          setBy: null
                          setAt: null
                supplier_updates_applied: 2
                compliance:
                  mode: flag
                  excluded: 0
                  excluded_needs: []
                planning:
                  source: on_request
                  reason: no_stored_result
                duration_ms: 107
                notes:
                  - >-
                    Proposals fire only when the whole network (on-hand +
                    inbound) sits below the reorder point — transfers cannot fix
                    these.
                object: list
                data:
                  - item: MAT-00000026
                    description: Handbags - Style 00000026
                    quantity: 2141
                    priority: 99.44
                    suggested_supplier:
                      external_id: VEND-000022
                      name: Phnom Penh Footwear Mfg 0022
                      country_code: MX
                      lead_time_days: 52
                      disruption_affected: true
                    rationale:
                      network_on_hand: 13
                      inbound_quantity: 0
                      network_position: 13
                      mean_daily_demand: 22.7333
                      lead_time_days: 52
                      safety_stock: 653.11
                      reorder_point: 1835.24
                      order_up_to_level: 2153.51
                      network_days_of_cover: 0.57
                      estimated_value: 959596.2
                      supplier_disruption_affected: true
                      alternate_suppliers: []
                      lead_time_source: supplier_master
                      service_level: 0.95
                      review_period_days: 14
                      parameters:
                        inventory.service_level:
                          value: 0.95
                          origin: default
                          scope: null
                          setBy: null
                          setAt: null
                        inventory.review_period_days:
                          value: 14
                          origin: default
                          scope: null
                          setBy: null
                          setAt: null
                next_cursor: null
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '405':
          $ref: '#/components/responses/MethodNotAllowed'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalError'
        '502':
          $ref: '#/components/responses/UpstreamError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
      security:
        - apiKey: []
components:
  headers:
    RateLimit-Limit:
      schema:
        type: integer
      description: Requests allowed per minute. On every answer to an accepted API key
    RateLimit-Remaining:
      schema:
        type: integer
      description: Requests left in the current minute window
    RateLimit-Reset:
      schema:
        type: integer
      description: Seconds until the minute window resets
    X-RateLimit-Limit-Day:
      schema:
        type: integer
      description: The key's daily quota
    X-RateLimit-Remaining-Day:
      schema:
        type: integer
      description: Requests left today (resets 00:00 UTC)
    X-Request-ID:
      schema:
        type: string
      description: Quote this when asking about a request
    X-Client-Request-ID:
      schema:
        type: string
      description: Your own X-Request-ID request header, echoed. Absent when you sent none
    X-InsightChain-Sandbox:
      schema:
        type: string
        enum:
          - 'true'
      description: >-
        Present, and true, on every answer to a test key: the data is the
        sandbox's
    Allow:
      schema:
        type: string
      description: The methods the path takes
    Retry-After:
      schema:
        type: integer
      description: Seconds to wait before trying again
  schemas:
    InventoryPurchaseProposal:
      type: object
      properties:
        item:
          type: string
          description: Item external id
        description:
          type:
            - string
            - 'null'
        quantity:
          type: number
        priority:
          type: number
          description: 0-100, higher first
        suggested_supplier:
          type:
            - object
            - 'null'
          properties:
            external_id:
              type: string
            name:
              type: string
            country_code:
              type:
                - string
                - 'null'
            lead_time_days:
              type:
                - number
                - 'null'
            disruption_affected:
              type: boolean
              description: The supplier's country has an active supply-risk event
          required:
            - external_id
            - name
            - country_code
            - lead_time_days
            - disruption_affected
        rationale:
          type: object
          properties:
            network_on_hand:
              type: number
              description: On hand across every location
            inbound_quantity:
              type: number
              description: Open inbound across every purchase order
            network_position:
              type: number
              description: On hand plus inbound
            mean_daily_demand:
              type: number
            lead_time_days:
              type: number
            safety_stock:
              type: number
            reorder_point:
              type: number
            order_up_to_level:
              type: number
            network_days_of_cover:
              type:
                - number
                - 'null'
            estimated_value:
              type:
                - number
                - 'null'
              description: Quantity at unit cost; null when the item has no cost
            supplier_disruption_affected:
              type: boolean
            alternate_suppliers:
              type: array
              items:
                type: string
              description: Up to three other suppliers of the item (external ids)
            supplier_slip:
              $ref: '#/components/schemas/SupplierDeliverySlip'
            lead_time_source:
              type: string
              enum:
                - observed
                - stated
                - supplier_master
                - default
                - master_data
                - none
            lead_time_sample:
              type:
                - integer
                - 'null'
              description: Receipts behind an observed lead time
            lead_time_p90_days:
              type: number
            lead_time_std_dev_days:
              type: number
            supplier_lead_time_days:
              type: number
            order_wait_days:
              type: number
              description: Days until the supplier's next order day
            next_order_date:
              type: string
              format: date
            expected_arrival_date:
              type: string
              format: date
            suppliers_closed:
              type: array
              items:
                type: string
              description: Suppliers left out because they take no order in the next year
            supplier_calendar_invalid:
              type: boolean
            review_period_days:
              type: number
            compliance_excluded_suppliers:
              type: array
              items:
                type: string
              description: >-
                Suppliers left out because a purchase from them would not be
                allowed
            min_order_qty:
              type: number
            order_multiple:
              type: number
            quantity_before_rules:
              type: number
              description: >-
                The quantity before the minimum order quantity and the order
                multiple
            adjustments:
              type: array
              items:
                type: object
                properties:
                  rule:
                    type: string
                    enum:
                      - pack
                      - min_order_qty
                      - cap
                  from:
                    type: number
                  to:
                    type: number
                required:
                  - rule
                  - from
                  - to
                description: One rule that changed the quantity
            service_level:
              type: number
            parameters:
              type: object
              additionalProperties:
                $ref: '#/components/schemas/PlanningParameterValue'
              description: >-
                The planning parameters behind the row, by parameter key
                (inventory.service_level, inventory.review_period_days, ...)
            inbound_supplier_updates:
              type: object
              properties:
                inbound_quantity_from_orders:
                  type: number
                inbound_quantity_used:
                  type: number
                changes:
                  type: array
                  items:
                    $ref: '#/components/schemas/SupplierInboundChange'
              required:
                - inbound_quantity_from_orders
                - inbound_quantity_used
                - changes
              description: Present when the supplier network changed the item's inbound
          required:
            - network_on_hand
            - inbound_quantity
            - network_position
            - mean_daily_demand
            - lead_time_days
            - safety_stock
            - reorder_point
            - order_up_to_level
            - network_days_of_cover
            - estimated_value
            - supplier_disruption_affected
            - alternate_suppliers
          description: >-
            The figures behind the proposal; a figure that did not apply is
            absent
      required:
        - item
        - description
        - quantity
        - priority
        - suggested_supplier
        - rationale
    DemandSource:
      type: object
      properties:
        source:
          type: string
          enum:
            - daily_demand
            - order_lines
          description: >-
            Which demand history the answer was computed from. daily_demand: the
            daily history we keep (point of sale where a store has a feed, sales
            orders elsewhere). order_lines: your sales order lines, added up for
            this request while that history is not complete
        history_complete:
          type: boolean
          description: >-
            Whether the stored daily demand history is complete for the
            organization
        history_as_of:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            Every change committed before this time is in the stored history;
            null while it is not complete
        fallback_reason:
          type:
            - string
            - 'null'
          enum:
            - history_not_built
            - history_rebuilding
            - history_lagging
            - null
          description: Why the stored history did not answer; null when it did
      required:
        - source
        - history_complete
        - history_as_of
        - fallback_reason
    PlanningComplianceExclusions:
      type: object
      properties:
        mode:
          type: string
          enum:
            - flag
            - strict
          description: The organization's product-compliance mode
        excluded:
          type: integer
          description: Needs left out because the movement would not be allowed
        excluded_needs:
          type: array
          items:
            type: object
            properties:
              kind:
                type: string
                description: The recommendation kind it would have been
              item:
                type:
                  - string
                  - 'null'
              from_location:
                type:
                  - string
                  - 'null'
              to_location:
                type:
                  - string
                  - 'null'
              quantity:
                type:
                  - number
                  - 'null'
              code:
                type: string
                description: blocked, unknown, no_verdict, recalled, ...
              from_country:
                type:
                  - string
                  - 'null'
              to_country:
                type:
                  - string
                  - 'null'
              message:
                type: string
            required:
              - kind
              - item
              - from_location
              - to_location
              - quantity
              - code
              - from_country
              - to_country
              - message
          description: The largest needs left out, at most 50
      required:
        - mode
        - excluded
        - excluded_needs
      description: Present only when the organization has product compliance
    InventoryResultSource:
      oneOf:
        - type: object
          properties:
            source:
              const: stored
            result_id:
              type: string
              format: uuid
              description: The id of the stored results the answer was read from
            computed_at:
              type: string
              format: date-time
            published_at:
              type: string
              format: date-time
            age_hours:
              type: number
            stale:
              type: boolean
              description: >-
                True when the stored results are more than 36 hours old (they
                are still served)
          required:
            - source
            - result_id
            - computed_at
            - published_at
            - age_hours
            - stale
          description: Read from the latest stored results
        - type: object
          properties:
            source:
              const: on_request
            reason:
              type: string
              enum:
                - no_stored_result
                - settings_differ
                - parameters_changed
                - item_filter
                - stored_result_unavailable
                - not_stored
              description: >-
                Why stored results did not answer. no_stored_result: there are
                none yet. settings_differ, parameters_changed: they were
                computed with other settings or parameters than this request.
                item_filter: one item was asked for. stored_result_unavailable:
                they could not be read. not_stored: this route is always
                computed for the request
          required:
            - source
            - reason
          description: Computed for this request
    SupplierDeliverySlip:
      type: object
      properties:
        basis:
          const: observed
        level:
          type: string
          enum:
            - supplier_plant
            - supplier
        slip_p90_days:
          type:
            - number
            - 'null'
          description: Days late at the 90th percentile of its receipts
        slip_p50_days:
          type:
            - number
            - 'null'
        slip_n:
          type: integer
          description: Receipts in the sample
        min_sample:
          type:
            - integer
            - 'null'
        sufficient:
          type: boolean
          description: Whether the sample is large enough to move a priority or a score
        overdue_open_n:
          type: integer
          description: Lines due with nothing received yet
        points:
          type: number
          description: Priority or risk points the slip added
      required:
        - basis
        - level
        - slip_p90_days
        - slip_p50_days
        - slip_n
        - min_sample
        - sufficient
        - overdue_open_n
        - points
    PlanningParameterValue:
      type: object
      properties:
        value:
          type:
            - number
            - string
            - array
            - 'null'
          items:
            type: string
          description: The value used; null when the parameter has none (no maximum stock)
        origin:
          type: string
          enum:
            - default
            - observed
            - stated
            - request
          description: >-
            default: ours; observed: read from the account's data; stated: set
            by the account; request: sent with this request
        scope:
          type:
            - string
            - 'null'
          enum:
            - org
            - category
            - item
            - item_location
            - location
            - supplier
            - supplier_location
            - lane
            - null
          description: >-
            The scope the value was set at; null for a default or a request
            value
        setBy:
          type:
            - string
            - 'null'
          description: Who set it
        setAt:
          type:
            - string
            - 'null'
          format: date-time
      required:
        - value
        - origin
        - scope
        - setBy
        - setAt
    SupplierInboundChange:
      type: object
      properties:
        purchase_order:
          type: string
          description: Purchase order external id
        kind:
          type: string
          enum:
            - quantity_agreed
            - date_agreed
            - late
            - early
            - dated_by_shipment
            - short_closed
            - over_shipped_ignored
        from:
          type:
            - string
            - number
            - 'null'
          description: 'The order''s value: a date or a quantity'
        to:
          type:
            - string
            - number
            - 'null'
          description: The value the plan now uses
        quantity:
          type:
            - number
            - 'null'
        days:
          type:
            - number
            - 'null'
          description: Days later (positive) or earlier (negative), for a date change
        detail:
          type: string
      required:
        - purchase_order
        - kind
        - from
        - to
        - quantity
        - days
        - detail
    Error:
      type: object
      description: The body of every non-2xx answer
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - invalid_request_error
                - authentication_error
                - permission_error
                - rate_limit_error
                - api_error
            code:
              type: string
              description: >-
                Stable machine-readable code, e.g. parameter_invalid,
                scope_missing, rate_limit_exceeded. Every code is listed at
                /docs/errors
            message:
              type: string
              description: For people; what `error` used to be as a plain string
            param:
              type:
                - string
                - 'null'
              description: The parameter the error is about, when there is one
            doc_url:
              type: string
              description: Where the code is documented
          required:
            - type
            - code
            - message
            - param
            - doc_url
        request_id:
          type: string
        details:
          type: array
          items: {}
          description: >-
            On a 400 for input with several problems: one entry per problem, a
            sentence or an object with `field` and `message`
        limit:
          type: integer
          description: 'On a 429: the limit that was reached'
        code:
          type: string
          deprecated: true
          description: 'Deprecated: use error.code'
        field:
          type: string
          deprecated: true
          description: 'Deprecated: use error.param'
      required:
        - error
        - request_id
      additionalProperties: true
  responses:
    BadRequest:
      description: >-
        Invalid input: an unknown or invalid parameter (error.param names it) or
        a body the route does not accept
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid API key
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: >-
        The key lacks the scope, or the organization lacks the module or is
        suspended
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    MethodNotAllowed:
      description: The route does not take this method; Allow lists the ones it takes
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
        Allow:
          $ref: '#/components/headers/Allow'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    PayloadTooLarge:
      description: >-
        The body, or the data the request would read, is larger than the route
        allows
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    TooManyRequests:
      description: Per-minute or daily key limit; Retry-After is the real reset
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
        Retry-After:
          $ref: '#/components/headers/Retry-After'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalError:
      description: Internal error; quote request_id
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    UpstreamError:
      description: >-
        The API could not be reached, or a service this route depends on failed.
        Try again shortly
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ServiceUnavailable:
      description: The API, or this route, is not available right now
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        An InsightChain API key: ic_live_... for your organization, ic_test_...
        for its sandbox

````

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