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

# Get recall match

> One recall match with its notice (issuing authority and a link to the official notice), why it matched (each identifier compared, the notice's value beside your item's), and where the item is: stock on hand and in transit by location and lot, open purchase orders, inbound ship notices, and the hold tasks proposed for it.

Key scope: read (or execute). Module: product_compliance. exposure reads at most 2,000 inventory rows, 500 purchase-order lines and 200 ship notices (`exposure.truncated` says which were cut); at most 200 hold tasks, `hold_tasks_truncated` is true when more exist; `match_reasons` lists at most 10 GTINs and 10 model numbers



## OpenAPI

````yaml /openapi.json get /v1/recalls/matches/{id}
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/recalls/matches/{id}:
    get:
      tags:
        - Product recalls
      summary: Get recall match
      description: >-
        One recall match with its notice (issuing authority and a link to the
        official notice), why it matched (each identifier compared, the notice's
        value beside your item's), and where the item is: stock on hand and in
        transit by location and lot, open purchase orders, inbound ship notices,
        and the hold tasks proposed for it.


        Key scope: read (or execute). Module: product_compliance. exposure reads
        at most 2,000 inventory rows, 500 purchase-order lines and 200 ship
        notices (`exposure.truncated` says which were cut); at most 200 hold
        tasks, `hold_tasks_truncated` is true when more exist; `match_reasons`
        lists at most 10 GTINs and 10 model numbers
      operationId: getRecallMatch
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      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:
                  match:
                    $ref: '#/components/schemas/RecallMatch'
                  notice:
                    oneOf:
                      - $ref: '#/components/schemas/RecallNoticeDetail'
                      - type: 'null'
                  item:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      external_id:
                        type: string
                      description:
                        type:
                          - string
                          - 'null'
                    required:
                      - id
                      - external_id
                      - description
                  match_reasons:
                    type: object
                    properties:
                      basis:
                        type: string
                        enum:
                          - gtin
                          - brand_model
                          - text
                      reasons:
                        type: array
                        items:
                          type: object
                          properties:
                            identifier:
                              type: string
                              enum:
                                - gtin
                                - brand
                                - model
                                - product_name
                            notice_value:
                              type:
                                - string
                                - 'null'
                              description: The notice's value as published
                            item_value:
                              type:
                                - string
                                - 'null'
                              description: Your item's value as recorded
                            agrees:
                              type:
                                - boolean
                                - 'null'
                              description: >-
                                true: the same once normalized; false: both
                                known and different; null: not compared as equal
                                or unequal (a name, or a value missing on a
                                side)
                          required:
                            - identifier
                            - notice_value
                            - item_value
                            - agrees
                      shared_words:
                        type:
                          - integer
                          - 'null'
                        description: >-
                          Name matches: the notice's name words found on the
                          item
                      notice_words:
                        type:
                          - integer
                          - 'null'
                        description: 'Name matches: the notice''s name words compared'
                      restricted_circulation:
                        type: boolean
                    required:
                      - basis
                      - reasons
                      - shared_words
                      - notice_words
                      - restricted_circulation
                    description: >-
                      Each identifier compared: the notice's value beside your
                      item's
                  exposure:
                    $ref: '#/components/schemas/RecallExposure'
                  hold_tasks:
                    type: array
                    items:
                      $ref: '#/components/schemas/RecallHoldTask'
                    description: The hold tasks covering this match, oldest first
                  hold_tasks_truncated:
                    type: boolean
                  second_opinion:
                    type: object
                    properties:
                      offered:
                        type: boolean
                        description: Whether a second opinion can be asked for this match
                      not_offered:
                        type:
                          - string
                          - 'null'
                        enum:
                          - match_decided
                          - gtin_match
                          - not_offered
                          - null
                        description: Why not; null when offered
                      configured:
                        type: boolean
                        description: Whether second opinions are available right now
                      cap:
                        type: object
                        properties:
                          limit:
                            type: integer
                          used_today:
                            type: integer
                          remaining:
                            type: integer
                        required:
                          - limit
                          - used_today
                          - remaining
                        description: >-
                          Your organization's daily allowance of second opinions
                          (UTC day)
                      opinion:
                        oneOf:
                          - $ref: '#/components/schemas/RecallOpinion'
                            description: >-
                              The stored opinion, newest for the current values
                              first; null when none was asked
                          - type: 'null'
                    required:
                      - offered
                      - not_offered
                      - configured
                      - cap
                      - opinion
                  request_id:
                    type: string
                    description: >-
                      Quote this when asking about the request; also the
                      X-Request-ID header
                required:
                  - match
                  - notice
                  - item
                  - match_reasons
                  - exposure
                  - hold_tasks
                  - hold_tasks_truncated
                  - request_id
              example:
                request_id: 615c5810-3c75-43d3-9e36-45abad04ee83
                match:
                  id: f22ad17b-0060-4243-9b75-c817931ca35b
                  notice_id: 000e33bf-7ff2-4bad-95f0-160fd8dc1e3a
                  item_id: f29f7ba4-eb59-4852-85ec-3bf82a4678d4
                  basis: gtin
                  score: 1
                  confirm_ready: true
                  status: confirmed
                  evidence:
                    gtins:
                      - '07394311921349'
                  decided_by: daa1ddbf-97c2-446e-88c8-1e7185d6384c
                  decided_at: '2026-11-21T10:55:05.858+00:00'
                  decision_note: The barcode on our item is the one in the notice
                  follow_up_done_at: '2026-11-21T10:55:05.869+00:00'
                  follow_up:
                    alert: already_raised
                    done_at: '2026-11-21T10:55:05.869Z'
                    match_id: f22ad17b-0060-4243-9b75-c817931ca35b
                    holds_existing: 3
                    holds_proposed: 0
                    webhooks_pending: 0
                    exposure_truncated: false
                    holds_notice_added: 0
                    webhooks_delivered: 0
                    locations_with_stock: 3
                  created_at: '2026-11-21T09:36:48.680797+00:00'
                  updated_at: '2026-11-21T10:55:05.872588+00:00'
                notice:
                  id: 000e33bf-7ff2-4bad-95f0-160fd8dc1e3a
                  source: eu_consumer_products
                  source_id: SR/00001/26
                  notice_type: alert
                  title: Modelling foam; Example Toys
                  published_on: '2026-11-18'
                  jurisdiction: EU
                  product_name: Modelling foam
                  brand: Example Toys
                  url: https://www.example.com/safety-alerts/10000001
                  source_updated_on: null
                  model_numbers:
                    - '2471666'
                  gtins:
                    - '07394311921349'
                  category: Toys
                  hazard: >-
                    Chemical: The migration of boron from the clay is too high
                    (measured value: 1395 mg/kg). Ingestion or contact with an
                    excessive quantity ...
                  remedy: >-
                    Type of economic operator taking notified measure(s):
                    ManufacturerCategory of measure(s): Withdrawal of the
                    product from the marketDate o...
                  first_seen_at: '2026-11-21T09:20:15.081334+00:00'
                  last_seen_at: '2026-11-21T09:20:12.339+00:00'
                  authority: EU Safety Gate
                item:
                  id: f29f7ba4-eb59-4852-85ec-3bf82a4678d4
                  external_id: MAT-00000001
                  description: Small Leather Goods - Style 00000001
                match_reasons:
                  basis: gtin
                  reasons:
                    - identifier: gtin
                      notice_value: '07394311921349'
                      item_value: null
                      agrees: null
                  shared_words: null
                  notice_words: null
                  restricted_circulation: false
                exposure:
                  item:
                    id: f29f7ba4-eb59-4852-85ec-3bf82a4678d4
                    external_id: MAT-00000001
                    description: Small Leather Goods - Style 00000001
                  totals:
                    on_hand: 8
                    in_transit: 0
                    locations_with_stock: 3
                    open_purchase_quantity: 286
                    inbound_ship_notice_quantity: 0
                  locations:
                    - location_id: 6acfc06a-aea7-423c-9053-9e76080fa180
                      external_id: '1014'
                      name: Store 1014
                      country_code: CA
                      location_type: store
                      on_hand: 4
                      in_transit: 0
                      positions:
                        - lot_id: null
                          lot: null
                          expiry_date: null
                          variant_id: null
                          on_hand: 4
                          in_transit: 0
                          available: null
                          uom: null
                          as_of: '2026-11-21T09:18:07.131+00:00'
                  open_purchase_orders:
                    - purchase_order_id: b146df89-af70-4e99-9567-2a2151619883
                      purchase_order: PI-PO-00054
                      status: open
                      supplier_id: 36ea46f6-9469-4695-86db-d789d4366d5e
                      line_id: e54e0afe-afb9-4716-af11-39d5a53b733a
                      line_number: 1
                      location_id: 1d9028ab-f94d-4d6f-b0bb-982fdbc97837
                      location: '1003'
                      variant_id: null
                      quantity_open: 98
                      expected_delivery_date: '2026-11-14'
                  inbound_ship_notices: []
                  trace:
                    tagged_units: true
                    lots: []
                    item: MAT-00000001
                  truncated:
                    inventory: false
                    purchase_order_lines: false
                    ship_notices: false
                hold_tasks:
                  - id: 0801202f-b592-47de-b5eb-95dcb6f4b015
                    status: proposed
                    location_id: 28ee2961-0569-4379-83dd-21d62adcee36
                    quantity: 2
                    location: '1008'
                    created_at: '2026-11-21T09:39:04.996697+00:00'
                    primary: true
                    notices_total: 1
                hold_tasks_truncated: false
                second_opinion:
                  offered: false
                  not_offered: match_decided
                  configured: false
                  cap:
                    limit: 50
                    used_today: 0
                    remaining: 50
                  opinion: null
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '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:
    RecallMatch:
      type: object
      properties:
        id:
          type: string
          format: uuid
        notice_id:
          type: string
          format: uuid
        item_id:
          type: string
          format: uuid
        basis:
          type: string
          enum:
            - gtin
            - brand_model
            - text
          description: >-
            What matched: the barcode (gtin), the brand and a model number, or
            the product name
        score:
          type: number
          description: How strong the match is, 0 to 1
        confirm_ready:
          type: boolean
          description: true for an exact barcode match
        status:
          type: string
          enum:
            - candidate
            - confirmed
            - dismissed
        evidence:
          type: object
          properties:
            gtins:
              type: array
              items:
                type: string
              description: 'Barcode matches: the GTINs both sides carry'
            restricted_circulation:
              type: boolean
              description: >-
                true when the shared GTIN is an in-store or variable-measure
                code, which is not globally unique
            brand:
              type:
                - boolean
                - 'null'
              description: 'true: the brands agree; null: a side names none'
            models:
              type: array
              items:
                type: string
              description: The model numbers both sides carry, normalized
            shared_tokens:
              type: integer
              description: >-
                Name matches: words of the notice's product name found on the
                item
            notice_tokens:
              type: integer
              description: 'Name matches: words of the notice''s product name compared'
          description: What the match rests on; the fields depend on basis
        decided_by:
          type:
            - string
            - 'null'
          format: uuid
        decided_at:
          type:
            - string
            - 'null'
          format: date-time
        decision_note:
          type:
            - string
            - 'null'
        follow_up_done_at:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            When the alert and hold tasks of a confirmation were done; null
            while pending or not confirmed
        follow_up:
          type: object
          properties:
            status:
              const: pending
              description: Present while a confirmation's follow-up has not run
            match_id:
              type: string
              format: uuid
            alert:
              type: string
              enum:
                - raised
                - already_raised
                - not_subscribed
              description: 'not_subscribed: your organization does not receive alerts'
            webhooks_delivered:
              type: integer
            webhooks_pending:
              type: integer
              description: Webhook deliveries still to be retried
            holds_proposed:
              type: integer
              description: Hold tasks proposed now, one per location holding the item
            holds_existing:
              type: integer
              description: Locations where a hold task already covers the item
            holds_notice_added:
              type: integer
              description: >-
                Of those, open hold tasks of other notices this notice was added
                to
            locations_with_stock:
              type: integer
            exposure_truncated:
              type: boolean
              description: >-
                true when the item's stock, orders or ship notices were cut at
                the read limits
            done_at:
              type: string
              format: date-time
          description: >-
            What the confirmation's follow-up did; empty for a match never
            confirmed
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - id
        - notice_id
        - item_id
        - basis
        - score
        - confirm_ready
        - status
        - evidence
        - decided_by
        - decided_at
        - decision_note
        - follow_up_done_at
        - follow_up
        - created_at
        - updated_at
    RecallNoticeDetail:
      type: object
      properties:
        id:
          type: string
          format: uuid
        source:
          type: string
          description: >-
            The kind of notice, by jurisdiction: us_consumer_products,
            eu_consumer_products, uk_consumer_products, ca_recalls or
            ae_recalls. More are added over time; `authority` names the
            regulator
        source_id:
          type: string
          description: The notice's id at its publisher
        notice_type:
          type:
            - string
            - 'null'
        title:
          type:
            - string
            - 'null'
        published_on:
          type:
            - string
            - 'null'
          format: date
        jurisdiction:
          type: string
          description: ISO 3166-1 alpha-2 country, or EU
        product_name:
          type:
            - string
            - 'null'
        brand:
          type:
            - string
            - 'null'
        url:
          type:
            - string
            - 'null'
          description: The official notice
        source_updated_on:
          type:
            - string
            - 'null'
          format: date
          description: When the publisher last changed the notice
        model_numbers:
          type: array
          items:
            type: string
        gtins:
          type: array
          items:
            type: string
          description: GTINs the notice names, as 14 digits
        category:
          type:
            - string
            - 'null'
        hazard:
          type:
            - string
            - 'null'
        remedy:
          type:
            - string
            - 'null'
        first_seen_at:
          type: string
          format: date-time
        last_seen_at:
          type: string
          format: date-time
        authority:
          type: string
          description: The authority that issued the notice
      required:
        - id
        - source
        - source_id
        - notice_type
        - title
        - published_on
        - jurisdiction
        - product_name
        - brand
        - url
        - source_updated_on
        - model_numbers
        - gtins
        - category
        - hazard
        - remedy
        - first_seen_at
        - last_seen_at
        - authority
    RecallExposure:
      type: object
      properties:
        item:
          type: object
          properties:
            id:
              type: string
              format: uuid
            external_id:
              type: string
            description:
              type:
                - string
                - 'null'
          required:
            - id
            - external_id
            - description
        totals:
          type: object
          properties:
            on_hand:
              type: number
            in_transit:
              type: number
            locations_with_stock:
              type: integer
            open_purchase_quantity:
              type: number
              description: Units of the open purchase-order lines still to arrive
            inbound_ship_notice_quantity:
              type: number
              description: Units on ship notices for those lines that are not delivered yet
          required:
            - on_hand
            - in_transit
            - locations_with_stock
            - open_purchase_quantity
            - inbound_ship_notice_quantity
        locations:
          type: array
          items:
            type: object
            properties:
              location_id:
                type: string
                format: uuid
              external_id:
                type:
                  - string
                  - 'null'
              name:
                type:
                  - string
                  - 'null'
              country_code:
                type:
                  - string
                  - 'null'
              location_type:
                type:
                  - string
                  - 'null'
              on_hand:
                type: number
              in_transit:
                type: number
              positions:
                type: array
                items:
                  type: object
                  properties:
                    lot_id:
                      type:
                        - string
                        - 'null'
                      format: uuid
                    lot:
                      type:
                        - string
                        - 'null'
                      description: The lot's external id or lot code
                    expiry_date:
                      type:
                        - string
                        - 'null'
                      format: date
                    variant_id:
                      type:
                        - string
                        - 'null'
                      format: uuid
                    on_hand:
                      type: number
                    in_transit:
                      type: number
                    available:
                      type:
                        - number
                        - 'null'
                    uom:
                      type:
                        - string
                        - 'null'
                    as_of:
                      type: string
                      format: date-time
                      description: When the stock figure was taken
                  required:
                    - lot_id
                    - lot
                    - expiry_date
                    - variant_id
                    - on_hand
                    - in_transit
                    - available
                    - uom
                    - as_of
                description: The stock by lot and variant
            required:
              - location_id
              - external_id
              - name
              - country_code
              - location_type
              - on_hand
              - in_transit
              - positions
          description: Locations with stock on hand or in transit, largest first
        open_purchase_orders:
          type: array
          items:
            type: object
            properties:
              purchase_order_id:
                type: string
                format: uuid
              purchase_order:
                type: string
                description: The order's external id
              status:
                type: string
              supplier_id:
                type:
                  - string
                  - 'null'
                format: uuid
              line_id:
                type: string
                format: uuid
              line_number:
                type: integer
              location_id:
                type:
                  - string
                  - 'null'
                format: uuid
              location:
                type:
                  - string
                  - 'null'
                description: The receiving location's external id
              variant_id:
                type:
                  - string
                  - 'null'
                format: uuid
              quantity_open:
                type: number
                description: Ordered minus received
              expected_delivery_date:
                type:
                  - string
                  - 'null'
                format: date
            required:
              - purchase_order_id
              - purchase_order
              - status
              - supplier_id
              - line_id
              - line_number
              - location_id
              - location
              - variant_id
              - quantity_open
              - expected_delivery_date
          description: Open purchase-order lines of the item, soonest first
        inbound_ship_notices:
          type: array
          items:
            type: object
            properties:
              asn_id:
                type: string
                format: uuid
              ship_notice:
                type: string
                description: The ship notice's external id
              status:
                type: string
                enum:
                  - accepted
                  - flagged
              ship_date:
                type: string
                format: date
              expected_arrival_date:
                type:
                  - string
                  - 'null'
                format: date
              quantity:
                type: number
              shipment:
                type:
                  - object
                  - 'null'
                properties:
                  reference:
                    type: string
                  stage:
                    type:
                      - string
                      - 'null'
                  predicted_arrival:
                    type:
                      - string
                      - 'null'
                    format: date
                required:
                  - reference
                  - stage
                  - predicted_arrival
            required:
              - asn_id
              - ship_notice
              - status
              - ship_date
              - expected_arrival_date
              - quantity
              - shipment
        trace:
          type: object
          properties:
            tagged_units:
              type: boolean
              description: Whether tagged units of the item exist
            lots:
              type: array
              items:
                type: string
              description: The lots in stock
            item:
              type: string
              description: The item's external id
          required:
            - tagged_units
            - lots
            - item
          description: The lot and item to trace
        truncated:
          type: object
          properties:
            inventory:
              type: boolean
            purchase_order_lines:
              type: boolean
            ship_notices:
              type: boolean
          required:
            - inventory
            - purchase_order_lines
            - ship_notices
          description: Which of the lists were cut at their read limit
      required:
        - item
        - totals
        - locations
        - open_purchase_orders
        - inbound_ship_notices
        - trace
        - truncated
    RecallHoldTask:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: 'The hold task: a recommendation in the approvals queue'
        status:
          type: string
          enum:
            - proposed
            - approved
            - dismissed
            - expired
            - superseded
        location_id:
          type:
            - string
            - 'null'
          format: uuid
        quantity:
          type:
            - number
            - 'null'
          description: 'Units to hold: on hand plus in transit at the location when proposed'
        location:
          type:
            - string
            - 'null'
          description: The location's external id
        created_at:
          type: string
          format: date-time
        primary:
          type: boolean
          description: >-
            true when this match is the first notice the hold was proposed for;
            false when it was added to it later
        notices_total:
          type: integer
          description: Notices the hold covers
      required:
        - id
        - status
        - location_id
        - quantity
        - location
        - created_at
        - primary
        - notices_total
    RecallOpinion:
      type: object
      properties:
        id:
          type: string
          format: uuid
        match_id:
          type: string
          format: uuid
        likelihood:
          type: string
          enum:
            - likely_same_product
            - possibly_same_product
            - unlikely_same_product
            - cannot_tell
        reasons:
          type: array
          items:
            type: object
            properties:
              text:
                type: string
              fields:
                type: array
                items:
                  type: string
                  enum:
                    - notice_title
                    - notice_product_name
                    - notice_brand
                    - notice_model_numbers
                    - notice_category
                    - notice_hazard
                    - notice_description
                    - item_description
                    - item_brand
                    - item_model
                    - item_category
                description: The fields the reason compared
            required:
              - text
              - fields
          description: One to three reasons
        fields_sent:
          type: array
          items:
            type: string
            enum:
              - notice_title
              - notice_product_name
              - notice_brand
              - notice_model_numbers
              - notice_category
              - notice_hazard
              - notice_description
              - item_description
              - item_brand
              - item_model
              - item_category
          description: The fields of the notice and the item the opinion was given on
        fields_seen:
          type: array
          items:
            type: string
            enum:
              - notice_title
              - notice_product_name
              - notice_brand
              - notice_model_numbers
              - notice_category
              - notice_hazard
              - notice_description
              - item_description
              - item_brand
              - item_model
              - item_category
          description: Of those, the fields the opinion says it read
        model:
          type: string
          description: >-
            Always review-assistant: the opinion is an automated reading of the
            two records
        prompt_version:
          type: string
          description: The version of the instructions the reading followed
        input_hash:
          type: string
          description: Identifies the notice and item values the opinion was given on
        created_by:
          type:
            - string
            - 'null'
          format: uuid
        created_at:
          type: string
          format: date-time
        current:
          type:
            - boolean
            - 'null'
          description: >-
            Whether the notice and the item still read as they did when the
            opinion was given; null when not checked
        advisory:
          const: true
          description: 'Always true: the opinion decides nothing'
      required:
        - id
        - match_id
        - likelihood
        - reasons
        - fields_sent
        - fields_seen
        - model
        - prompt_version
        - input_hash
        - created_by
        - created_at
        - current
        - advisory
    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'
    NotFound:
      description: No such record in your organization
      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.