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

# Review passport origin evidence

> Confirm or reject origin evidence; confirm needs country. A decision: the key's creator must still be a member.

Key scope: execute. Module: dpp.



## OpenAPI

````yaml /openapi.json post /v1/passports/{id}/origin_evidence/{evidence_id}/review
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/passports/{id}/origin_evidence/{evidence_id}/review:
    post:
      tags:
        - Product passports
      summary: Review passport origin evidence
      description: >-
        Confirm or reject origin evidence; confirm needs country. A decision:
        the key's creator must still be a member.


        Key scope: execute. Module: dpp.
      operationId: reviewPassportOriginEvidence
      parameters:
        - name: id
          in: path
          required: true
          schema:
            oneOf:
              - type: string
                format: uuid
              - type: string
                pattern: ^ext:.{1,256}$
          description: >-
            The record's id (a UUID), or `ext:<external_id>` with your own id
            for it, URL-encoded
        - name: evidence_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: The id from the passport's origin evidence list
        - name: Idempotency-Key
          in: header
          required: false
          schema:
            type: string
            minLength: 1
            maxLength: 128
            pattern: ^[\x21-\x7E]{1,128}$
          description: >-
            Makes a retry safe for 24 hours: the same key and body replays the
            first answer (Idempotency-Replayed: true), another body is 422
            idempotency_key_reused, a request still running is 409
            idempotency_key_in_use
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                decision:
                  type: string
                  enum:
                    - confirm
                    - reject
                note:
                  type: string
                  maxLength: 500
                country:
                  type: string
                  pattern: ^[A-Za-z]{2}$
                  description: >-
                    The origin country you confirm (ISO 3166-1 alpha-2).
                    Required when decision is confirm
                region_code:
                  type: string
                  maxLength: 6
                  pattern: ^[A-Za-z]{2}-[A-Za-z0-9]{1,3}$
                  description: ISO 3166-2 subdivision of the confirmed country, e.g. IN-GJ
                region_name:
                  type: string
                  maxLength: 120
                material_external_ids:
                  type: array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 128
                    pattern: ^[A-Za-z0-9_.:@/-]+$
                  maxItems: 50
                plot_commodity:
                  type: string
                  enum:
                    - cattle
                    - leather
                    - wood
                    - rubber
                    - coffee
                    - cocoa
                    - palm_oil
                    - soy
                  description: >-
                    Required when decision is confirm and the document carries
                    plots
              required:
                - decision
              additionalProperties: false
            example:
              decision: confirm
              country: IN
              region_code: IN-GJ
              region_name: Gujarat
              material_external_ids:
                - MAT-BODY
              note: Matches the supplier's declaration
      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'
            Idempotency-Replayed:
              $ref: '#/components/headers/Idempotency-Replayed'
          content:
            application/json:
              schema:
                type: object
                properties:
                  evidence:
                    $ref: '#/components/schemas/PassportOriginEvidence'
                  report:
                    oneOf:
                      - $ref: '#/components/schemas/PassportUflpaReport'
                      - type: 'null'
                  eudr:
                    oneOf:
                      - $ref: '#/components/schemas/PassportEudrReadiness'
                      - type: 'null'
                  written:
                    type:
                      - object
                      - 'null'
                    properties:
                      transfers:
                        type: integer
                        description: Custody transfers added from the document
                      plots:
                        type: integer
                        description: Plots added from the document
                      skipped_steps:
                        type: array
                        items:
                          type: object
                          properties:
                            step:
                              type: integer
                              description: 1-based position in the document's custody steps
                            reason:
                              type: string
                          required:
                            - step
                            - reason
                      skipped_plots:
                        type: array
                        items:
                          type: object
                          properties:
                            plot:
                              type: integer
                              description: 1-based position in the document's plots
                            reason:
                              type: string
                          required:
                            - plot
                            - reason
                    required:
                      - transfers
                      - plots
                      - skipped_steps
                      - skipped_plots
                    description: >-
                      What a confirmation wrote; report, eudr and written are
                      null after a rejection
                  request_id:
                    type: string
                    description: >-
                      Quote this when asking about the request; also the
                      X-Request-ID header
                required:
                  - evidence
                  - report
                  - eudr
                  - written
                  - request_id
              example:
                evidence:
                  id: cf8b2ad5-f389-4a81-9f65-960fdebb5651
                  document_external_id: DOC-ORIGIN-03
                  document_title: Tannery declaration of origin 03
                  document_kind: certificate
                  status: confirmed
                  extraction:
                    ok: true
                    extraction:
                      plots:
                        - page: 2
                          label: Pasture A
                          areaHa: 2.8
                          country: IT
                          geometry:
                            type: Point
                            coordinates:
                              - 11.58
                              - 43.07
                      issuer: Conceria Modello S.p.A.
                      origins:
                        - page: 1
                          country: IT
                          material: Bovine hides
                          regionCode: IT-52
                          regionName: Toscana
                      warnings:
                        - plot_point_without_area
                      confidence: high
                      custodySteps:
                        - uom: kg
                          date: '2026-01-04'
                          page: 1
                          buyer: Macello Senese S.r.l.
                          seller: Azienda Agricola Val d'Orcia
                          quantity: 2400
                          regionFrom: null
                          countryFrom: null
                          documentReference: DDT-03
                      documentType: tannery_declaration
                      documentReference: TD-2026-03
                  extracted_at: '2026-11-21T09:39:13.011735+00:00'
                  suggested:
                    country: IT
                    regionCode: IT-52
                    regionName: Toscana
                    ambiguous: false
                  confirmed_country: IT
                  confirmed_region_code: IT-52
                  confirmed_region_name: Toscana
                  material_external_ids:
                    - MAT-BODY
                  review_note: Checked against the supplier's declaration
                  reviewed_by: api_key:00000000-0000-4000-8000-000000000001
                  reviewed_at: '2026-11-21T10:55:55.561+00:00'
                  created_at: '2026-11-21T09:39:13.011735+00:00'
                report:
                  rulesetVersion: 2026.08-uflpa-v1
                  regionsVersion: 2026.08-uflpa-regions-v1
                  effectiveDate: '2026-08-20'
                  basis: >-
                    Based on the UFLPA (Pub. L. 117-78) rebuttable presumption
                    and CBP's Operational Guidance for Importers (June 2022) on
                    admissibility pack...
                  asOf: '2026-11-21'
                  verdict: gaps_found
                  checks:
                    - id: custody.chain_present
                      label: Chain of custody recorded
                      status: pass
                      detail: null
                      remediation: null
                      regulationRefs:
                        - UFLPA §3
                  counts:
                    pass: 6
                    fail: 3
                    manualReview: 0
                    notApplicable: 0
                eudr:
                  inScope: true
                  ready: true
                  gaps: []
                  plotCount: 18
                  coveredMaterials:
                    - MAT-BODY
                  uncoveredMaterials: []
                written:
                  transfers: 2
                  plots: 1
                  skipped_steps:
                    - step: 3
                      reason: no_date
                  skipped_plots:
                    - plot: 2
                      reason: point_requires_area
                request_id: 2d3650d5-2c4e-4be7-8d7d-3c3b2468e8c9
        '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'
        '409':
          $ref: '#/components/responses/Conflict'
        '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
    Idempotency-Replayed:
      schema:
        type: string
        enum:
          - 'true'
      description: >-
        Present, and true, when the answer is the stored answer of an earlier
        request with the same Idempotency-Key
    Allow:
      schema:
        type: string
      description: The methods the path takes
    Retry-After:
      schema:
        type: integer
      description: Seconds to wait before trying again
  schemas:
    PassportOriginEvidence:
      type: object
      properties:
        id:
          type: string
          format: uuid
        document_external_id:
          type: string
        document_title:
          type: string
        document_kind:
          type: string
          enum:
            - certificate
            - test_report
            - declaration_of_conformity
            - care_label
            - image
            - repair_manual
            - disassembly_guide
            - other
        status:
          type: string
          enum:
            - pending
            - confirmed
            - rejected
          description: pending until a person confirms or rejects the reading
        extraction:
          oneOf:
            - type: object
              properties:
                ok:
                  const: true
                extraction:
                  type: object
                  properties:
                    documentType:
                      type: string
                      enum:
                        - transaction_certificate
                        - bill_of_lading
                        - gin_declaration
                        - tannery_declaration
                        - farm_declaration
                        - plot_geolocation
                        - other_traceability
                        - not_traceability
                    issuer:
                      type:
                        - string
                        - 'null'
                    documentReference:
                      type:
                        - string
                        - 'null'
                    origins:
                      type: array
                      items:
                        type: object
                        properties:
                          country:
                            type: string
                            description: ISO 3166-1 alpha-2 country code
                          regionCode:
                            type:
                              - string
                              - 'null'
                            description: ISO 3166-2 subdivision code, for example IT-52
                          regionName:
                            type:
                              - string
                              - 'null'
                            description: The region as the document prints it
                          material:
                            type:
                              - string
                              - 'null'
                          page:
                            type:
                              - integer
                              - 'null'
                            description: The page of the document it was read from
                        required:
                          - country
                          - regionCode
                          - regionName
                          - material
                          - page
                    plots:
                      type: array
                      items:
                        type: object
                        properties:
                          label:
                            type:
                              - string
                              - 'null'
                          country:
                            type:
                              - string
                              - 'null'
                            description: ISO 3166-1 alpha-2 country code
                          geometry:
                            $ref: '#/components/schemas/PassportPlotGeometry'
                          areaHa:
                            type:
                              - number
                              - 'null'
                          page:
                            type:
                              - integer
                              - 'null'
                            description: The page of the document it was read from
                        required:
                          - label
                          - country
                          - geometry
                          - areaHa
                          - page
                    custodySteps:
                      type: array
                      items:
                        type: object
                        properties:
                          seller:
                            type: string
                          buyer:
                            type: string
                          date:
                            type:
                              - string
                              - 'null'
                            format: date
                          quantity:
                            type:
                              - number
                              - 'null'
                          uom:
                            type:
                              - string
                              - 'null'
                          documentReference:
                            type:
                              - string
                              - 'null'
                          countryFrom:
                            type:
                              - string
                              - 'null'
                            description: ISO 3166-1 alpha-2 country code
                          regionFrom:
                            type:
                              - string
                              - 'null'
                            description: ISO 3166-2 subdivision code, for example IT-52
                          page:
                            type:
                              - integer
                              - 'null'
                            description: The page of the document it was read from
                        required:
                          - seller
                          - buyer
                          - date
                          - quantity
                          - uom
                          - documentReference
                          - countryFrom
                          - regionFrom
                          - page
                    confidence:
                      type: string
                      enum:
                        - high
                        - medium
                        - low
                    warnings:
                      type: array
                      items:
                        type: string
                      description: >-
                        Findings for the reviewer, for example
                        custody_date_in_future
                  required:
                    - documentType
                    - issuer
                    - documentReference
                    - origins
                    - plots
                    - custodySteps
                    - confidence
                    - warnings
              required:
                - ok
                - extraction
            - type: object
              properties:
                ok:
                  const: false
                reason:
                  type: string
                  description: >-
                    Why nothing usable was read, for example nothing_extracted
                    or not_traceability_document
              required:
                - ok
                - reason
          description: What was read from the document
        extracted_at:
          type: string
          format: date-time
        suggested:
          type:
            - object
            - 'null'
          properties:
            country:
              type:
                - string
                - 'null'
              description: ISO 3166-1 alpha-2 country code
            regionCode:
              type:
                - string
                - 'null'
              description: ISO 3166-2 subdivision code, for example IT-52
            regionName:
              type:
                - string
                - 'null'
            ambiguous:
              type: boolean
              description: >-
                True when the document names more than one origin: the reviewer
                must choose
          required:
            - country
            - regionCode
            - regionName
            - ambiguous
          description: >-
            The origin the review form opens with; null when nothing usable was
            read
        confirmed_country:
          type:
            - string
            - 'null'
          description: ISO 3166-1 alpha-2 country code
        confirmed_region_code:
          type:
            - string
            - 'null'
          description: ISO 3166-2 subdivision code, for example IT-52
        confirmed_region_name:
          type:
            - string
            - 'null'
        material_external_ids:
          type: array
          items:
            type: string
          description: The passport's materials the confirmed origin covers
        review_note:
          type:
            - string
            - 'null'
        reviewed_by:
          type:
            - string
            - 'null'
          description: 'Who decided: an email, or api_key:<id>'
        reviewed_at:
          type:
            - string
            - 'null'
          format: date-time
        created_at:
          type: string
          format: date-time
      required:
        - id
        - document_external_id
        - document_title
        - document_kind
        - status
        - extraction
        - extracted_at
        - suggested
        - confirmed_country
        - confirmed_region_code
        - confirmed_region_name
        - material_external_ids
        - review_note
        - reviewed_by
        - reviewed_at
        - created_at
    PassportUflpaReport:
      type: object
      properties:
        rulesetVersion:
          type: string
        regionsVersion:
          type: string
        effectiveDate:
          type: string
          format: date
        basis:
          type: string
        asOf:
          type: string
          format: date
        verdict:
          type: string
          enum:
            - would_clear
            - gaps_found
            - manual_review
          description: >-
            would_clear: every check passes; gaps_found: at least one fails;
            manual_review: nothing fails but a person must look
        checks:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              label:
                type: string
              status:
                type: string
                enum:
                  - pass
                  - fail
                  - manual_review
                  - not_applicable
              detail:
                type:
                  - string
                  - 'null'
              remediation:
                type:
                  - string
                  - 'null'
                description: What to do; null when the check passes or does not apply
              regulationRefs:
                type: array
                items:
                  type: string
            required:
              - id
              - label
              - status
              - detail
              - remediation
              - regulationRefs
        counts:
          type: object
          properties:
            pass:
              type: integer
            fail:
              type: integer
            manualReview:
              type: integer
            notApplicable:
              type: integer
          required:
            - pass
            - fail
            - manualReview
            - notApplicable
      required:
        - rulesetVersion
        - regionsVersion
        - effectiveDate
        - basis
        - asOf
        - verdict
        - checks
        - counts
    PassportEudrReadiness:
      type: object
      properties:
        inScope:
          type: boolean
          description: >-
            Whether any material of the passport falls under the deforestation
            regulation
        ready:
          type: boolean
          description: In scope and nothing is missing for a due diligence statement
        gaps:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              label:
                type: string
            required:
              - id
              - label
        plotCount:
          type: integer
        coveredMaterials:
          type: array
          items:
            type: string
          description: External ids of the in-scope materials with a valid plot
        uncoveredMaterials:
          type: array
          items:
            type: string
      required:
        - inScope
        - ready
        - gaps
        - plotCount
        - coveredMaterials
        - uncoveredMaterials
    PassportPlotGeometry:
      oneOf:
        - type: object
          properties:
            type:
              const: Point
            coordinates:
              type: array
              items:
                type: number
              description: Longitude, latitude
          required:
            - type
            - coordinates
          additionalProperties: true
        - type: object
          properties:
            type:
              const: Polygon
            coordinates:
              type: array
              items:
                type: array
                items:
                  type: array
                  items:
                    type: number
              description: >-
                Rings of longitude, latitude positions; the first ring is the
                outline
          required:
            - type
            - coordinates
          additionalProperties: true
    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'
    Conflict:
      description: >-
        The request conflicts with the record's current state, or its
        Idempotency-Key is still in use
      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'
    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.