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

# Publish passport

> Publish a version (422 while blocking gaps remain). Publishing does not open the passport to the public: public_enabled does. A decision: the key's creator must still be a member.

Key scope: execute. Module: dpp.



## OpenAPI

````yaml /openapi.json post /v1/passports/{id}/publish
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}/publish:
    post:
      tags:
        - Product passports
      summary: Publish passport
      description: >-
        Publish a version (422 while blocking gaps remain). Publishing does not
        open the passport to the public: public_enabled does. A decision: the
        key's creator must still be a member.


        Key scope: execute. Module: dpp.
      operationId: publishPassport
      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: false
        content:
          application/json:
            schema:
              type: object
              properties:
                change_note:
                  type: string
                  maxLength: 500
              additionalProperties: false
            example:
              change_note: Bill of materials completed
      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:
                  passport:
                    $ref: '#/components/schemas/Passport'
                  version:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      version:
                        type: integer
                      checksum:
                        type: string
                        description: SHA-256 of the published content, hex
                      published_at:
                        type: string
                        format: date-time
                    required:
                      - id
                      - version
                      - checksum
                      - published_at
                  completeness:
                    $ref: '#/components/schemas/PassportCompleteness'
                  request_id:
                    type: string
                    description: >-
                      Quote this when asking about the request; also the
                      X-Request-ID header
                required:
                  - passport
                  - version
                  - completeness
                  - request_id
              example:
                passport:
                  id: 5f042be4-0cce-4a7f-ab93-bbcb8c35ef81
                  org_id: 4fc7a944-6245-4491-b6af-694bd6bd14cf
                  external_id: TOTE-MAT-00000023
                  granularity: model
                  item_id: 221641ba-5901-43de-bacd-998771b3a578
                  variant_id: null
                  lot_id: null
                  tracked_unit_id: null
                  item_external_id: MAT-00000023
                  lot_external_id: null
                  gtin: '00012345678905'
                  batch_lot: null
                  serial: null
                  title:
                    en: Canvas tote
                    fr: Cabas en toile
                  brand: Northwind Atelier
                  category: Handbags
                  status: published
                  published_version_id: 7cf4ec15-e6ae-4a3c-83b3-3e03f87cf808
                  draft_data:
                    impact:
                      water_m3: 0.4
                      energy_kwh: 3.2
                    durability:
                      - value: Grade 5
                        metric: abrasion
                        standard_ref: ISO 12947-2
                    image_urls:
                      - images/canvas-tote-front.jpg
                    circularity:
                      takeback_url: https://example.com/takeback
                      material_routes:
                        - route: metal_recycling
                          material: Brass
                      recyclability_route:
                        en: Leather is repurposable; hardware is recyclable.
                      takeback_scheme_name: Take-back
                      epr_registration_number: IT-EPR-0001
                    manufacturing:
                      assembly_country: IT
                      facility_country: IT
                      facility_external_id: FAC-IT-0001
                    repairability:
                      score: 8
                      summary:
                        en: Straps and hardware are replaceable.
                      spare_parts_url: https://example.com/spares
                      disassembly_steps:
                        - Unclip the strap.
                      disassembly_tools:
                        - Screwdriver
                    stage_origins:
                      - stage: fibre
                        country_code: IT
                    care_instructions:
                      en: Wipe with a soft, dry cloth.
                  completeness_score: 81.11
                  compliance_state: incomplete
                  ruleset_version: 2026.08-textile-v1
                  public_enabled: false
                  registry_ref: null
                  created_at: '2026-11-21T10:55:55.212128+00:00'
                  updated_at: '2026-11-21T10:55:55.614206+00:00'
                version:
                  id: 7cf4ec15-e6ae-4a3c-83b3-3e03f87cf808
                  version: 1
                  checksum: >-
                    981927c85ea8834e2ead3309678b336ca7d7407a45cfe7616c71be6db4a1de8f
                  published_at: '2026-11-21T10:55:55.609+00:00'
                completeness:
                  score: 81.11
                  sections:
                    - section: materials
                      label: Materials & composition
                      score: 81.82
                      met: 6
                      total: 7
                      weight: 22
                  gaps:
                    - id: impact.carbon_footprint
                      label: Product carbon footprint
                      section: impact
                      sectionLabel: Environmental impact
                      severity: required
                      weight: 5
                      remediation: Add the product carbon footprint in kg CO2e.
                      regulationRefs:
                        - ESPR 2024/1781 Annex I
                  blockingGaps: 0
                  requiredGaps: 4
                  applicable: 36
                  met: 29
                  rulesetVersion: 2026.08-textile-v1
                request_id: 2f15db65-1845-47b3-8248-da5971820d26
        '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:
    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
    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'
    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.