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

# List mapping gaps

> Lists required mapping fields that resolve to no value for configs (ad units) in the tag, one gap per integration, publisher and field, with the mapping records that would fill each. Checks active configs on active ad stacks that run an integration in scope, and disabled configs a running experiment uses. Each required field is resolved through the config's whole chain: the config, its publisher, the ad stack's organisations then the publisher's, the ad stack, then the integration default. A field with no value anywhere is `missing`; one only marked will not map is `wnm`, and is listed only with `include_wnm`. Fields worked out from context never gap. Fields only the integration's owner can set still gap, as the tag needs them, but have no records unless you're the owner. `records` holds one publisher-level record covering all the publisher's configs, or one per affected config when the publisher already sets the field per config, each with a null `value` to fill in. Covers the same integrations as the mapping value search. Unless you're a platform admin, only publishers in your organisation and those below it are checked. Gaps are ordered by integration, then publisher, and `truncated` is true when there are more than `limit`.



## OpenAPI

````yaml /openapi.json get /v1/mapping/gaps
openapi: 3.0.1
info:
  title: CI Public API
  description: >-
    # Introduction

    Welcome to the Content Ignite API. A central place for all Content Ignite
    functionality.


    This API enforces a separation between function and form, meaning anything
    you can do in our platforms can be replicated in your own bespoke solution.


    # Authentication

    Authentication is handled via JWTs. You can retrieve your unique JSON Web
    Token from the settings page in the platform, which needs to be passed in
    with every request.

    To do this, simple include it in an Authorization header with the "Bearer"
    key word.


    Please contact support for help getting started.


    # Error Codes

    This is a fully RESTful API, so prepare for a number of different HTTP
    status codes.


    There is also a standard "success" field returned for each request. This
    boolean value can provide a first check against a response.


    ## Errors any endpoint can return

    Every signed-in endpoint can also return these, so they aren't listed on
    each one:


    - `401` Unauthorized: no valid token was sent. It's missing, invalid,
    expired or revoked.

    - `403` Forbidden with `code` `session_invalid`: your user or organisation
    no longer exists, or you were removed from the organisation. Sign in again.

    - `403` Forbidden with `code` `insufficient_scope` ("This sign-in is
    read-only"): an OAuth (MCP) sign-in with read access tried to make a change.

    - `403` Forbidden with `code` `organisation_unavailable`: an OAuth (MCP)
    sign-in has lost access to its organisation. Switch to another organisation.

    - `503` Service Unavailable: "System is down for scheduled maintenance". Try
    again later.


    # Rate limit

    We reserve the right to block requests if we deem a client to be abusing the
    API.
  version: 1.0.0
servers:
  - url: https://api.tagdeliver.com
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Publisher
  - name: Publisher/Publisher Tag
  - name: Publisher/Config (Ad unit)
  - name: Publisher/App Placement
  - name: Publisher/Publisher Stack
  - name: Publisher/Experiment
  - name: Publisher/Publisher Meta
  - name: Publisher/Debugging
  - name: Ad Stack
  - name: Ad Stack/Integration
  - name: Integration
  - name: Integration/Authentication
  - name: Integration/Mapping
  - name: Mapping
  - name: Reporting
  - name: Reporting/Revenue Reports
  - name: Reporting/Insights Hub
  - name: Reporting/Insights Hub/Ads.txt Insights
  - name: Reporting/Insights Hub/Benchmarking
  - name: Reporting/Insights Hub/Core Web Vitals
  - name: Reporting/Insights Hub/Diagnostics
  - name: Reporting/Insights Hub/Demand Mix
  - name: Reporting/Insights Hub/Live Insights
  - name: Reporting/Insights Hub/Metrics
  - name: Reporting/Insights Hub/Revenue Analytics
  - name: Reporting/Insights Hub/Revenue Insights
  - name: Reporting/Insights Hub/SSP Insights
  - name: Reporting/Campaign Reports
  - name: Reporting/Experiment Reporting
  - name: Reporting/Health Check
  - name: Reporting/Ads.txt
  - name: Reporting/Utility
  - name: Audience
  - name: Audience/Segment
  - name: Organisation
  - name: Organisation/Organisation Meta
  - name: Organisation/Pricing
  - name: User
  - name: User/Account
  - name: Billing
  - name: Billing/Profile
  - name: Billing/Invoice
  - name: Audit Log
  - name: Search
  - name: Set-up
  - name: public
paths:
  /v1/mapping/gaps:
    get:
      tags:
        - Mapping
        - public
      summary: List mapping gaps
      description: >-
        Lists required mapping fields that resolve to no value for configs (ad
        units) in the tag, one gap per integration, publisher and field, with
        the mapping records that would fill each. Checks active configs on
        active ad stacks that run an integration in scope, and disabled configs
        a running experiment uses. Each required field is resolved through the
        config's whole chain: the config, its publisher, the ad stack's
        organisations then the publisher's, the ad stack, then the integration
        default. A field with no value anywhere is `missing`; one only marked
        will not map is `wnm`, and is listed only with `include_wnm`. Fields
        worked out from context never gap. Fields only the integration's owner
        can set still gap, as the tag needs them, but have no records unless
        you're the owner. `records` holds one publisher-level record covering
        all the publisher's configs, or one per affected config when the
        publisher already sets the field per config, each with a null `value` to
        fill in. Covers the same integrations as the mapping value search.
        Unless you're a platform admin, only publishers in your organisation and
        those below it are checked. Gaps are ordered by integration, then
        publisher, and `truncated` is true when there are more than `limit`.
      operationId: listMappingGaps
      parameters:
        - name: integration_id
          in: query
          description: >-
            Only this integration, by encoded integration ID (a short base-36
            string).
          required: false
          schema:
            type: string
        - name: platform
          in: query
          description: >-
            Only integrations on this platform, by platform module ID as listed
            by the mapping platforms, matched case-insensitively. An unknown
            platform gives no rows.
          required: false
          schema:
            type: string
        - name: publisher_uid
          in: query
          description: >-
            Only this publisher's configs (ad units). Also switches the
            integrations in scope to those of the publisher's organisation.
          required: false
          schema:
            type: integer
        - name: organisation_id
          in: query
          description: Only publishers in this organisation and the organisations below it.
          required: false
          schema:
            type: integer
        - name: include_wnm
          in: query
          description: >-
            Also list fields only marked will not map. Accepts `true`, `false`,
            `1`, `0`, `yes`, `no`, `on` and `off`.
          required: false
          schema:
            type: boolean
            default: false
        - name: limit
          in: query
          description: >-
            Most gaps to return. Values outside 1 to 2000 are clamped, and
            anything that isn't a number counts as 1.
          required: false
          schema:
            type: integer
            default: 200
            minimum: 1
            maximum: 2000
      responses:
        '200':
          description: 'OK: The open gaps.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: object
                    properties:
                      gaps:
                        type: array
                        description: The open gaps.
                        items:
                          type: object
                          properties:
                            integration_id:
                              type: string
                              description: Encoded integration ID.
                            platform:
                              type: string
                              description: Platform module ID.
                            integration_name:
                              type: string
                              description: The integration's account name.
                            field:
                              type: string
                              description: Field key.
                            field_label:
                              type: string
                              description: Field label.
                            state:
                              type: string
                              enum:
                                - missing
                                - wnm
                              description: >-
                                The worst state across the affected configs.
                                Values: `missing` = No value at any level, `wnm`
                                = Only marked will not map.
                            owner_only:
                              type: boolean
                              description: >-
                                True when only the integration's owner can set
                                the field and you aren't the owner. `records` is
                                then empty.
                            schema:
                              type: object
                              additionalProperties: true
                              description: JSON Schema for the field's value.
                              properties: {}
                              nullable: true
                            publisher_uid:
                              type: integer
                              description: Publisher ID (uid).
                            publisher_label:
                              type: string
                              description: Publisher domain.
                            organisation_id:
                              type: integer
                              description: ID of the publisher's organisation.
                            units:
                              type: array
                              description: The configs (ad units) missing the field.
                              items:
                                type: object
                                properties:
                                  config_id:
                                    type: integer
                                    description: Config (ad unit) ID.
                                  label:
                                    type: string
                                    description: >-
                                      The config's label, or its unit type when
                                      it has none.
                                  ad_stack_id:
                                    type: integer
                                    description: ID of the config's ad stack.
                                required:
                                  - config_id
                                  - label
                                  - ad_stack_id
                            records:
                              type: array
                              description: >-
                                Mapping records that fill the gap once given a
                                value.
                              items:
                                type: object
                                properties:
                                  integration_id:
                                    type: string
                                    description: Encoded integration ID.
                                  level:
                                    type: string
                                    enum:
                                      - publisher
                                      - config
                                    description: >-
                                      Values: `publisher` = Publisher, `config`
                                      = Config (ad unit).
                                  entity_id:
                                    type: integer
                                    description: Publisher ID (uid) or config (ad unit) ID.
                                  field:
                                    type: string
                                    description: Field key.
                                  value:
                                    description: 'Always null: fill it in.'
                                  wnm:
                                    type: boolean
                                    description: Always false.
                                required:
                                  - integration_id
                                  - level
                                  - entity_id
                                  - field
                                  - value
                                  - wnm
                          required:
                            - integration_id
                            - platform
                            - integration_name
                            - field
                            - field_label
                            - state
                            - owner_only
                            - schema
                            - publisher_uid
                            - publisher_label
                            - organisation_id
                            - units
                            - records
                      count:
                        type: integer
                        description: Number of gaps returned.
                      truncated:
                        type: boolean
                        description: True when there are more gaps than `limit`.
                      units_checked:
                        type: integer
                        description: How many configs (ad units) were checked.
                    required:
                      - gaps
                      - count
                      - truncated
                      - units_checked
                  success:
                    type: boolean
                    description: Always true.
                required:
                  - results
                  - success
              example:
                results:
                  gaps:
                    - integration_id: gjdi10
                      platform: Criteo
                      integration_name: DEMO Criteo
                      field: zoneId
                      field_label: Zone ID
                      state: missing
                      owner_only: false
                      schema:
                        type: string
                        title: Zone ID
                      publisher_uid: 18620
                      publisher_label: example.com
                      organisation_id: 3
                      units:
                        - config_id: 51234
                          label: In-article
                          ad_stack_id: 702
                        - config_id: 51235
                          label: Sidebar
                          ad_stack_id: 702
                      records:
                        - integration_id: gjdi10
                          level: publisher
                          entity_id: 18620
                          field: zoneId
                          value: null
                          wnm: false
                  count: 1
                  truncated: false
                  units_checked: 6
                success: true
          headers: {}
        '401':
          description: >-
            Unauthorized: No valid token was sent. It's missing, invalid,
            expired or revoked.
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                success: false
                message: Token not found.
          headers: {}
        '403':
          description: 'Forbidden: You don''t have permission to do this.'
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                success: false
                message: User forbidden
          headers: {}
        '404':
          description: >-
            Not Found: The integration or publisher doesn't exist or you can't
            access it.
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                success: false
                message: Integration gjdi10 Not Found
          headers: {}
        '500':
          description: >-
            Internal Server Error: An unexpected error. The message includes a
            reference to quote to support.
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                status: 500
                message: >-
                  An error occurred [4f2k], please try again shortly or contact
                  your account manager for further assistance.
          headers: {}
      deprecated: false
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        A personal API token from the platform's settings page, or an OAuth
        access token.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.