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

# Create landed cost

> Total landed cost: CIF, duty (looked up as a tariff check, which also needs the tariff module, or your own rate), fees and import VAT. One of hs_code or item_description is required. Logs the calculation.

Key scope: read (or execute). Module: landed_cost.



## OpenAPI

````yaml /openapi.json post /v1/landed_costs
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/landed_costs:
    post:
      tags:
        - Landed cost
      summary: Create landed cost
      description: >-
        Total landed cost: CIF, duty (looked up as a tariff check, which also
        needs the tariff module, or your own rate), fees and import VAT. One of
        hs_code or item_description is required. Logs the calculation.


        Key scope: read (or execute). Module: landed_cost.
      operationId: createLandedCost
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                hs_code:
                  type: string
                  maxLength: 14
                  description: >-
                    HS code, 6-10 digits; dots between groups are allowed.
                    Required unless item_description is sent
                item_description:
                  type: string
                  maxLength: 500
                  description: >-
                    Used to classify when hs_code is absent. Required unless
                    hs_code is sent
                origin_country:
                  type: string
                  pattern: ^[A-Za-z]{2}$
                  description: ISO 3166-1 alpha-2 country code
                destination_country:
                  type: string
                  pattern: ^[A-Za-z]{2}$
                  description: US (default), GB, or an EU member state
                goods_value:
                  type: number
                  minimum: 0
                freight_cost:
                  type: number
                  minimum: 0
                insurance_cost:
                  type: number
                  minimum: 0
                duty_rate_percent:
                  type: number
                  minimum: 0
                  description: Your own duty rate; replaces the lookup
                quantity:
                  type: integer
                  minimum: 1
                  maximum: 1000000000
                  default: 1
              required:
                - origin_country
                - goods_value
              additionalProperties: false
            example:
              hs_code: '6109.10'
              origin_country: VN
              destination_country: US
              goods_value: 12500
              freight_cost: 850
              insurance_cost: 60
              quantity: 1000
      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:
                $ref: '#/components/schemas/LandedCost'
              example:
                request_id: 02a9e9f2-532f-4fe0-b22e-2f4ed4813624
                hs_code: '6109100010'
                hs_classification_source: null
                origin_country: CN
                destination_country: GB
                currency: USD
                quantity: 1000
                de_minimis_applied: false
                de_minimis_note: null
                cost_breakdown:
                  goods_value: 12000
                  freight_cost: 800
                  insurance_cost: 60
                  cif_value: 12860
                  duty_rate_percent: 12
                  duty_amount: 1543.2
                  adcvd_duty_amount: 0
                  fees: {}
                  total_fees: 0
                  import_vat:
                    rate_percent: 20
                    amount: 2880.64
                    destination_country_name: United Kingdom
                    destination_currency: GBP
                    rate_source: tariff_line
                adcvd_orders: null
                total_landed_cost: 17283.84
                per_unit_landed_cost: 17.28
                tariff_source:
                  effective_rate_display: 12.0%
                  effective_rate_mfn: null
                  effective_rate_preferential: null
                  base_rate:
                    rate: 12.00 %
                    type: Third country duty
                    source: UK Integrated Online Tariff
                    source_url: >-
                      https://www.trade-tariff.service.gov.uk/commodities/6109100010?country=CN&day=21&month=11&year=2026
                    rate_percent: 12
                  additional_duties: []
                  trade_agreement: null
                  confidence_score: null
                  duty_rate_source: tariff_lookup
                  duty_rate_status: official
                  excluded_specific_duty: null
                  rate_warning: null
                tariff_authority:
                  url: >-
                    https://www.trade-tariff.service.gov.uk/commodities/6109100010?country=CN&day=21&month=11&year=2026
                  name: UK Integrated Online Tariff
                  as_of: '2026-11-21'
                  licence: >-
                    Contains public sector information licensed under the Open
                    Government Licence v3.0 (HMRC UK Integrated Online Tariff).
                  authority: uk_official_schedule
                duration_ms: 105
                disclaimer: >-
                  This landed cost estimate is provided for informational
                  purposes only. Actual costs may vary based on broker fees,
                  port charges, and othe...
        '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'
        '415':
          $ref: '#/components/responses/UnsupportedMediaType'
        '422':
          $ref: '#/components/responses/Unprocessable'
        '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:
    LandedCost:
      type: object
      properties:
        hs_code:
          type:
            - string
            - 'null'
          description: >-
            The code costed: yours, the classified one, or the line it resolved
            to
        hs_classification_source:
          type:
            - string
            - 'null'
          enum:
            - catalog
            - estimated
            - null
          description: >-
            With item_description: how the code was found. catalog: a reviewed
            match. estimated: classified from the description
        origin_country:
          type: string
        destination_country:
          type: string
        currency:
          type: string
          description: 'Currency of every amount: USD, the currency your values are read in'
        quantity:
          type: integer
        de_minimis_applied:
          type: boolean
          description: >-
            true when the shipment enters duty-free under the destination's
            low-value threshold; duty and fees are then 0
        de_minimis_note:
          type:
            - string
            - 'null'
          description: >-
            Why a low-value shipment still pays duty; null when the threshold
            does not come into it
        cost_breakdown:
          type: object
          properties:
            goods_value:
              type: number
            freight_cost:
              type: number
            insurance_cost:
              type: number
            cif_value:
              type: number
              description: >-
                Goods value plus freight plus insurance: the customs value duty
                is charged on
            duty_rate_percent:
              type: number
              description: >-
                The duty rate charged, percent of customs value: yours when you
                sent duty_rate_percent, else the looked-up one
            duty_amount:
              type: number
            adcvd_duty_amount:
              type: number
              description: Anti-dumping and countervailing duty; 0 when no order applies
            fees:
              type: object
              additionalProperties:
                type: object
                properties:
                  fee_name:
                    type: string
                  fee_code:
                    type: string
                  amount:
                    type: number
                    description: In the response's currency
                  description:
                    type: string
                required:
                  - fee_name
                  - fee_code
                  - amount
                  - description
              description: The destination's import fees that apply, by fee code
            total_fees:
              type: number
            import_vat:
              type:
                - object
                - 'null'
              properties:
                rate_percent:
                  type: number
                amount:
                  type: number
                destination_country_name:
                  type: string
                destination_currency:
                  type: string
                  description: >-
                    The destination's currency code (the amount itself is in the
                    response's currency)
                rate_source:
                  type: string
                  enum:
                    - tariff_line
                    - country_standard_rate
                  description: >-
                    tariff_line: the rate published for this tariff line;
                    country_standard_rate: the destination's standard rate
              required:
                - rate_percent
                - amount
                - destination_country_name
                - destination_currency
                - rate_source
              description: Import VAT; null for the US and where none is charged
          required:
            - goods_value
            - freight_cost
            - insurance_cost
            - cif_value
            - duty_rate_percent
            - duty_amount
            - adcvd_duty_amount
            - fees
            - total_fees
            - import_vat
        adcvd_orders:
          oneOf:
            - $ref: '#/components/schemas/TariffAdcvdOrders'
            - type: 'null'
        total_landed_cost:
          type: number
        per_unit_landed_cost:
          type: number
          description: total_landed_cost divided by quantity
        tariff_source:
          type: object
          properties:
            effective_rate_display:
              type:
                - string
                - 'null'
              description: The looked-up effective rate as text
            effective_rate_mfn:
              type:
                - string
                - 'null'
            effective_rate_preferential:
              type:
                - string
                - 'null'
            base_rate:
              oneOf:
                - $ref: '#/components/schemas/TariffBaseRate'
                - type: 'null'
            additional_duties:
              type: array
              items:
                $ref: '#/components/schemas/TariffAdditionalDuty'
            trade_agreement:
              oneOf:
                - $ref: '#/components/schemas/TariffTradeAgreement'
                - type: 'null'
            confidence_score:
              type:
                - number
                - 'null'
              description: 'With item_description: how sure the classification is, 0 to 1'
            duty_rate_source:
              type: string
              enum:
                - manual_override
                - fta_preferential
                - tariff_lookup
              description: >-
                Which rate was charged: yours, the origin's preferential rate,
                or the standard looked-up rate
            duty_rate_status:
              type: string
              enum:
                - official
                - estimated
                - manual
              description: >-
                manual: your own rate; estimated: the tariff schedule was
                unavailable and the rate is an estimate
            excluded_specific_duty:
              type:
                - string
                - 'null'
              description: >-
                A per-unit part of the duty that duty_amount does not include;
                null when there is none
            rate_warning:
              type:
                - string
                - 'null'
              description: >-
                What to know about the rate used: estimated, a per-unit part
                left out, or no lookup ran
          required:
            - effective_rate_display
            - effective_rate_mfn
            - effective_rate_preferential
            - base_rate
            - additional_duties
            - trade_agreement
            - confidence_score
            - duty_rate_source
            - duty_rate_status
            - excluded_specific_duty
            - rate_warning
          description: The tariff lookup behind the duty rate
        tariff_authority:
          oneOf:
            - $ref: '#/components/schemas/TariffSource'
              description: The tariff that answered the lookup; null when no lookup ran
            - type: 'null'
        duration_ms:
          type: integer
        disclaimer:
          type: string
        request_id:
          type: string
          description: >-
            Quote this when asking about the request; also the X-Request-ID
            header
      required:
        - hs_code
        - hs_classification_source
        - origin_country
        - destination_country
        - currency
        - quantity
        - de_minimis_applied
        - de_minimis_note
        - cost_breakdown
        - adcvd_orders
        - total_landed_cost
        - per_unit_landed_cost
        - tariff_source
        - tariff_authority
        - duration_ms
        - disclaimer
        - request_id
    TariffAdcvdOrders:
      type: object
      properties:
        has_adcvd:
          type: boolean
          description: >-
            Whether an anti-dumping or countervailing order in force covers the
            code
        total_ad_rate:
          type: number
          description: Sum of the anti-dumping rates that apply, in percent
        total_cvd_rate:
          type: number
          description: Sum of the countervailing rates that apply, in percent
        total_adcvd_rate:
          type: number
          description: Both together, in percent
        orders:
          type: array
          items:
            type: object
            properties:
              case_number:
                type:
                  - string
                  - 'null'
                description: The case number; null for GB and EU measures, which carry none
              case_type:
                type: string
                description: AD (anti-dumping) or CVD (countervailing)
              product_description:
                type:
                  - string
                  - 'null'
              rate_percent:
                type:
                  - number
                  - 'null'
                description: >-
                  The rate an importer with no exporter-specific rate pays, in
                  percent; null when not on file
              rate_range_min:
                type:
                  - number
                  - 'null'
                description: Lowest exporter-specific rate, in percent
              rate_range_max:
                type:
                  - number
                  - 'null'
                description: Highest exporter-specific rate, in percent
              federal_register_citation:
                type:
                  - string
                  - 'null'
              source_url:
                type:
                  - string
                  - 'null'
              effective_date:
                type:
                  - string
                  - 'null'
                format: date
              rate_known:
                type: boolean
                description: >-
                  US only: false when the order applies but its rate is not on
                  file (it is then left out of the totals)
              continued_date:
                type:
                  - string
                  - 'null'
                format: date
                description: 'US only: when the order was last continued'
              scope_match:
                type: string
                enum:
                  - exact
                  - possible
                description: >-
                  US only: exact when the code is within the order's scope;
                  possible when the order lists more specific codes than the one
                  sent
              matched_hts:
                type: string
                description: 'US only: the code of the order''s scope that matched'
              rate_source:
                type:
                  - string
                  - 'null'
                description: >-
                  US only: where the rate on file comes from: official_notice
                  (the order's published notice) or reviewed (entered by hand
                  from it)
              hs_source:
                type:
                  - string
                  - 'null'
                description: >-
                  US only: where the order's scope codes come from, as
                  rate_source
              stage:
                type: string
                enum:
                  - provisional
                  - definitive
                description: GB and EU only
              rate_display:
                type: string
                description: 'GB and EU only: the rate as the tariff words it'
              exporter_rates:
                type: array
                items:
                  type: object
                  properties:
                    additional_code:
                      type:
                        - string
                        - 'null'
                      description: The exporter's additional code as declared
                    exporter:
                      type:
                        - string
                        - 'null'
                    rate:
                      type: string
                    rate_percent:
                      type: number
                    conditional:
                      type: boolean
                      description: true when the rate depends on a condition of the measure
                    legal_act:
                      type:
                        - string
                        - 'null'
                  required:
                    - additional_code
                    - exporter
                    - rate
                    - rate_percent
                    - conditional
                    - legal_act
                description: 'GB and EU only: the exporter-specific rates of the measure'
            required:
              - case_number
              - case_type
              - product_description
              - rate_percent
              - rate_range_min
              - rate_range_max
              - federal_register_citation
              - source_url
              - effective_date
        possible_orders:
          type: array
          items:
            type: object
            properties:
              case_number:
                type:
                  - string
                  - 'null'
                description: The case number; null for GB and EU measures, which carry none
              case_type:
                type: string
                description: AD (anti-dumping) or CVD (countervailing)
              product_description:
                type:
                  - string
                  - 'null'
              rate_percent:
                type:
                  - number
                  - 'null'
                description: >-
                  The rate an importer with no exporter-specific rate pays, in
                  percent; null when not on file
              rate_range_min:
                type:
                  - number
                  - 'null'
                description: Lowest exporter-specific rate, in percent
              rate_range_max:
                type:
                  - number
                  - 'null'
                description: Highest exporter-specific rate, in percent
              federal_register_citation:
                type:
                  - string
                  - 'null'
              source_url:
                type:
                  - string
                  - 'null'
              effective_date:
                type:
                  - string
                  - 'null'
                format: date
              rate_known:
                type: boolean
                description: >-
                  US only: false when the order applies but its rate is not on
                  file (it is then left out of the totals)
              continued_date:
                type:
                  - string
                  - 'null'
                format: date
                description: 'US only: when the order was last continued'
              scope_match:
                type: string
                enum:
                  - exact
                  - possible
                description: >-
                  US only: exact when the code is within the order's scope;
                  possible when the order lists more specific codes than the one
                  sent
              matched_hts:
                type: string
                description: 'US only: the code of the order''s scope that matched'
              rate_source:
                type:
                  - string
                  - 'null'
                description: >-
                  US only: where the rate on file comes from: official_notice
                  (the order's published notice) or reviewed (entered by hand
                  from it)
              hs_source:
                type:
                  - string
                  - 'null'
                description: >-
                  US only: where the order's scope codes come from, as
                  rate_source
              stage:
                type: string
                enum:
                  - provisional
                  - definitive
                description: GB and EU only
              rate_display:
                type: string
                description: 'GB and EU only: the rate as the tariff words it'
              exporter_rates:
                type: array
                items:
                  type: object
                  properties:
                    additional_code:
                      type:
                        - string
                        - 'null'
                      description: The exporter's additional code as declared
                    exporter:
                      type:
                        - string
                        - 'null'
                    rate:
                      type: string
                    rate_percent:
                      type: number
                    conditional:
                      type: boolean
                      description: true when the rate depends on a condition of the measure
                    legal_act:
                      type:
                        - string
                        - 'null'
                  required:
                    - additional_code
                    - exporter
                    - rate
                    - rate_percent
                    - conditional
                    - legal_act
                description: 'GB and EU only: the exporter-specific rates of the measure'
            required:
              - case_number
              - case_type
              - product_description
              - rate_percent
              - rate_range_min
              - rate_range_max
              - federal_register_citation
              - source_url
              - effective_date
          description: >-
            US only: orders that may cover the code (a more specific code is
            needed to know); not in the totals
        rate_warning:
          type: string
          description: 'US only: what the totals leave out, when they leave something out'
        lookup_failed:
          type: boolean
          description: >-
            US only: true when the orders could not be read; the totals are then
            0 and say nothing
        note:
          type: string
          description: 'GB and EU only: how the totals were built'
      required:
        - has_adcvd
        - total_ad_rate
        - total_cvd_rate
        - total_adcvd_rate
        - orders
    TariffBaseRate:
      type: object
      properties:
        type:
          type: string
          description: >-
            The kind of base duty, in the tariff's own words: MFN Duty, Third
            country duty, ...
        rate:
          type: string
          description: >-
            The base rate as the tariff words it (16.5%, Free, 2.4¢/kg + 5%);
            Unknown when rate_status is unknown
        rate_percent:
          type:
            - number
            - 'null'
          description: >-
            The percent-of-value part of the base rate; 0 for a purely per-unit
            rate, null when the rate is unknown
        source:
          type: string
          description: >-
            The name of the tariff schedule the rate was read from; Not
            available when no rate could be read (rate_status unknown)
        source_url:
          type: string
          description: A public page showing the tariff line
        special:
          type: string
          description: >-
            US only: the line's special-programme rates, as the tariff words
            them
        note:
          type: string
          description: >-
            Present when the base rate has a per-unit part or depends on
            conditions
      required:
        - type
        - rate
        - rate_percent
        - source
        - source_url
    TariffAdditionalDuty:
      type: object
      properties:
        type:
          type: string
          description: >-
            The kind of additional duty: Section 301, Section 232, Reciprocal
            Tariff, Import Surcharge, Additional duties, ...
        rate:
          type: string
          description: The duty as text, e.g. 15%
        rate_percent:
          type: number
          description: Percent of customs value this duty adds
        total_rate_percent:
          type: number
          description: >-
            US only, on a duty that tops the base rate up to a total: that
            total. rate_percent is then only the part added
        origin:
          type: string
          enum:
            - schedule
            - announcement
          description: >-
            US only: whether the duty is a heading of the tariff schedule or
            comes from an official announcement
        heading:
          type:
            - string
            - 'null'
          description: >-
            US only: the tariff schedule heading of the duty; null for a duty
            from an announcement
        source:
          type: string
          description: What imposes the duty
        source_url:
          type: string
          description: Link to it; empty when none is on file
        published_date:
          type:
            - string
            - 'null'
          format: date-time
          description: When the announcement behind the duty was published
      required:
        - type
        - rate
        - rate_percent
        - source
        - source_url
        - published_date
    TariffTradeAgreement:
      type: object
      properties:
        agreement:
          type: string
          description: The agreement or preference the origin can claim
        agreement_code:
          type: string
        preferential_rate:
          type: string
          description: >-
            The preferential rate as the tariff words it; absent when only
            eligibility is known
        preferential_rate_percent:
          type: number
          description: Its percent-of-value part
        note:
          type: string
          description: What must hold for the preference to apply
        source_url:
          type:
            - string
            - 'null'
        is_trq_rate:
          type: boolean
          description: >-
            true when the preferential rate is the in-quota rate of a
            tariff-rate quota
        rules_of_origin:
          type: array
          items:
            type: object
            properties:
              agreement_code:
                type: string
              hs_code_prefix:
                type: string
                description: The HS prefix the rule covers
              rule_type:
                type: string
                enum:
                  - tariff_shift
                  - regional_value_content
                  - wholly_obtained
                  - specific_process
                  - combination
              rule_description:
                type: string
              rvc_threshold:
                type:
                  - number
                  - 'null'
                description: Regional value content the goods must reach, in percent
              rvc_method:
                type:
                  - string
                  - 'null'
                enum:
                  - transaction_value
                  - net_cost
                  - build_up
                  - build_down
                  - null
                description: How regional value content is measured
              tariff_shift_rule:
                type:
                  - string
                  - 'null'
              de_minimis_percent:
                type:
                  - number
                  - 'null'
                description: >-
                  Share of non-originating material the rule tolerates, in
                  percent
              notes:
                type:
                  - string
                  - 'null'
            required:
              - agreement_code
              - hs_code_prefix
              - rule_type
              - rule_description
              - rvc_threshold
              - rvc_method
              - tariff_shift_rule
              - de_minimis_percent
              - notes
          description: >-
            US only: the agreement's rules of origin covering this code, when
            any are on file
      required:
        - agreement
        - agreement_code
        - note
        - source_url
    TariffSource:
      type: object
      properties:
        authority:
          type: string
          enum:
            - us_official_schedule
            - uk_official_schedule
            - eu_official_schedule
          description: 'Whose official tariff schedule answered: the destination''s'
        name:
          type: string
        url:
          type: string
        licence:
          type:
            - string
            - 'null'
          description: Attribution wording the tariff's terms of use ask for
        as_of:
          type: string
          format: date
          description: The day the rates are in force for
      required:
        - authority
        - name
        - url
        - licence
        - as_of
    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'
    UnsupportedMediaType:
      description: The Content-Type is not one the route reads
      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'
    Unprocessable:
      description: >-
        Well formed, but it cannot be carried out as sent; or the
        Idempotency-Key was used with another request
      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.