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

# List forecast accuracy

> Forecast accuracy measured on your own sales history: ours against naive and seasonal naive, with error, bias, scaled error and sample size per level.

Key scope: read (or execute). Answers the list object (object, data, has_more, next_cursor); the same rows stay under `rows`, deprecated.



## OpenAPI

````yaml /openapi.json get /v1/inventory/forecast_accuracy
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/inventory/forecast_accuracy:
    get:
      tags:
        - Inventory
      summary: List forecast accuracy
      description: >-
        Forecast accuracy measured on your own sales history: ours against naive
        and seasonal naive, with error, bias, scaled error and sample size per
        level.


        Key scope: read (or execute). Answers the list object (object, data,
        has_more, next_cursor); the same rows stay under `rows`, deprecated.
      operationId: listForecastAccuracy
      parameters:
        - name: level
          in: query
          required: false
          schema:
            type: string
            enum:
              - item_location
              - item
              - category
              - location
              - location_type
              - org
            default: item
        - name: period
          in: query
          required: false
          schema:
            type: string
            enum:
              - summary
              - weekly
            default: summary
          description: >-
            weekly: one row per origin week (levels category, location_type,
            org)
        - name: from
          in: query
          required: false
          schema:
            type: string
            format: date
          description: First origin week (weekly only)
        - name: to
          in: query
          required: false
          schema:
            type: string
            format: date
          description: Last origin week (weekly only)
        - name: item
          in: query
          required: false
          schema:
            type: string
            maxLength: 100
          description: Item external id (levels item, item_location)
        - name: location
          in: query
          required: false
          schema:
            type: string
            maxLength: 100
          description: Location external id (levels location, item_location)
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - ok
              - insufficient_history
              - no_actuals
        - name: sort
          in: query
          required: false
          schema:
            type: string
            enum:
              - worst
              - value_add
              - bias
              - volume
              - name
              - period
          description: Default worst (summary) or period (weekly)
        - name: evaluation_id
          in: query
          required: false
          schema:
            type: string
            format: uuid
          description: >-
            An earlier evaluation, by the `id` of `evaluation` (default: the
            newest)
        - name: run_id
          in: query
          required: false
          schema:
            type: string
            format: uuid
          description: 'Deprecated: use evaluation_id'
          deprecated: true
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 100
        - name: cursor
          in: query
          required: false
          schema:
            type: string
            maxLength: 200
          description: next_cursor of the previous page
      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:
                  object:
                    const: list
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ForecastAccuracyRow'
                  has_more:
                    type: boolean
                    description: Whether a further page exists
                  next_cursor:
                    type:
                      - string
                      - 'null'
                    description: Send as `cursor` for the next page; null on the last page
                  rows:
                    type: array
                    items:
                      $ref: '#/components/schemas/ForecastAccuracyRow'
                    deprecated: true
                    description: 'Deprecated: the same rows as `data`'
                  status:
                    type: string
                    enum:
                      - no_results
                      - no_history
                      - insufficient_history
                      - ok
                    description: >-
                      no_results: accuracy has not been measured on this
                      organization yet
                  message:
                    type:
                      - string
                      - 'null'
                    description: Why there are no numbers; null when status is ok
                  evaluation:
                    oneOf:
                      - $ref: '#/components/schemas/ForecastEvaluation'
                      - type: 'null'
                    description: >-
                      The measurement the rows come from; null when status is
                      no_results
                  overall:
                    oneOf:
                      - $ref: '#/components/schemas/ForecastAccuracyRow'
                      - type: 'null'
                    description: The whole organization's row; null unless status is ok
                  filters:
                    type: object
                    properties:
                      level:
                        type: string
                        enum:
                          - item_location
                          - item
                          - category
                          - location
                          - location_type
                          - org
                      period:
                        type: string
                        enum:
                          - summary
                          - weekly
                      from:
                        type:
                          - string
                          - 'null'
                        format: date
                      to:
                        type:
                          - string
                          - 'null'
                        format: date
                      item:
                        type:
                          - string
                          - 'null'
                      location:
                        type:
                          - string
                          - 'null'
                      status:
                        type:
                          - string
                          - 'null'
                        enum:
                          - ok
                          - insufficient_history
                          - no_actuals
                          - null
                      sort:
                        type: string
                        enum:
                          - worst
                          - value_add
                          - bias
                          - volume
                          - name
                          - period
                      evaluation_id:
                        type:
                          - string
                          - 'null'
                        format: uuid
                    required:
                      - level
                      - period
                      - from
                      - to
                      - item
                      - location
                      - status
                      - sort
                      - evaluation_id
                    description: The filters as used
                  page:
                    type: object
                    properties:
                      limit:
                        type: integer
                      total:
                        type:
                          - integer
                          - 'null'
                        description: Rows matching the filters
                      has_more:
                        type: boolean
                        deprecated: true
                        description: 'Deprecated: the same as the top-level has_more'
                      next_cursor:
                        type:
                          - string
                          - 'null'
                        deprecated: true
                        description: 'Deprecated: the same as the top-level next_cursor'
                    required:
                      - limit
                      - total
                      - has_more
                      - next_cursor
                  data_as_of:
                    type:
                      - string
                      - 'null'
                    format: date-time
                  notes:
                    type: array
                    items:
                      type: string
                  duration_ms:
                    type: integer
                    description: Milliseconds the request took
                  request_id:
                    type: string
                    description: >-
                      Quote this when asking about the request; also the
                      X-Request-ID header
                required:
                  - object
                  - data
                  - has_more
                  - next_cursor
                  - rows
                  - status
                  - message
                  - evaluation
                  - overall
                  - filters
                  - page
                  - data_as_of
                  - notes
                  - duration_ms
                  - request_id
              example:
                request_id: f59d1764-d6de-40a1-9e7e-69526a6910cf
                status: ok
                message: null
                overall:
                  level: org
                  node: org
                  label: Whole organization
                  item_id: null
                  location_id: null
                  period_start: null
                  status: ok
                  reason: null
                  sample:
                    leaves: 4050
                    origins: 26
                    points: 52
                    actual_total: 412600
                    history_weeks: 61
                  ours:
                    mae: 6.2
                    rmse: 8.4
                    bias: -0.6
                    bias_pct: -1.7
                    wape_pct: 17.5
                    mase: 0.81
                    rmsse: 0.84
                    mae_by_horizon:
                      - 5.58
                      - 6.82
                    bias_by_horizon:
                      - -0.6
                      - -0.6
                    methods:
                      smoothed_weekday: 22
                      intermittent: 4
                  naive:
                    mae: 7.9
                    rmse: 10
                    bias: 0.3
                    bias_pct: 0.8
                    wape_pct: 22.3
                    mase: 1
                    rmsse: 1
                    mae_by_horizon:
                      - 7.11
                      - 8.69
                    bias_by_horizon:
                      - 0.3
                      - 0.3
                  seasonal_naive:
                    mae: 8.3
                    rmse: 10.9
                    bias: 1.1
                    bias_pct: 3.1
                    wape_pct: 23.4
                    mase: 1.05
                    rmsse: 1.09
                    mae_by_horizon:
                      - 7.47
                      - 9.13
                    bias_by_horizon:
                      - 1.1
                      - 1.1
                    seasonal_share: 0.42
                  value_add:
                    rmsse_ratio: 0.84
                    wape_points: 4.8
                    beats_naive: true
                filters:
                  level: item
                  period: summary
                  from: null
                  to: null
                  item: null
                  location: null
                  status: null
                  sort: worst
                  evaluation_id: null
                rows:
                  - level: item
                    node: MAT-00000029
                    label: Handbags - Style 00000029
                    item_id: f29f7ba4-eb59-4852-85ec-3bf82a4678d4
                    location_id: null
                    period_start: null
                    status: ok
                    reason: null
                    sample:
                      leaves: 12
                      origins: 26
                      points: 52
                      actual_total: 1840
                      history_weeks: 61
                    ours:
                      mae: 6.2
                      rmse: 8.4
                      bias: -0.6
                      bias_pct: -1.7
                      wape_pct: 17.5
                      mase: 0.81
                      rmsse: 0.84
                      mae_by_horizon:
                        - 5.58
                        - 6.82
                      bias_by_horizon:
                        - -0.6
                        - -0.6
                      methods:
                        smoothed_weekday: 22
                        intermittent: 4
                    naive:
                      mae: 7.9
                      rmse: 10
                      bias: 0.3
                      bias_pct: 0.8
                      wape_pct: 22.3
                      mase: 1
                      rmsse: 1
                      mae_by_horizon:
                        - 7.11
                        - 8.69
                      bias_by_horizon:
                        - 0.3
                        - 0.3
                    seasonal_naive:
                      mae: 8.3
                      rmse: 10.9
                      bias: 1.1
                      bias_pct: 3.1
                      wape_pct: 23.4
                      mase: 1.05
                      rmsse: 1.09
                      mae_by_horizon:
                        - 7.47
                        - 9.13
                      bias_by_horizon:
                        - 1.1
                        - 1.1
                      seasonal_share: 0.42
                    value_add:
                      rmsse_ratio: 0.84
                      wape_points: 4.8
                      beats_naive: true
                page:
                  limit: 100
                  total: 405
                  has_more: true
                  next_cursor: example-token
                data_as_of: '2026-11-16T02:58:40.000+00:00'
                notes:
                  - >-
                    For each past week, our forecast and two benchmarks (naive:
                    the last week; seasonal naive: the same week a year earlier)
                    are made from the sales before it and compared with what
                    sold over the next horizon_weeks.
                duration_ms: 4
                object: list
                data:
                  - level: item
                    node: MAT-00000029
                    label: Handbags - Style 00000029
                    item_id: f29f7ba4-eb59-4852-85ec-3bf82a4678d4
                    location_id: null
                    period_start: null
                    status: ok
                    reason: null
                    sample:
                      leaves: 12
                      origins: 26
                      points: 52
                      actual_total: 1840
                      history_weeks: 61
                    ours:
                      mae: 6.2
                      rmse: 8.4
                      bias: -0.6
                      bias_pct: -1.7
                      wape_pct: 17.5
                      mase: 0.81
                      rmsse: 0.84
                      mae_by_horizon:
                        - 5.58
                        - 6.82
                      bias_by_horizon:
                        - -0.6
                        - -0.6
                      methods:
                        smoothed_weekday: 22
                        intermittent: 4
                    naive:
                      mae: 7.9
                      rmse: 10
                      bias: 0.3
                      bias_pct: 0.8
                      wape_pct: 22.3
                      mase: 1
                      rmsse: 1
                      mae_by_horizon:
                        - 7.11
                        - 8.69
                      bias_by_horizon:
                        - 0.3
                        - 0.3
                    seasonal_naive:
                      mae: 8.3
                      rmse: 10.9
                      bias: 1.1
                      bias_pct: 3.1
                      wape_pct: 23.4
                      mase: 1.05
                      rmsse: 1.09
                      mae_by_horizon:
                        - 7.47
                        - 9.13
                      bias_by_horizon:
                        - 1.1
                        - 1.1
                      seasonal_share: 0.42
                    value_add:
                      rmsse_ratio: 0.84
                      wape_points: 4.8
                      beats_naive: true
                has_more: true
                next_cursor: example-token
                evaluation:
                  id: 5d2c8a14-7b3e-4f19-a6c0-9e1b2d3f4a55
                  computed_at: '2026-11-16T03:40:12.000+00:00'
                  age_hours: 127.3
                  stale: false
                  history:
                    from: '2025-09-22'
                    to: '2026-11-15'
                    weeks: 60
                    capped: false
                    calendar_from: '2025-05-19'
                    calendar_weeks: 78
                  origins:
                    count: 26
                    from: '2026-05-18'
                    to: '2026-11-09'
                  horizon_weeks: 2
                  min_history_weeks: 13
                  min_scored_origins: 8
                  pairs:
                    total: 4050
                    scored: 3312
                    insufficient_history: 738
                  items: 405
                  levels:
                    - item_location
                    - item
                    - category
                    - location
                    - location_type
                    - org
                  levels_skipped: {}
                  method:
                    forecast: >-
                      A statistical forecast per item and location, fitted on
                      the sales before each week and summed into weeks
                    benchmarks:
                      - naive
                      - seasonal_naive
                    scaled_error: rmsse
                    demand_history: daily_demand
                  data_as_of: '2026-11-16T02:58:40.000+00:00'
        '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:
    ForecastAccuracyRow:
      type: object
      properties:
        level:
          type: string
          enum:
            - item_location
            - item
            - category
            - location
            - location_type
            - org
        node:
          type: string
          description: The row's key at its level
        label:
          type: string
        item_id:
          type:
            - string
            - 'null'
          format: uuid
        location_id:
          type:
            - string
            - 'null'
          format: uuid
        period_start:
          type:
            - string
            - 'null'
          format: date
          description: The origin week (weekly rows); null on a summary row
        status:
          type: string
          enum:
            - ok
            - insufficient_history
            - no_actuals
        reason:
          type:
            - string
            - 'null'
          description: Why the row carries no number; null when status is ok
        sample:
          type: object
          properties:
            leaves:
              type: integer
              description: Item-location series under the row
            origins:
              type: integer
            points:
              type: integer
              description: Forecast points scored
            actual_total:
              type:
                - number
                - 'null'
            history_weeks:
              type: integer
          required:
            - leaves
            - origins
            - points
            - actual_total
            - history_weeks
        ours:
          type: object
          properties:
            mae:
              type:
                - number
                - 'null'
              description: Mean absolute error, units per week
            rmse:
              type:
                - number
                - 'null'
            bias:
              type:
                - number
                - 'null'
              description: Mean error; above 0 is over-forecast
            bias_pct:
              type:
                - number
                - 'null'
            wape_pct:
              type:
                - number
                - 'null'
              description: Weighted absolute percentage error
            mase:
              type:
                - number
                - 'null'
              description: Mean absolute scaled error
            rmsse:
              type:
                - number
                - 'null'
              description: Root mean squared scaled error
            mae_by_horizon:
              type:
                - array
                - 'null'
              items:
                type: number
              description: One value per week of the horizon
            bias_by_horizon:
              type:
                - array
                - 'null'
              items:
                type: number
            methods:
              type: object
              additionalProperties:
                type: integer
              description: >-
                Scored weeks by kind of forecast: smoothed_weekday, intermittent
                or none
          required:
            - mae
            - rmse
            - bias
            - bias_pct
            - wape_pct
            - mase
            - rmsse
            - mae_by_horizon
            - bias_by_horizon
            - methods
          description: Our forecast
        naive:
          type: object
          properties:
            mae:
              type:
                - number
                - 'null'
              description: Mean absolute error, units per week
            rmse:
              type:
                - number
                - 'null'
            bias:
              type:
                - number
                - 'null'
              description: Mean error; above 0 is over-forecast
            bias_pct:
              type:
                - number
                - 'null'
            wape_pct:
              type:
                - number
                - 'null'
              description: Weighted absolute percentage error
            mase:
              type:
                - number
                - 'null'
              description: Mean absolute scaled error
            rmsse:
              type:
                - number
                - 'null'
              description: Root mean squared scaled error
            mae_by_horizon:
              type:
                - array
                - 'null'
              items:
                type: number
              description: One value per week of the horizon
            bias_by_horizon:
              type:
                - array
                - 'null'
              items:
                type: number
          required:
            - mae
            - rmse
            - bias
            - bias_pct
            - wape_pct
            - mase
            - rmsse
            - mae_by_horizon
            - bias_by_horizon
          description: The last week repeated
        seasonal_naive:
          type: object
          properties:
            mae:
              type:
                - number
                - 'null'
              description: Mean absolute error, units per week
            rmse:
              type:
                - number
                - 'null'
            bias:
              type:
                - number
                - 'null'
              description: Mean error; above 0 is over-forecast
            bias_pct:
              type:
                - number
                - 'null'
            wape_pct:
              type:
                - number
                - 'null'
              description: Weighted absolute percentage error
            mase:
              type:
                - number
                - 'null'
              description: Mean absolute scaled error
            rmsse:
              type:
                - number
                - 'null'
              description: Root mean squared scaled error
            mae_by_horizon:
              type:
                - array
                - 'null'
              items:
                type: number
              description: One value per week of the horizon
            bias_by_horizon:
              type:
                - array
                - 'null'
              items:
                type: number
            seasonal_share:
              type:
                - number
                - 'null'
              description: Share of points that had a year-earlier week to use (0-1)
          required:
            - mae
            - rmse
            - bias
            - bias_pct
            - wape_pct
            - mase
            - rmsse
            - mae_by_horizon
            - bias_by_horizon
            - seasonal_share
          description: The same week a year earlier
        value_add:
          type: object
          properties:
            rmsse_ratio:
              type:
                - number
                - 'null'
              description: Our scaled error over naive's; below 1 beats naive
            wape_points:
              type:
                - number
                - 'null'
              description: >-
                Naive's percentage error minus ours, in points; above 0 means
                ours is better
            beats_naive:
              type:
                - boolean
                - 'null'
          required:
            - rmsse_ratio
            - wape_points
            - beats_naive
      required:
        - level
        - node
        - label
        - item_id
        - location_id
        - period_start
        - status
        - reason
        - sample
        - ours
        - naive
        - seasonal_naive
        - value_add
    ForecastEvaluation:
      type: object
      properties:
        id:
          type: string
          format: uuid
        computed_at:
          type: string
          format: date-time
        age_hours:
          type: number
        stale:
          type: boolean
          description: True when the figures are more than 8 days old
        history:
          type: object
          properties:
            from:
              type:
                - string
                - 'null'
              format: date
            to:
              type: string
              format: date
            weeks:
              type: integer
            capped:
              type: boolean
              description: True when the account may hold more history than was read
            calendar_from:
              type: string
              format: date
            calendar_weeks:
              type: integer
          required:
            - from
            - to
            - weeks
            - capped
            - calendar_from
            - calendar_weeks
        origins:
          type: object
          properties:
            count:
              type: integer
            from:
              type:
                - string
                - 'null'
              format: date
            to:
              type:
                - string
                - 'null'
              format: date
          required:
            - count
            - from
            - to
        horizon_weeks:
          type: integer
        min_history_weeks:
          type: integer
        min_scored_origins:
          type: integer
        pairs:
          type: object
          properties:
            total:
              type: integer
            scored:
              type: integer
            insufficient_history:
              type: integer
          required:
            - total
            - scored
            - insufficient_history
          description: Item-location pairs
        items:
          type: integer
        levels:
          type: array
          items:
            type: string
        levels_skipped:
          type: object
          additionalProperties:
            type: string
          description: Levels that were not computed, each with why
        method:
          type: object
          properties:
            forecast:
              type: string
              description: What was scored, in words
            benchmarks:
              type: array
              items:
                type: string
              description: 'The benchmarks beside it: naive, seasonal_naive'
            scaled_error:
              type: string
              description: 'The scaled error the rows are ranked by: rmsse'
            demand_history:
              type:
                - string
                - 'null'
              enum:
                - daily_demand
                - order_lines
                - null
              description: >-
                Which demand history was read, as demand_source.source
                elsewhere; null when not recorded
          required:
            - forecast
            - benchmarks
            - scaled_error
            - demand_history
          description: How the figures were measured
        data_as_of:
          type:
            - string
            - 'null'
          format: date-time
      required:
        - id
        - computed_at
        - age_hours
        - stale
        - history
        - origins
        - horizon_weeks
        - min_history_weeks
        - min_scored_origins
        - pairs
        - items
        - levels
        - levels_skipped
        - method
        - data_as_of
    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.