> ## 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 an integration's mapping values

> Returns the stored mapping values of an integration, one per entity and field, at every level or at one. Each comes with its hierarchy: the less specific values it overrides, the more specific ones that override it, and the level the tag ends up using. Values on deleted entities are left out. Unless you're a platform admin, only values on entities in your organisation or one below it are returned, and the integration-level counts of values set lower down only count those. Not paginated.



## OpenAPI

````yaml /openapi.json get /v1/integration/{id}/mapping
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/integration/{id}/mapping:
    get:
      tags:
        - Integration/Mapping
        - public
      summary: List an integration's mapping values
      description: >-
        Returns the stored mapping values of an integration, one per entity and
        field, at every level or at one. Each comes with its hierarchy: the less
        specific values it overrides, the more specific ones that override it,
        and the level the tag ends up using. Values on deleted entities are left
        out. Unless you're a platform admin, only values on entities in your
        organisation or one below it are returned, and the integration-level
        counts of values set lower down only count those. Not paginated.
      operationId: listIntegrationMapping
      parameters:
        - name: id
          in: path
          description: >-
            Encoded integration ID (`iid`, base-36, as returned by `GET
            /v1/integration`), not the numeric integration ID.
          required: true
          example: ''
          schema:
            type: string
        - name: level
          in: query
          description: >-
            Only return values at this level. Omit for every level. Values:
            `integration` = Integration default, `ad_stack` = Ad stack,
            `organisation` = Organisation, `publisher` = Publisher, `config` =
            Config (ad unit).
          required: false
          schema:
            type: string
            enum:
              - integration
              - ad_stack
              - organisation
              - publisher
              - config
        - name: entity_id
          in: query
          description: >-
            Only return values for this entity at `level`. Ignored without
            `level`.
          required: false
          schema:
            type: integer
        - name: uid
          in: query
          description: >-
            Publisher ID. Looks the integration up among those available to this
            publisher's organisation instead of yours. Unless you're a platform
            admin, the publisher must be in your own organisation.
          required: false
          schema:
            type: integer
      responses:
        '200':
          description: 'OK: The integration''s mapping values.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: array
                    description: The stored values.
                    items:
                      type: object
                      properties:
                        level:
                          type: string
                          description: >-
                            Values: `integration` = Integration default,
                            `ad_stack` = Ad stack, `organisation` =
                            Organisation, `publisher` = Publisher, `config` =
                            Config (ad unit).
                          enum:
                            - integration
                            - ad_stack
                            - organisation
                            - publisher
                            - config
                        entity_id:
                          type: integer
                          description: The entity at the level. Null at integration level.
                          nullable: true
                        field:
                          type: string
                          description: Field key.
                        value:
                          description: >-
                            The stored value, with its type kept. Null for will
                            not map.
                        wnm:
                          type: boolean
                          description: Whether the field is marked will not map here.
                        hierarchy:
                          type: object
                          description: >-
                            Where the value sits in the order the tag resolves
                            values.
                          properties:
                            resolved_level:
                              type: string
                              description: >-
                                The most specific level in this entity's chain
                                with a value, which the tag uses. Null when none
                                has one. Values: `integration` = Integration
                                default, `ad_stack` = Ad stack, `organisation` =
                                Organisation, `publisher` = Publisher, `config`
                                = Config (ad unit).
                              enum:
                                - integration
                                - ad_stack
                                - organisation
                                - publisher
                                - config
                              nullable: true
                            above:
                              type: array
                              description: >-
                                Values at less specific levels in this entity's
                                chain, which this row overrides.
                              items:
                                type: object
                                properties:
                                  level:
                                    type: string
                                    description: >-
                                      Values: `integration` = Integration
                                      default, `ad_stack` = Ad stack,
                                      `organisation` = Organisation, `publisher`
                                      = Publisher, `config` = Config (ad unit).
                                    enum:
                                      - integration
                                      - ad_stack
                                      - organisation
                                      - publisher
                                      - config
                                  value:
                                    description: >-
                                      The value set at that level. Absent for a
                                      will-not-map marker.
                                  wnm:
                                    type: boolean
                                    description: >-
                                      Only present, as true, when the level is
                                      marked will not map.
                                  inherited:
                                    type: boolean
                                    description: >-
                                      Only present, as true, for a value from
                                      one of your organisation's parent
                                      organisations, whose own values you can't
                                      see.
                                required:
                                  - level
                            below:
                              type: array
                              description: >-
                                Values set at more specific levels that override
                                this row: on integration-level rows, per level
                                across the integration; on organisation rows,
                                the publishers and configs (ad units) in it and
                                below it; on publisher rows, its configs (ad
                                units). Empty on ad stack and config rows.
                              items:
                                type: object
                                properties:
                                  level:
                                    type: string
                                    description: >-
                                      A more specific level. Values:
                                      `integration` = Integration default,
                                      `ad_stack` = Ad stack, `organisation` =
                                      Organisation, `publisher` = Publisher,
                                      `config` = Config (ad unit).
                                    enum:
                                      - integration
                                      - ad_stack
                                      - organisation
                                      - publisher
                                      - config
                                  count:
                                    type: integer
                                    description: >-
                                      How many entities at that level set their
                                      own value.
                                  value:
                                    description: >-
                                      The value, when only one entity sets one
                                      (on integration-level rows: when they all
                                      set the same one).
                                  values:
                                    type: array
                                    description: >-
                                      Only on publisher and organisation rows,
                                      when 20 or fewer entities set a value:
                                      each entity's value.
                                    items:
                                      type: object
                                      properties:
                                        entity_id:
                                          type: integer
                                          description: Entity ID.
                                        label:
                                          type: string
                                          description: Entity name.
                                          nullable: true
                                        value:
                                          description: Its value.
                                required:
                                  - level
                                  - count
                          required:
                            - resolved_level
                            - above
                            - below
                      required:
                        - level
                        - entity_id
                        - field
                        - value
                        - wnm
                        - hierarchy
                  success:
                    type: boolean
                    description: Always true.
                required:
                  - results
                  - success
              example:
                results:
                  - level: integration
                    entity_id: null
                    field: adSlot
                    value: default_slot
                    wnm: false
                    hierarchy:
                      resolved_level: integration
                      above: []
                      below:
                        - level: publisher
                          count: 1
                          value: example.com_leaderboard
                  - level: publisher
                    entity_id: 18620
                    field: adSlot
                    value: example.com_leaderboard
                    wnm: false
                    hierarchy:
                      resolved_level: publisher
                      above:
                        - level: integration
                          value: default_slot
                      below:
                        - level: config
                          count: 1
                          value: example.com_mpu
                          values:
                            - entity_id: 90212
                              label: example.com · MPU
                              value: example.com_mpu
                  - level: config
                    entity_id: 90212
                    field: adSlot
                    value: example.com_mpu
                    wnm: false
                    hierarchy:
                      resolved_level: config
                      above:
                        - level: publisher
                          value: example.com_leaderboard
                        - level: integration
                          value: default_slot
                      below: []
                success: true
          headers: {}
        '400':
          description: 'Bad Request: `level` isn''t a known level.'
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                success: false
                message: 'Unknown mapping level: site'
          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 doesn't exist or you can't access it, or
            `uid` names a publisher you can't access.
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                success: false
                message: Integration gjdikr 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.