> ## 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.

# /integration/completeness

> Returns required-mapping gap counts for every integration available to the caller, in one call. Use it for an integrations list (the red "missing mapping" chip) or to find which integrations need mapping work; drill into one with `GET /v1/integration/{id}/completeness` or `GET /v1/mapping/gaps`.

- **Permission:** `integration.list`.
- One entry per integration available to the caller's organisation (its own, its parents', core ones), fallback creatives excluded; integrations with no gaps are listed with zeros. No particular order; not paginated.
- Counts are per ad unit in the tag that runs the integration: live units (plus disabled units a running experiment uses) on active ad stacks that include it, on non-archived publishers. Each unit is checked through its whole chain (unit, publisher, the stack's then the publisher's organisations and parents, stack, integration default). An integration on no ad unit has no gaps.
- Restricted (non-core) callers only have units in their own organisation tree counted.
- `missing_count`: required fields missing for at least one unit. `wnm_count`: required fields not missing anywhere but will-not-map for at least one unit. `units_missing` / `publishers_missing`: distinct units / publishers missing at least one field (will-not-map gaps don't count).
- Owner-only fields count for everyone, as the tag needs them.
- `integration_id` is encoded; an all-digit id comes back as a number.



## OpenAPI

````yaml /openapi.json get /v1/integration/completeness
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.


    # 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: Reporting
  - name: Reporting/Revenue Reports
  - name: Reporting/Experiment Reporting
  - name: Reporting/Campaign Reports
  - name: Reporting/Health Check
  - name: Reporting/Ads.txt
  - name: Reporting/Utility
  - name: Reporting/Insights Hub
  - name: Reporting/Insights Hub/SSP Insights
  - name: Reporting/Insights Hub/Core Web Vitals
  - name: Reporting/Insights Hub/Ads.txt Insights
  - name: Reporting/Insights Hub/Live Insights
  - name: Reporting/Insights Hub/Metrics
  - name: Reporting/Insights Hub/Diagnostics
  - name: Reporting/Insights Hub/Revenue Insights
  - name: Reporting/Insights Hub/Revenue Analytics
  - name: Reporting/Insights Hub/Demand Mix
  - name: Reporting/Insights Hub/Benchmarking
  - name: Organisation
  - name: Organisation/Organisation Meta
  - name: Organisation/Pricing
  - name: Ad Stack
  - name: Ad Stack/Integration
  - name: Publisher
  - name: Publisher/Publisher Stack
  - name: Publisher/Publisher Tag
  - name: Publisher/Publisher Meta
  - name: Publisher/Experiment
  - name: Publisher/Config (Ad unit)
  - name: Publisher/App Placement
  - name: AI
  - name: AI/Activity
  - name: Billing
  - name: Billing/Invoice
  - name: Audit Log
  - name: Integration
  - name: Integration/Mapping
  - name: User
  - name: User/Account
  - name: Mapping
  - name: public
  - name: '[IN PROGRESS] Integration/Mapping'
  - name: '[IN PROGRESS] Integration'
paths:
  /v1/integration/completeness:
    get:
      tags:
        - Integration
        - '[IN PROGRESS] Integration/Mapping'
        - public
      summary: /integration/completeness
      description: >-
        Returns required-mapping gap counts for every integration available to
        the caller, in one call. Use it for an integrations list (the red
        "missing mapping" chip) or to find which integrations need mapping work;
        drill into one with `GET /v1/integration/{id}/completeness` or `GET
        /v1/mapping/gaps`.


        - **Permission:** `integration.list`.

        - One entry per integration available to the caller's organisation (its
        own, its parents', core ones), fallback creatives excluded; integrations
        with no gaps are listed with zeros. No particular order; not paginated.

        - Counts are per ad unit in the tag that runs the integration: live
        units (plus disabled units a running experiment uses) on active ad
        stacks that include it, on non-archived publishers. Each unit is checked
        through its whole chain (unit, publisher, the stack's then the
        publisher's organisations and parents, stack, integration default). An
        integration on no ad unit has no gaps.

        - Restricted (non-core) callers only have units in their own
        organisation tree counted.

        - `missing_count`: required fields missing for at least one unit.
        `wnm_count`: required fields not missing anywhere but will-not-map for
        at least one unit. `units_missing` / `publishers_missing`: distinct
        units / publishers missing at least one field (will-not-map gaps don't
        count).

        - Owner-only fields count for everyone, as the tag needs them.

        - `integration_id` is encoded; an all-digit id comes back as a number.
      parameters:
        - name: uid
          in: query
          description: >-
            Optional publisher uid. When given, the integrations listed are
            those available to this publisher's organisation instead of the
            caller's; unit counts are not narrowed to the publisher. The
            publisher must exist and not be archived; a restricted (non-core)
            caller may only pass a publisher of their own organisation,
            otherwise 404 `Not Found`.
          required: false
          example: 12345
          schema:
            type: integer
            minimum: 1
      responses:
        '200':
          description: Counts per integration.
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: array
                    description: One entry per accessible integration.
                    items:
                      type: object
                      properties:
                        integration_id:
                          type: string
                          description: Encoded integration id.
                        missing_count:
                          type: integer
                          description: >-
                            Required fields with no value for at least one ad
                            unit.
                        wnm_count:
                          type: integer
                          description: >-
                            Required fields only marked will-not-map (never
                            missing).
                        units_missing:
                          type: integer
                          description: Ad units missing at least one required field.
                        publishers_missing:
                          type: integer
                          description: Publishers with at least one such ad unit.
                      required:
                        - integration_id
                        - missing_count
                        - wnm_count
                        - units_missing
                        - publishers_missing
                  success:
                    type: boolean
                    description: Always true on success.
                required:
                  - results
                  - success
              example:
                results:
                  - integration_id: gjdhye
                    missing_count: 2
                    wnm_count: 1
                    units_missing: 14
                    publishers_missing: 3
                  - integration_id: 1njclq
                    missing_count: 0
                    wnm_count: 0
                    units_missing: 0
                    publishers_missing: 0
                success: true
          headers: {}
        '403':
          description: Missing the required permission.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: What went wrong.
                  success:
                    type: boolean
                    description: Always false on an error.
                required:
                  - message
                  - success
              example:
                message: User forbidden
                success: false
          headers: {}
        '404':
          description: '`uid` given but the publisher isn''t accessible.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: What went wrong.
                  success:
                    type: boolean
                    description: Always false on an error.
                required:
                  - message
                  - success
              example:
                message: Not Found
                success: false
          headers: {}
      deprecated: false
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

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