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

# Get passport

> One passport with every field, its completeness and its GS1 Digital Link.

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



## OpenAPI

````yaml /openapi.json get /v1/passports/{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/passports/{id}:
    get:
      tags:
        - Product passports
      summary: Get passport
      description: >-
        One passport with every field, its completeness and its GS1 Digital
        Link.


        Key scope: read (or execute). Module: dpp.
      operationId: getPassport
      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
      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:
                  passport:
                    $ref: '#/components/schemas/Passport'
                  view:
                    $ref: '#/components/schemas/PassportInternalView'
                  completeness:
                    $ref: '#/components/schemas/PassportCompleteness'
                  digital_link:
                    type:
                      - string
                      - 'null'
                    description: >-
                      The GS1 Digital Link a scan resolves; null while the
                      passport has no GTIN
                  request_id:
                    type: string
                    description: >-
                      Quote this when asking about the request; also the
                      X-Request-ID header
                required:
                  - passport
                  - view
                  - completeness
                  - digital_link
                  - request_id
              example:
                passport:
                  id: f76d228e-6ab6-4c1b-b5b1-30266d2ebc98
                  org_id: 4fc7a944-6245-4491-b6af-694bd6bd14cf
                  external_id: NORTHWIND-HARBOR26-NH2601
                  granularity: item
                  item_id: 612b1c85-2ce5-4953-8eab-5963ad7e1201
                  variant_id: null
                  lot_id: e886ef53-5a6a-436b-a99c-44bdeaa13cd7
                  tracked_unit_id: e545efc5-c959-485f-9d5b-1c608116e801
                  item_external_id: NH2601
                  lot_external_id: LOT-2026-0212
                  gtin: '00400000000121'
                  batch_lot: LOT-2026-0212
                  serial: NW-26-0000001
                  title:
                    en: Harbor Shoulder Bag 26
                    fr: Sac porté épaule Harbor 26
                  brand: Northwind
                  category: Handbags
                  status: published
                  published_version_id: a866f7a4-0b87-49e4-b531-d1c9c2f01e75
                  draft_data:
                    impact:
                      method: ISO_14067
                      boundary: cradle_to_grave
                      water_m3: null
                      energy_kwh: null
                      carbon_kg_co2e: 24.6
                      methodology_note: >-
                        Cradle-to-grave footprint per ISO 14067, third-party
                        reviewed. Excludes consumer-phase care.
                    durability:
                      - value: Grade 5 (ISO 12947-2)
                        metric: abrasion
                        standard_ref: ISO 12947-2
                    image_urls:
                      - images/northwind-harbor-front.jpg
                    circularity:
                      takeback_url: https://www.example.com/second-life
                      material_routes:
                        - route: repurpose_second_life
                          material: Full-grain cowhide leather
                      recyclability_route:
                        en: >-
                          Leather body is repurposable through Northwind Second
                          Life; hardware is recyclable as brass once separated.
                      takeback_scheme_name: Northwind Second Life
                      epr_registration_number: IT-EPR-2026-441207
                    manufacturing:
                      assembly_country: IT
                      facility_country: IT
                      facility_external_id: FAC-IT-0112
                    repairability:
                      score: 8.9
                      summary:
                        en: >-
                          Repairable for life through Northwind repair counters.
                          Hardware, straps, and lining are all replaceable.
                      spare_parts_url: https://www.example.com/repair-counter
                      disassembly_steps:
                        - Remove the shoulder strap at both swivel clips.
                      disassembly_tools:
                        - PH0 screwdriver
                    stage_origins:
                      - stage: fibre
                        country_code: IT
                        facility_external_id: FAC-IT-0044
                    care_instructions:
                      en: >-
                        Wipe with a soft, dry cloth. Avoid prolonged exposure to
                        direct sunlight and moisture. Store in the dust bag.
                      fr: >-
                        Essuyer avec un chiffon doux et sec. Éviter l'exposition
                        prolongée au soleil et à l'humidité.
                  completeness_score: 91.75
                  compliance_state: incomplete
                  ruleset_version: 2026.08-textile-v1
                  public_enabled: true
                  registry_ref: null
                  created_at: '2026-11-21T09:18:15.073974+00:00'
                  updated_at: '2026-11-21T10:54:58.078597+00:00'
                view:
                  audience: internal
                  granularity: item
                  product:
                    title: Harbor Shoulder Bag 26
                    brand: Northwind
                    category: Handbags
                    imageRefs:
                      - images/northwind-harbor-detail.jpg
                  identifiers:
                    gtin: '00400000000121'
                    batchLot: LOT-2026-0212
                    serial: NW-26-0000001
                  origin:
                    assemblyCountry: IT
                    stages:
                      - stage: dyeing_finishing
                        countryCode: IT
                    manufacturedOn: '2026-05-31'
                  materials:
                    - externalRef: MAT-BODY
                      parentRef: null
                      componentName: Body
                      materialName: Full-grain cowhide leather
                      materialClass: leather
                      massG: 640
                      massSharePct: 82
                      recycledContentPct: 0
                      hazardous: false
                      originCountry: IT
                      processingStage: dyeing_finishing
                      provenance: brand_declared
                      certificateRef: null
                  care: >-
                    Wipe with a soft, dry cloth. Avoid prolonged exposure to
                    direct sunlight and moisture. Store in the dust bag.
                  durability:
                    - metric: abrasion
                      value: Grade 5 (ISO 12947-2)
                      standardRef: ISO 12947-2
                  repairability:
                    score: 8.9
                    summary: >-
                      Repairable for life through Northwind repair counters.
                      Hardware, straps, and lining are all replaceable.
                    sparePartsUrl: https://www.example.com/repair-counter
                    disassemblySteps:
                      - Remove the shoulder strap at both swivel clips.
                    disassemblyTools:
                      - PH0 screwdriver
                  circularity:
                    recyclabilityRoute: >-
                      Leather body is repurposable through Northwind Second
                      Life; hardware is recyclable as brass once separated.
                    takebackSchemeName: Northwind Second Life
                    takebackUrl: https://www.example.com/second-life
                    materialRoutes:
                      - material: Full-grain cowhide leather
                        route: repurpose_second_life
                    eprRegistrationNumber: IT-EPR-2026-441207
                  impact:
                    carbonKgCo2e: 24.6
                    method: ISO_14067
                    boundary: cradle_to_grave
                    methodologyNote: >-
                      Cradle-to-grave footprint per ISO 14067, third-party
                      reviewed. Excludes consumer-phase care.
                    waterM3: null
                    energyKwh: null
                  substances:
                    containsSvhc: false
                    declarationMade: true
                    items:
                      - substanceName: Chromium VI
                        casNumber: 18540-29-9
                        aboveThreshold: false
                        safeUseInstructions: >-
                          Chrome-free vegetable tannage; Cr(VI) not detected at
                          a 3 mg/kg limit of quantification.
                        ecNumber: 242-403-9
                        regulation: REACH_ANNEX_XVII
                        concentrationPpm: 0
                        scipRef: null
                  certifications:
                    - standardRef: LWG Gold
                      issuer: Leather Working Group
                      validUntil: '2027-12-31'
                  lifecycle:
                    - eventType: manufactured
                      'on': '2026-05-31T09:18:14.478+00:00'
                      countryCode: IT
                      actorKind: manufacturer
                      actorName: Pelletteria Toscana S.r.l.
                  compliance:
                    registryRef: null
                    completenessScore: 91.75
                    rulesetVersion: 2026.08-textile-v1
                    sections:
                      - section: materials
                        label: Materials & composition
                        score: 100
                        met: 7
                        total: 7
                    gaps:
                      - id: supply_chain.tier1
                        label: Tier-1 supplier linked
                        severity: required
                  version: 0
                  publishedAt: '2026-11-21T10:54:58.078597+00:00'
                  documents:
                    - documentRef: DOC-BOL-5521
                      kind: other
                      title: Bill of lading 5521
                      issuer: null
                      standardRef: null
                      validUntil: null
                  economicOperator:
                    legalName: Northwind Europe Services B.V.
                    eori: NL000000001
                    registeredAddress: Voorbeeldstraat 1, 1000 AA Amsterdam, Netherlands
                    contactEmail: planner@example.com
                  manufacturing:
                    facilityExternalId: FAC-IT-0112
                    facilityCountry: IT
                  suppliers: []
                completeness:
                  score: 91.75
                  sections:
                    - section: materials
                      label: Materials & composition
                      score: 100
                      met: 7
                      total: 7
                      weight: 22
                  gaps:
                    - id: supply_chain.tier1
                      label: Tier-1 supplier linked
                      section: supply_chain
                      sectionLabel: Supply chain
                      severity: required
                      weight: 4
                      remediation: Link the tier-1 manufacturer from your supplier master.
                      regulationRefs:
                        - ESPR 2024/1781 Art.9
                  blockingGaps: 0
                  requiredGaps: 1
                  applicable: 39
                  met: 34
                  rulesetVersion: 2026.08-textile-v1
                digital_link: >-
                  https://files.example.com/p/01/00400000000121/10/LOT-2026-0212/21/NW-26-0000001
                request_id: 35dfb313-f6eb-4e45-bd27-5331410ea5c3
        '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:
    Passport:
      type: object
      properties:
        id:
          type: string
          format: uuid
        external_id:
          type: string
          description: Your id for the passport
        granularity:
          type: string
          enum:
            - model
            - batch
            - item
          description: >-
            What one passport covers: a product model, a production batch, or a
            single item
        title:
          type: object
          additionalProperties:
            type: string
          description: Text by language tag (en, fr, ...)
        brand:
          type:
            - string
            - 'null'
        category:
          type:
            - string
            - 'null'
        gtin:
          type:
            - string
            - 'null'
          description: GTIN, 8 to 14 digits
        batch_lot:
          type:
            - string
            - 'null'
        serial:
          type:
            - string
            - 'null'
        status:
          type: string
          enum:
            - draft
            - published
            - archived
        compliance_state:
          type: string
          enum:
            - incomplete
            - ready
            - registered
            - failing
          description: >-
            incomplete: requirements are open; ready: nothing blocking or
            required is open; registered: ready and carrying a registry
            reference; failing: published with a blocking requirement open
        completeness_score:
          type: number
          description: How complete the passport is, 0 to 100
        public_enabled:
          type: boolean
          description: Whether the published passport answers anonymous scans
        updated_at:
          type: string
          format: date-time
        org_id:
          type: string
          format: uuid
        item_id:
          type: string
          format: uuid
          description: The item the passport is for
        variant_id:
          type:
            - string
            - 'null'
          format: uuid
        lot_id:
          type:
            - string
            - 'null'
          format: uuid
        tracked_unit_id:
          type:
            - string
            - 'null'
          format: uuid
        item_external_id:
          type:
            - string
            - 'null'
        lot_external_id:
          type:
            - string
            - 'null'
        published_version_id:
          type:
            - string
            - 'null'
          format: uuid
          description: The version of record; null until the passport is published
        draft_data:
          type: object
          additionalProperties: true
          description: >-
            The editorial fields you sent in draft_data, merged key by key and
            stored as sent: economic_operator, manufacturing, stage_origins,
            care_instructions, durability, repairability, circularity, impact,
            svhc_declaration_made, image_urls
        ruleset_version:
          type:
            - string
            - 'null'
          description: The version of the requirement set the score was taken against
        registry_ref:
          type:
            - string
            - 'null'
          description: The passport's reference in the registry, once registered
        created_at:
          type: string
          format: date-time
      required:
        - id
        - external_id
        - granularity
        - title
        - brand
        - category
        - gtin
        - batch_lot
        - serial
        - status
        - compliance_state
        - completeness_score
        - public_enabled
        - updated_at
        - org_id
        - item_id
        - variant_id
        - lot_id
        - tracked_unit_id
        - item_external_id
        - lot_external_id
        - published_version_id
        - draft_data
        - ruleset_version
        - registry_ref
        - created_at
    PassportInternalView:
      type: object
      properties:
        audience:
          const: internal
        granularity:
          type: string
          enum:
            - model
            - batch
            - item
        product:
          type: object
          properties:
            title:
              type:
                - string
                - 'null'
            brand:
              type:
                - string
                - 'null'
            category:
              type:
                - string
                - 'null'
            imageRefs:
              type: array
              items:
                type: string
          required:
            - title
            - brand
            - category
            - imageRefs
        identifiers:
          type: object
          properties:
            gtin:
              type:
                - string
                - 'null'
            batchLot:
              type:
                - string
                - 'null'
            serial:
              type:
                - string
                - 'null'
          required:
            - gtin
            - batchLot
            - serial
        origin:
          type: object
          properties:
            assemblyCountry:
              type:
                - string
                - 'null'
              description: ISO 3166-1 alpha-2 country code
            stages:
              type: array
              items:
                type: object
                properties:
                  stage:
                    type: string
                  countryCode:
                    type:
                      - string
                      - 'null'
                    description: ISO 3166-1 alpha-2 country code
                required:
                  - stage
                  - countryCode
            manufacturedOn:
              type:
                - string
                - 'null'
              description: YYYY-MM-DD when it is the lot's date; otherwise as you sent it
          required:
            - assemblyCountry
            - stages
            - manufacturedOn
        materials:
          type: array
          items:
            type: object
            properties:
              externalRef:
                type: string
              parentRef:
                type:
                  - string
                  - 'null'
              componentName:
                type:
                  - string
                  - 'null'
              materialName:
                type: string
              materialClass:
                type:
                  - string
                  - 'null'
              massG:
                type:
                  - number
                  - 'null'
              massSharePct:
                type:
                  - number
                  - 'null'
              recycledContentPct:
                type:
                  - number
                  - 'null'
              hazardous:
                type: boolean
              originCountry:
                type:
                  - string
                  - 'null'
                description: ISO 3166-1 alpha-2 country code
              processingStage:
                type:
                  - string
                  - 'null'
              provenance:
                type:
                  - string
                  - 'null'
                enum:
                  - brand_declared
                  - supplier_attested
                  - certificate
                  - null
              certificateRef:
                type:
                  - string
                  - 'null'
            required:
              - externalRef
              - parentRef
              - componentName
              - materialName
              - materialClass
              - massG
              - massSharePct
              - recycledContentPct
              - hazardous
              - originCountry
              - processingStage
              - provenance
              - certificateRef
        care:
          type:
            - string
            - 'null'
        durability:
          type: array
          items:
            type: object
            properties:
              metric:
                type: string
              value:
                type: string
              standardRef:
                type:
                  - string
                  - 'null'
            required:
              - metric
              - value
              - standardRef
        repairability:
          type:
            - object
            - 'null'
          properties:
            score:
              type:
                - number
                - 'null'
            summary:
              type:
                - string
                - 'null'
            sparePartsUrl:
              type:
                - string
                - 'null'
            disassemblySteps:
              type: array
              items:
                type: string
            disassemblyTools:
              type: array
              items:
                type: string
          required:
            - score
            - summary
            - sparePartsUrl
            - disassemblySteps
            - disassemblyTools
        circularity:
          type:
            - object
            - 'null'
          properties:
            recyclabilityRoute:
              type:
                - string
                - 'null'
            takebackSchemeName:
              type:
                - string
                - 'null'
            takebackUrl:
              type:
                - string
                - 'null'
            materialRoutes:
              type: array
              items:
                type: object
                properties:
                  material:
                    type: string
                  route:
                    type: string
                required:
                  - material
                  - route
            eprRegistrationNumber:
              type:
                - string
                - 'null'
          required:
            - recyclabilityRoute
            - takebackSchemeName
            - takebackUrl
            - materialRoutes
            - eprRegistrationNumber
        impact:
          type:
            - object
            - 'null'
          properties:
            carbonKgCo2e:
              type:
                - number
                - 'null'
            method:
              type:
                - string
                - 'null'
            boundary:
              type:
                - string
                - 'null'
            methodologyNote:
              type:
                - string
                - 'null'
            waterM3:
              type:
                - number
                - 'null'
            energyKwh:
              type:
                - number
                - 'null'
          required:
            - carbonKgCo2e
            - method
            - boundary
            - methodologyNote
            - waterM3
            - energyKwh
        substances:
          type: object
          properties:
            containsSvhc:
              type: boolean
            declarationMade:
              type: boolean
            items:
              type: array
              items:
                type: object
                properties:
                  substanceName:
                    type: string
                  casNumber:
                    type:
                      - string
                      - 'null'
                  aboveThreshold:
                    type: boolean
                  safeUseInstructions:
                    type:
                      - string
                      - 'null'
                  ecNumber:
                    type:
                      - string
                      - 'null'
                  regulation:
                    type: string
                    enum:
                      - REACH_SVHC
                      - REACH_ANNEX_XVII
                      - POP
                      - CLP
                  concentrationPpm:
                    type:
                      - number
                      - 'null'
                  scipRef:
                    type:
                      - string
                      - 'null'
                required:
                  - substanceName
                  - casNumber
                  - aboveThreshold
                  - safeUseInstructions
                  - ecNumber
                  - regulation
                  - concentrationPpm
                  - scipRef
          required:
            - containsSvhc
            - declarationMade
            - items
        certifications:
          type: array
          items:
            type: object
            properties:
              standardRef:
                type:
                  - string
                  - 'null'
              issuer:
                type:
                  - string
                  - 'null'
              validUntil:
                type:
                  - string
                  - 'null'
                format: date
            required:
              - standardRef
              - issuer
              - validUntil
        lifecycle:
          type: array
          items:
            type: object
            properties:
              eventType:
                type: string
                enum:
                  - manufactured
                  - quality_checked
                  - shipped
                  - received
                  - sold
                  - repaired
                  - refurbished
                  - resold
                  - returned
                  - recycled
                  - disposed
                  - recalled
                  - inspected
              'on':
                type: string
                format: date-time
              countryCode:
                type:
                  - string
                  - 'null'
                description: ISO 3166-1 alpha-2 country code
              actorKind:
                type:
                  - string
                  - 'null'
              actorName:
                type:
                  - string
                  - 'null'
            required:
              - eventType
              - 'on'
              - countryCode
              - actorKind
              - actorName
        compliance:
          type: object
          properties:
            registryRef:
              type:
                - string
                - 'null'
            completenessScore:
              type: number
            rulesetVersion:
              type: string
            sections:
              type: array
              items:
                type: object
                properties:
                  section:
                    type: string
                    enum:
                      - identity
                      - materials
                      - substances
                      - circularity
                      - impact
                      - supply_chain
                      - compliance
                      - lifecycle
                  label:
                    type: string
                  score:
                    type: number
                  met:
                    type: integer
                  total:
                    type: integer
                required:
                  - section
                  - label
                  - score
                  - met
                  - total
            gaps:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                  label:
                    type: string
                  severity:
                    type: string
                    enum:
                      - blocking
                      - required
                      - recommended
                    description: >-
                      blocking: the passport cannot be published without it;
                      required: expected; recommended: good practice
                required:
                  - id
                  - label
                  - severity
          required:
            - registryRef
            - completenessScore
            - rulesetVersion
            - sections
            - gaps
        version:
          type: integer
          description: '0: this view is the working draft, not a published version'
        publishedAt:
          type: string
          format: date-time
          description: When the passport last changed
        documents:
          type: array
          items:
            type: object
            properties:
              documentRef:
                type: string
                description: The document's external id
              kind:
                type: string
                enum:
                  - certificate
                  - test_report
                  - declaration_of_conformity
                  - care_label
                  - image
                  - repair_manual
                  - disassembly_guide
                  - other
              title:
                type: string
              issuer:
                type:
                  - string
                  - 'null'
              standardRef:
                type:
                  - string
                  - 'null'
              validUntil:
                type:
                  - string
                  - 'null'
                format: date
            required:
              - documentRef
              - kind
              - title
              - issuer
              - standardRef
              - validUntil
        economicOperator:
          type:
            - object
            - 'null'
          properties:
            legalName:
              type:
                - string
                - 'null'
            eori:
              type:
                - string
                - 'null'
            registeredAddress:
              type:
                - string
                - 'null'
            contactEmail:
              type:
                - string
                - 'null'
          required:
            - legalName
            - eori
            - registeredAddress
            - contactEmail
        manufacturing:
          type:
            - object
            - 'null'
          properties:
            facilityExternalId:
              type:
                - string
                - 'null'
            facilityCountry:
              type:
                - string
                - 'null'
              description: ISO 3166-1 alpha-2 country code
          required:
            - facilityExternalId
            - facilityCountry
        suppliers:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              countryCode:
                type:
                  - string
                  - 'null'
                description: ISO 3166-1 alpha-2 country code
              role:
                type:
                  - string
                  - 'null'
              tier:
                type:
                  - number
                  - 'null'
            required:
              - name
              - countryCode
              - role
              - tier
      required:
        - audience
        - granularity
        - product
        - identifiers
        - origin
        - materials
        - care
        - durability
        - repairability
        - circularity
        - impact
        - substances
        - certifications
        - lifecycle
        - compliance
        - version
        - publishedAt
        - documents
        - economicOperator
        - manufacturing
        - suppliers
      description: >-
        The passport as your own organization sees it: every field, from the
        working draft
    PassportCompleteness:
      type: object
      properties:
        score:
          type: number
          description: >-
            How complete the passport is, 0 to 100, over the requirements that
            apply to it
        sections:
          type: array
          items:
            type: object
            properties:
              section:
                type: string
                enum:
                  - identity
                  - materials
                  - substances
                  - circularity
                  - impact
                  - supply_chain
                  - compliance
                  - lifecycle
              label:
                type: string
              score:
                type: number
                description: 0 to 100 within the section
              met:
                type: integer
              total:
                type: integer
                description: Requirements of the section that apply to this passport
              weight:
                type: number
            required:
              - section
              - label
              - score
              - met
              - total
              - weight
        gaps:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                description: The requirement, for example identity.gtin
              label:
                type: string
              section:
                type: string
                enum:
                  - identity
                  - materials
                  - substances
                  - circularity
                  - impact
                  - supply_chain
                  - compliance
                  - lifecycle
              sectionLabel:
                type: string
              severity:
                type: string
                enum:
                  - blocking
                  - required
                  - recommended
                description: >-
                  blocking: the passport cannot be published without it;
                  required: expected; recommended: good practice
              weight:
                type: number
                description: The requirement's share of the 0 to 100 score
              remediation:
                type: string
                description: What to do to meet it
              regulationRefs:
                type: array
                items:
                  type: string
            required:
              - id
              - label
              - section
              - sectionLabel
              - severity
              - weight
              - remediation
              - regulationRefs
          description: The requirements not met, most severe first
        blockingGaps:
          type: integer
        requiredGaps:
          type: integer
        applicable:
          type: integer
          description: Requirements that apply to this passport
        met:
          type: integer
        rulesetVersion:
          type: string
      required:
        - score
        - sections
        - gaps
        - blockingGaps
        - requiredGaps
        - applicable
        - met
        - rulesetVersion
    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.