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

# /mapping/query

> Searches stored mapping values across every integration in scope and returns flat, labelled rows, one per (integration, level, entity, field). Use it to answer questions like "which ad units use placement X" (`field=plc&value=X`, optionally `entity_type=config`), "what is mapped for publisher 19210" (`publisher_uid=19210`) or "every value of field Y on platform Z" (`platform=Z&field=Y`).

Rows are the values stored at each level, not the value an ad unit finally resolves to. Resolution takes the most specific: config > publisher > organisation chain > ad stack > integration, skipping empty and wnm rows. Each row carries ids and labels (`entity_label`, `field_label`, `integration_name`), so no second lookup is needed.

**Scope.** Integrations available to the caller's organisation chain (its own, its parents', CORE's), without fallback creatives or integrations hidden from it. With `publisher_uid`, the chain is the publisher's, narrowed to the integrations the publisher uses and to rows that can apply to it. Non-CORE callers only see rows on entities inside their organisation tree; integration-level rows are always shown. Archived entities' rows can appear.

**Filters** combine with AND. `value` is an exact, case-insensitive match that also hits one item of a list or of a comma-separated string; booleans match `true` / `false`.

**Order and limit.** By level (integration, ad_stack, organisation, publisher, config), then integration, entity id and field. `limit` defaults to 200 (max 2000); `truncated: true` means narrow the filters.

To change a value found here, POST a record with the same integration_id / level / entity_id / field to /v1/mapping/validate then /v1/mapping/apply; to remove it, use DELETE /v1/mapping. Requires the `integration.view` permission.



## OpenAPI

````yaml /openapi.json get /v1/mapping/query
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: '[IN PROGRESS] Integration'
  - name: '[IN PROGRESS] Integration/Mapping'
  - name: '[IN PROGRESS] User'
  - name: '[IN PROGRESS] User/Account'
  - name: Mapping
  - name: public
paths:
  /v1/mapping/query:
    get:
      tags:
        - Mapping
        - '[IN PROGRESS] Integration/Mapping'
        - public
      summary: /mapping/query
      description: >-
        Searches stored mapping values across every integration in scope and
        returns flat, labelled rows, one per (integration, level, entity,
        field). Use it to answer questions like "which ad units use placement X"
        (`field=plc&value=X`, optionally `entity_type=config`), "what is mapped
        for publisher 19210" (`publisher_uid=19210`) or "every value of field Y
        on platform Z" (`platform=Z&field=Y`).


        Rows are the values stored at each level, not the value an ad unit
        finally resolves to. Resolution takes the most specific: config >
        publisher > organisation chain > ad stack > integration, skipping empty
        and wnm rows. Each row carries ids and labels (`entity_label`,
        `field_label`, `integration_name`), so no second lookup is needed.


        **Scope.** Integrations available to the caller's organisation chain
        (its own, its parents', CORE's), without fallback creatives or
        integrations hidden from it. With `publisher_uid`, the chain is the
        publisher's, narrowed to the integrations the publisher uses and to rows
        that can apply to it. Non-CORE callers only see rows on entities inside
        their organisation tree; integration-level rows are always shown.
        Archived entities' rows can appear.


        **Filters** combine with AND. `value` is an exact, case-insensitive
        match that also hits one item of a list or of a comma-separated string;
        booleans match `true` / `false`.


        **Order and limit.** By level (integration, ad_stack, organisation,
        publisher, config), then integration, entity id and field. `limit`
        defaults to 200 (max 2000); `truncated: true` means narrow the filters.


        To change a value found here, POST a record with the same integration_id
        / level / entity_id / field to /v1/mapping/validate then
        /v1/mapping/apply; to remove it, use DELETE /v1/mapping. Requires the
        `integration.view` permission.
      parameters:
        - name: integration_id
          in: query
          description: >-
            Only this integration (encoded id). 404 when it isn't in the
            caller's scope.
          required: false
          example: gjdi9e
          schema:
            type: string
        - name: platform
          in: query
          description: >-
            Only integrations on this platform (module id, case-insensitive, as
            listed by GET /v1/mapping/schema). An unknown platform returns no
            results rather than an error.
          required: false
          example: pubmatic
          schema:
            type: string
        - name: field
          in: query
          description: >-
            Only this field key (exact match, e.g. `plc`, `placementId`,
            `video.mimes`). See GET /v1/mapping/schema/{platform} for keys.
          required: false
          example: plc
          schema:
            type: string
        - name: value
          in: query
          description: >-
            Only rows whose stored value equals this, case-insensitively. Also
            matches when one item of a list value, or one item of a
            comma-separated string value, equals it. Booleans match `true` /
            `false`; numbers match their digits. Not a substring search.
          required: false
          example: '10000803925'
          schema:
            type: string
        - name: entity_type
          in: query
          description: >-
            Only rows at this level. `config` is the ad unit level. 400 for any
            other value.
          required: false
          example: config
          schema:
            type: string
            enum:
              - integration
              - ad_stack
              - organisation
              - publisher
              - config
        - name: entity_id
          in: query
          description: >-
            Only rows for this entity (organisation id, ad stack id, publisher
            uid or ad unit id, matching `entity_type`). Requires `entity_type`
            (400 otherwise); ignored when `entity_type=integration`.
          required: false
          example: 18909
          schema:
            type: integer
        - name: publisher_uid
          in: query
          description: >-
            Only rows that can apply to this publisher: its ad units, the
            publisher itself, its organisation and parent organisations, the ad
            stacks its units use, and the integration-level defaults of the
            integrations it uses (its ad stacks' and pub stack's). Switches the
            integration scope to the publisher's organisation chain. 404 `Not
            Found` when the caller can't access the publisher.
          required: false
          example: 19210
          schema:
            type: integer
        - name: limit
          in: query
          description: >-
            Maximum rows to return. Default 200, maximum 2000; values outside
            1–2000 are clamped (a non-numeric value counts as 1). `truncated:
            true` in the response means more exist.
          required: false
          example: 200
          schema:
            type: integer
            minimum: 1
            maximum: 2000
            default: 200
      responses:
        '200':
          description: Matching mapping rows.
          content:
            application/json:
              schema:
                type: object
                required:
                  - results
                  - success
                properties:
                  results:
                    type: object
                    required:
                      - rows
                      - count
                      - truncated
                    properties:
                      rows:
                        type: array
                        items:
                          type: object
                          required:
                            - integration_id
                            - platform
                            - integration_name
                            - level
                            - entity_id
                            - entity_label
                            - publisher_uid
                            - field
                            - field_label
                            - value
                            - wnm
                          properties:
                            integration_id:
                              type: string
                              description: Encoded integration id (kept as a string).
                            platform:
                              type: string
                              description: Platform module id, e.g. `Pubmatic`.
                            integration_name:
                              type: string
                              description: >-
                                The integration's account name. Numeric-looking
                                names come back as numbers.
                            level:
                              type: string
                              enum:
                                - integration
                                - ad_stack
                                - organisation
                                - publisher
                                - config
                              description: Level the value is stored at.
                            entity_id:
                              type: integer
                              description: >-
                                Organisation id, ad stack id, publisher uid or
                                ad unit (config) id; null at integration level.
                              nullable: true
                            entity_label:
                              type: string
                              description: >-
                                Human label: organisation or ad stack name,
                                publisher domain, `<domain> · <unit label>` for
                                ad units, the account name at integration level.
                                Null if the entity no longer exists.
                              nullable: true
                            publisher_uid:
                              type: integer
                              description: >-
                                The publisher the row belongs to: the entity for
                                publisher rows, the unit's publisher for config
                                rows, otherwise null.
                              nullable: true
                            field:
                              type: string
                              description: Field key.
                            field_label:
                              type: string
                              description: >-
                                Field title from the integration's catalogue
                                (the key when the field is no longer in it).
                            value:
                              description: >-
                                The stored value with its original JSON type
                                (string, number, boolean, array, object), or
                                null for wnm and empty rows.
                            wnm:
                              type: boolean
                              description: >-
                                True when the row is a will-not-map
                                acknowledgement.
                        description: >-
                          Matching rows in level, integration, entity, field
                          order.
                      count:
                        type: integer
                        description: Number of rows returned.
                      truncated:
                        type: boolean
                        description: True when more rows matched than `limit`.
                  success:
                    type: boolean
                    enum:
                      - true
                    description: Always true on success.
              example:
                results:
                  rows:
                    - integration_id: 4ldqy0w
                      platform: InMobiBidder
                      integration_name: Content Ignite
                      level: config
                      entity_id: 18909
                      entity_label: hole19golf.com · Feed 1 - Android
                      publisher_uid: 19210
                      field: plc
                      field_label: Placement ID
                      value: '10000803925'
                      wnm: false
                  count: 1
                  truncated: false
                success: true
          headers: {}
        '400':
          description: >-
            `entity_type` is not a known level, or `entity_id` was given without
            `entity_type`.
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                  - success
                properties:
                  message:
                    type: string
                    description: What went wrong.
                  success:
                    type: boolean
                    enum:
                      - false
                    description: Always false on errors.
              example:
                message: entity_id needs an entity_type
                success: false
          headers: {}
        '403':
          description: >-
            The caller lacks the required permission (or no user could be read
            from the token).
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                  - success
                properties:
                  message:
                    type: string
                    description: What went wrong.
                  success:
                    type: boolean
                    enum:
                      - false
                    description: Always false on errors.
              example:
                message: User forbidden
                success: false
          headers: {}
        '404':
          description: >-
            `integration_id` isn't in the caller's scope, or `publisher_uid`
            isn't accessible.
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                  - success
                properties:
                  message:
                    type: string
                    description: What went wrong.
                  success:
                    type: boolean
                    enum:
                      - false
                    description: Always false on errors.
              example:
                message: Integration gjdi9e 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.