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

# List orders

> Orders in the approval loop with payload, policy decision, proposer and approver.

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



## OpenAPI

````yaml /openapi.json get /v1/orders
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/orders:
    get:
      tags:
        - Orders and approval
      summary: List orders
      description: >-
        Orders in the approval loop with payload, policy decision, proposer and
        approver.


        Key scope: read (or execute). Module: execution. Answers the list object
        (object, data, has_more, next_cursor); the same rows stay under
        `orders`, deprecated.
      operationId: listOrders
      parameters:
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - proposed
              - approved
              - rejected
              - canceled
              - executing
              - executed
              - partially_applied
              - failed
        - name: kind
          in: query
          required: false
          schema:
            type: string
            pattern: ^[a-z][a-z0-9_]{0,63}$
          description: >-
            Only this kind, exactly as a row's kind field gives it, e.g.
            purchase_order or stock_transfer
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            maximum: 100000
            default: 0
          deprecated: true
        - 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/ExecutionOrder'
                  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
                  orders:
                    type: array
                    items:
                      $ref: '#/components/schemas/ExecutionOrder'
                    deprecated: true
                    description: 'Deprecated: the same rows as `data`'
                  next_offset:
                    type:
                      - integer
                      - 'null'
                    deprecated: true
                    description: 'Deprecated: page with next_cursor'
                  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
                  - orders
                  - next_offset
                  - request_id
              example:
                request_id: 1b3265e1-2e67-4f81-b081-de9e198542ce
                orders:
                  - id: 1f61fbed-1094-40a3-bb48-572297a6fcd5
                    recommendation_id: a2c7217b-a102-4f9a-83f2-e3e347c5ebb2
                    connection_id: null
                    kind: purchase_order
                    status: proposed
                    mode: null
                    payload:
                      summary: Purchase 9 of MAT-00000029 from supplier VEND-000020
                      currency: USD
                      quantity: 9
                      unit_cost: 62.95
                      item_external_id: MAT-00000029
                      location_external_id: '1010'
                      supplier_external_id: VEND-000020
                    expected_impact:
                      cost: 566.55
                      revenue_protected: 10389.32
                      recommended_action: purchase
                    recommendation_snapshot:
                      kind: purchase
                      currency: USD
                      priority: 100
                      quantity: 9
                      rationale:
                        cost: 566.55
                        item: MAT-00000029
                        source: disruption
                        location: '1010'
                        supplier: Taipei Hardware 0020
                        cost_note: Priced at this supplier's last PO unit price.
                      unit_cost: 62.95
                      data_as_of: '2026-11-21T09:18:15.826+00:00'
                      captured_at: '2026-11-21T10:44:17.575Z'
                      recommended_at: '2026-11-21T09:19:45.238929+00:00'
                      expected_impact:
                        cost: 566.55
                        revenue_protected: 10389.32
                        recommended_action: purchase
                      item_external_id: MAT-00000029
                      recommendation_id: a2c7217b-a102-4f9a-83f2-e3e347c5ebb2
                      supplier_external_id: VEND-000020
                      to_location_external_id: '1010'
                      from_location_external_id: null
                    idempotency_key: rec:a2c7217b-a102-4f9a-83f2-e3e347c5ebb2
                    maker: daa1ddbf-97c2-446e-88c8-1e7185d6384c
                    maker_api_key_id: 3f406b46-9929-4fa3-a217-c2e156c29a14
                    checker: null
                    checker_api_key_id: null
                    auto_approved: false
                    policy_id: null
                    policy_decision:
                      level: 1
                      checks:
                        - ok: false
                          rule: level
                          detail: a person approves every order of this kind
                      outcome: manual
                      reasons:
                        - a person approves every order of this kind
                      version: null
                      policy_id: null
                      evaluated_at: '2026-11-21T10:44:17.576Z'
                    amount: 566.55
                    currency: USD
                    external_ref: null
                    verification: null
                    error: null
                    approved_at: null
                    executed_at: null
                    created_at: '2026-11-21T10:44:17.584267+00:00'
                    updated_at: '2026-11-21T10:44:17.584267+00:00'
                has_more: false
                next_offset: null
                object: list
                data:
                  - id: 1f61fbed-1094-40a3-bb48-572297a6fcd5
                    recommendation_id: a2c7217b-a102-4f9a-83f2-e3e347c5ebb2
                    connection_id: null
                    kind: purchase_order
                    status: proposed
                    mode: null
                    payload:
                      summary: Purchase 9 of MAT-00000029 from supplier VEND-000020
                      currency: USD
                      quantity: 9
                      unit_cost: 62.95
                      item_external_id: MAT-00000029
                      location_external_id: '1010'
                      supplier_external_id: VEND-000020
                    expected_impact:
                      cost: 566.55
                      revenue_protected: 10389.32
                      recommended_action: purchase
                    recommendation_snapshot:
                      kind: purchase
                      currency: USD
                      priority: 100
                      quantity: 9
                      rationale:
                        cost: 566.55
                        item: MAT-00000029
                        source: disruption
                        location: '1010'
                        supplier: Taipei Hardware 0020
                        cost_note: Priced at this supplier's last PO unit price.
                      unit_cost: 62.95
                      data_as_of: '2026-11-21T09:18:15.826+00:00'
                      captured_at: '2026-11-21T10:44:17.575Z'
                      recommended_at: '2026-11-21T09:19:45.238929+00:00'
                      expected_impact:
                        cost: 566.55
                        revenue_protected: 10389.32
                        recommended_action: purchase
                      item_external_id: MAT-00000029
                      recommendation_id: a2c7217b-a102-4f9a-83f2-e3e347c5ebb2
                      supplier_external_id: VEND-000020
                      to_location_external_id: '1010'
                      from_location_external_id: null
                    idempotency_key: rec:a2c7217b-a102-4f9a-83f2-e3e347c5ebb2
                    maker: daa1ddbf-97c2-446e-88c8-1e7185d6384c
                    maker_api_key_id: 3f406b46-9929-4fa3-a217-c2e156c29a14
                    checker: null
                    checker_api_key_id: null
                    auto_approved: false
                    policy_id: null
                    policy_decision:
                      level: 1
                      checks:
                        - ok: false
                          rule: level
                          detail: a person approves every order of this kind
                      outcome: manual
                      reasons:
                        - a person approves every order of this kind
                      version: null
                      policy_id: null
                      evaluated_at: '2026-11-21T10:44:17.576Z'
                    amount: 566.55
                    currency: USD
                    external_ref: null
                    verification: null
                    error: null
                    approved_at: null
                    executed_at: null
                    created_at: '2026-11-21T10:44:17.584267+00:00'
                    updated_at: '2026-11-21T10:44:17.584267+00:00'
                next_cursor: null
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '405':
          $ref: '#/components/responses/MethodNotAllowed'
        '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:
    ExecutionOrder:
      type: object
      properties:
        id:
          type: string
          format: uuid
        recommendation_id:
          type:
            - string
            - 'null'
          format: uuid
          description: >-
            The recommendation it was proposed from; null once that
            recommendation is gone
        connection_id:
          type:
            - string
            - 'null'
          format: uuid
          description: >-
            The ERP connection it is written to; null when it is handed over by
            hand
        kind:
          type: string
          enum:
            - stock_transfer
            - purchase_order
            - expedite
            - markdown
        status:
          type: string
          enum:
            - proposed
            - approved
            - rejected
            - canceled
            - executing
            - executed
            - partially_applied
            - failed
          description: >-
            partially_applied: written, but the ERP stored something other than
            what was sent
        mode:
          type:
            - string
            - 'null'
          enum:
            - live
            - dry_run
            - manual
            - null
          description: >-
            How it was executed: written to the ERP, rehearsed without writing,
            or handed over by hand; null until it runs
        payload:
          type: object
          properties:
            summary:
              type: string
              description: The order in one line
            item_external_id:
              type: string
            quantity:
              type:
                - number
                - 'null'
              description: stock_transfer, purchase_order, expedite
            from_location_external_id:
              type: string
              description: stock_transfer
            to_location_external_id:
              type: string
              description: stock_transfer
            supplier_external_id:
              type: string
              description: purchase_order
            location_external_id:
              type:
                - string
                - 'null'
              description: >-
                purchase_order, expedite, markdown: the receiving or selling
                location
            unit_cost:
              type:
                - number
                - 'null'
              description: purchase_order
            currency:
              type:
                - string
                - 'null'
              description: purchase_order
            discount_pct:
              type: number
              description: markdown
            external_ref:
              type:
                - string
                - 'null'
              description: >-
                On older orders only: the document number, now the order's own
                external_ref
          required:
            - summary
            - item_external_id
          description: The order as it executes; which fields it carries depends on kind
        expected_impact:
          type: object
          additionalProperties: true
          description: The recommendation's expected impact; the fields depend on its kind
        recommendation_snapshot:
          type: object
          properties:
            recommendation_id:
              type:
                - string
                - 'null'
              format: uuid
            kind:
              type: string
              description: The recommendation's kind
            quantity:
              type:
                - number
                - 'null'
              description: >-
                The recommended quantity (the order's own quantity is in
                payload)
            priority:
              type:
                - number
                - 'null'
            rationale:
              type: object
              additionalProperties: true
              description: The recommendation's rationale as it was
            expected_impact:
              type: object
              additionalProperties: true
              description: The recommendation's expected impact as it was
            data_as_of:
              type:
                - string
                - 'null'
              format: date-time
            recommended_at:
              type:
                - string
                - 'null'
              format: date-time
            item_external_id:
              type:
                - string
                - 'null'
            from_location_external_id:
              type:
                - string
                - 'null'
            to_location_external_id:
              type:
                - string
                - 'null'
            supplier_external_id:
              type:
                - string
                - 'null'
            unit_cost:
              type:
                - number
                - 'null'
            currency:
              type:
                - string
                - 'null'
            captured_at:
              type: string
              format: date-time
          description: >-
            The order's own copy of what was recommended and why, taken when it
            was proposed. Empty on orders from before snapshots were kept
        idempotency_key:
          type: string
        maker:
          type: string
          format: uuid
          description: The person who proposed it, or who last set its quantity
        maker_api_key_id:
          type:
            - string
            - 'null'
          format: uuid
          description: The API key the proposer used, when it was proposed over the API
        checker:
          type:
            - string
            - 'null'
          format: uuid
          description: The person who approved or rejected it
        checker_api_key_id:
          type:
            - string
            - 'null'
          format: uuid
        auto_approved:
          type: boolean
          description: true when an execution rule approved it instead of a person
        policy_id:
          type:
            - string
            - 'null'
          format: uuid
        policy_decision:
          type: object
          properties:
            outcome:
              type: string
              enum:
                - blocked
                - manual
                - auto_approve
                - auto_execute
              description: >-
                manual: a person approves; auto_approve / auto_execute: the rule
                approved (and ran) it
            level:
              type: number
              enum:
                - 0
                - 1
                - 2
                - 3
              description: >-
                The autonomy level of the rule: 0 recommend only, 1 a person
                approves, 2 approved inside its limits, 3 approved and executed
                inside its limits
            policy_id:
              type:
                - string
                - 'null'
              format: uuid
              description: The rule that decided; null when the default applied
            version:
              type:
                - integer
                - 'null'
            checks:
              type: array
              items:
                type: object
                properties:
                  rule:
                    type: string
                    enum:
                      - max_amount
                      - max_quantity
                      - daily_budget
                      - daily_max_orders
                      - allowed_locations
                      - allowed_suppliers
                      - min_priority
                      - cooldown_hours
                      - level
                      - enabled
                      - edited_quantity
                      - compliance
                    description: The rule that was checked
                  ok:
                    type: boolean
                  detail:
                    type: string
                    description: What was compared, in words
                required:
                  - rule
                  - ok
                  - detail
            reasons:
              type: array
              items:
                type: string
              description: Why the order waits for a person, in order
            evaluated_at:
              type: string
              format: date-time
          description: >-
            The execution rule's decision when the order was proposed (and after
            a quantity change). Empty on orders from before execution rules
        amount:
          type:
            - number
            - 'null'
          description: The value the order moves, when it has one
        currency:
          type:
            - string
            - 'null'
        external_ref:
          type:
            - string
            - 'null'
          description: >-
            The document number in the ERP; MANUAL-... or DRYRUN-... when
            nothing was written
        verification:
          oneOf:
            - $ref: '#/components/schemas/WritebackVerification'
            - type: 'null'
          description: >-
            The read-back of a live write; null for a dry run or a manual
            hand-over
        error:
          type:
            - string
            - 'null'
          description: Why the last execution failed
        approved_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When it was approved or rejected
        executed_at:
          type:
            - string
            - 'null'
          format: date-time
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - id
        - recommendation_id
        - connection_id
        - kind
        - status
        - mode
        - payload
        - expected_impact
        - recommendation_snapshot
        - idempotency_key
        - maker
        - maker_api_key_id
        - checker
        - checker_api_key_id
        - auto_approved
        - policy_id
        - policy_decision
        - amount
        - currency
        - external_ref
        - verification
        - error
        - approved_at
        - executed_at
        - created_at
        - updated_at
    WritebackVerification:
      type: object
      properties:
        version:
          const: 1
        reference:
          type: object
          properties:
            field:
              type: string
              description: The ERP field that carries it
            value:
              type: string
          required:
            - field
            - value
          description: Our reference on the ERP document
        document:
          type: string
          description: The document number in the ERP
        item:
          type:
            - string
            - 'null'
          description: The document line the order is, when known
        adopted:
          type: boolean
          description: >-
            true when the document was found by our reference instead of created
            by this attempt
        duplicates:
          type: array
          items:
            type: string
          description: Other documents carrying our reference
        outcome:
          type: string
          enum:
            - verified
            - differences
            - not_verified
          description: 'not_verified: the document could not be read back yet'
        checked_at:
          type: string
          format: date-time
        checks:
          type: integer
          description: Read-backs tried so far
        error:
          type: string
          description: Why the read-back did not verify (not_verified only)
        verified_by:
          const: sync
          description: >-
            Present when the read-back could not verify the write and the check
            after the next sync did
        fields:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                description: The ERP's property name
              level:
                type: string
                enum:
                  - header
                  - item
                description: Whether the field is on the document or on its line
              kind:
                type: string
                enum:
                  - code
                  - decimal
                  - date
                  - text
                description: How the two values are compared
              sent:
                type: string
              stored:
                type:
                  - string
                  - 'null'
                description: What the ERP holds; null when it returned none
              result:
                type: string
                enum:
                  - match
                  - differs
                  - missing
                  - unchecked
              synced:
                type:
                  - string
                  - 'null'
                description: >-
                  Which synced field holds a copy, for the check after the next
                  sync; null when none does
            required:
              - field
              - level
              - kind
              - sent
              - stored
              - result
              - synced
        after_sync:
          type: object
          properties:
            checked_at:
              type: string
              format: date-time
            synced_at:
              type: string
              format: date-time
            outcome:
              type: string
              enum:
                - verified
                - differences
                - changed_since
              description: >-
                changed_since: stored as sent at creation and changed in the ERP
                later
            fields:
              type: array
              items:
                type: object
                properties:
                  field:
                    type: string
                  level:
                    type: string
                    enum:
                      - header
                      - item
                    description: Whether the field is on the document or on its line
                  sent:
                    type: string
                  stored:
                    type:
                      - string
                      - 'null'
                  synced:
                    type:
                      - string
                      - 'null'
                    description: The value in the synced copy
                  result:
                    type: string
                    enum:
                      - match
                      - differs
                      - changed_since
                required:
                  - field
                  - level
                  - sent
                  - stored
                  - synced
                  - result
          required:
            - checked_at
            - synced_at
            - outcome
            - fields
          description: The check against the synced copy after the next sync
      required:
        - version
        - reference
        - document
        - item
        - adopted
        - duplicates
        - outcome
        - checked_at
        - checks
        - fields
    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'
    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.