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

# Create passport origin evidence

> Extract origin evidence from a document of the passport (a PDF or an image, already uploaded): once per document, a repeat returns the stored result; 25 documents per passport.

Key scope: ingest. Module: dpp. Reading a document draws on your organization's daily budget for AI-assisted routes (429 model_budget_exceeded past it, with Retry-After). At most 25 documents per passport can be read: past that the answer is 429 with no Retry-After, and the evidence is entered by hand. 415 and 413 are about the stored document, not this request: only PDF and image documents of an evidence kind, up to 10 MB, can be read. 503 extraction_unavailable: reading is switched off for now. 502 extraction_failed: this reading failed and nothing was stored; try again



## OpenAPI

````yaml /openapi.json post /v1/passports/{id}/origin_evidence
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:
    post:
      tags:
        - Product passports
      summary: Create passport origin evidence
      description: >-
        Extract origin evidence from a document of the passport (a PDF or an
        image, already uploaded): once per document, a repeat returns the stored
        result; 25 documents per passport.


        Key scope: ingest. Module: dpp. Reading a document draws on your
        organization's daily budget for AI-assisted routes (429
        model_budget_exceeded past it, with Retry-After). At most 25 documents
        per passport can be read: past that the answer is 429 with no
        Retry-After, and the evidence is entered by hand. 415 and 413 are about
        the stored document, not this request: only PDF and image documents of
        an evidence kind, up to 10 MB, can be read. 503 extraction_unavailable:
        reading is switched off for now. 502 extraction_failed: this reading
        failed and nothing was stored; try again
      operationId: createPassportOriginEvidence
      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: 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:
                document_external_id:
                  type: string
                  minLength: 1
                  maxLength: 128
                  pattern: ^[A-Za-z0-9_.:@/-]+$
                  description: A document of this passport
              required:
                - document_external_id
              additionalProperties: false
            example:
              document_external_id: DOC-CERT-1
      responses:
        '200':
          description: 'The document was read before: the stored reading, with `cached` true'
          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'
            X-Model-Budget-Limit:
              $ref: '#/components/headers/X-Model-Budget-Limit'
            X-Model-Budget-Remaining:
              $ref: '#/components/headers/X-Model-Budget-Remaining'
          content:
            application/json:
              schema:
                type: object
                properties:
                  evidence:
                    $ref: '#/components/schemas/PassportOriginEvidence'
                  cached:
                    type: boolean
                  request_id:
                    type: string
                    description: >-
                      Quote this when asking about the request; also the
                      X-Request-ID header
                required:
                  - evidence
                  - cached
                  - request_id
        '201':
          description: Created
          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'
            X-Model-Budget-Limit:
              $ref: '#/components/headers/X-Model-Budget-Limit'
            X-Model-Budget-Remaining:
              $ref: '#/components/headers/X-Model-Budget-Remaining'
          content:
            application/json:
              schema:
                type: object
                properties:
                  evidence:
                    $ref: '#/components/schemas/PassportOriginEvidence'
                  cached:
                    type: boolean
                  request_id:
                    type: string
                    description: >-
                      Quote this when asking about the request; also the
                      X-Request-ID header
                required:
                  - evidence
                  - cached
                  - request_id
              example:
                evidence:
                  id: 266eac01-057f-44a1-9649-8dccbcce51a3
                  document_external_id: DOC-ORIGIN-04
                  document_title: Tannery declaration of origin 04
                  document_kind: certificate
                  status: pending
                  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-05'
                          page: 1
                          buyer: Macello Senese S.r.l.
                          seller: Azienda Agricola Val d'Orcia
                          quantity: 2400
                          regionFrom: null
                          countryFrom: null
                          documentReference: DDT-04
                      documentType: tannery_declaration
                      documentReference: TD-2026-04
                  extracted_at: '2026-11-21T09:39:13.011735+00:00'
                  suggested:
                    country: IT
                    regionCode: IT-52
                    regionName: Toscana
                    ambiguous: false
                  confirmed_country: null
                  confirmed_region_code: null
                  confirmed_region_name: null
                  material_external_ids: []
                  review_note: null
                  reviewed_by: null
                  reviewed_at: null
                  created_at: '2026-11-21T09:39:13.011735+00:00'
                cached: false
                request_id: 0b7e5c1a-3d2f-4a69-8c1e-7f5d2b9a6e10
        '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
    X-Model-Budget-Limit:
      schema:
        type: integer
      description: Calls to AI-assisted routes your organization may make per day
    X-Model-Budget-Remaining:
      schema:
        type: integer
      description: Of those, the calls left today (resets 00:00 UTC)
    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
    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.