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

> Returns the mapping fields of an integration: each field a mapping value can be set for, with its JSON Schema, whether the tag needs it, the levels it can be set at and whether you can write it. Object settings with their own properties are listed as one field per sub-field. The list ends with the built-in `approved` field, which decides whether the integration runs for a publisher (unset means yes). A field is read-only to you when it's filled in automatically, declared read-only, or owner-only and you don't own the integration. You own it when it belongs to your organisation or one below it, or you're a platform admin. Validate, apply and delete refuse records for read-only fields. Takes the encoded integration ID, including the Global Settings block for ad demand.



## OpenAPI

````yaml /openapi.json get /v1/integration/{id}/fields
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}/fields:
    get:
      tags:
        - Integration
        - public
      summary: List an integration's mapping fields
      description: >-
        Returns the mapping fields of an integration: each field a mapping value
        can be set for, with its JSON Schema, whether the tag needs it, the
        levels it can be set at and whether you can write it. Object settings
        with their own properties are listed as one field per sub-field. The
        list ends with the built-in `approved` field, which decides whether the
        integration runs for a publisher (unset means yes). A field is read-only
        to you when it's filled in automatically, declared read-only, or
        owner-only and you don't own the integration. You own it when it belongs
        to your organisation or one below it, or you're a platform admin.
        Validate, apply and delete refuse records for read-only fields. Takes
        the encoded integration ID, including the Global Settings block for ad
        demand.
      operationId: listIntegrationFields
      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: uid
          in: query
          description: >-
            Publisher ID. Looks the integration up among those available to this
            publisher's organisation instead of yours, and adjusts the fields
            for an owned-and-operated publisher. 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 fields.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: object
                    properties:
                      integration_id:
                        type: string
                        description: Encoded integration ID.
                      platform:
                        type: string
                        description: Platform module name.
                      fields:
                        type: array
                        description: >-
                          The fields, in the platform's order, with `approved`
                          last.
                        items:
                          type: object
                          properties:
                            key:
                              type: string
                              description: >-
                                Field key to use in mapping records. Sub-fields
                                of an object setting use a dotted path.
                            schema:
                              type: object
                              description: >-
                                JSON Schema for the field's value. Its `title`
                                is the field's label, made from the key when the
                                platform gives none. Carries the platform's
                                `definitions` when it refers to them.
                              properties: {}
                            required:
                              type: boolean
                              description: >-
                                Whether the tag needs a value for this field
                                from some level.
                            levels:
                              type: array
                              description: >-
                                Levels the field can be set at. `config` is left
                                out when the platform uses one value for every
                                ad unit, and `ad_stack` when the platform reads
                                the field per publisher.
                              items:
                                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
                            readonly:
                              type: boolean
                              description: >-
                                Only present, as true, when you can't write the
                                field: it's filled in automatically, declared
                                read-only, or only the integration's owner can
                                set it.
                            owner_only:
                              type: boolean
                              description: >-
                                Only present, as true, when the field is
                                read-only because only the integration's owner
                                can set it.
                            default_macro:
                              type: string
                              description: >-
                                Only present for a field filled in
                                automatically: the macro that fills it.
                            builtin:
                              type: boolean
                              description: >-
                                Only present, as true, on the built-in
                                `approved` field.
                            wnm_allowed:
                              type: boolean
                              description: >-
                                Only present, as false, on the built-in
                                `approved` field, which can't be marked will not
                                map.
                          required:
                            - key
                            - schema
                            - required
                            - levels
                    required:
                      - integration_id
                      - platform
                      - fields
                  success:
                    type: boolean
                    description: Always true.
                required:
                  - results
                  - success
              example:
                results:
                  integration_id: gjdi28
                  platform: Pubmatic
                  fields:
                    - key: publisherId
                      schema:
                        type: string
                        title: Publisher ID
                      required: true
                      levels:
                        - integration
                        - ad_stack
                        - organisation
                        - publisher
                      readonly: true
                      owner_only: true
                    - key: adSlot
                      schema:
                        type: string
                        title: Ad Slot
                        examples:
                          - example.com_leaderboard
                      required: true
                      levels:
                        - integration
                        - ad_stack
                        - organisation
                        - publisher
                        - config
                    - key: video.mimes
                      schema:
                        type: array
                        title: Video › Mimes
                        items:
                          type: string
                      required: false
                      levels:
                        - integration
                        - ad_stack
                        - organisation
                        - publisher
                        - config
                    - key: approved
                      schema:
                        title: Approved
                        type: boolean
                        description: >-
                          Whether this integration runs for the publisher. Unset
                          means approved. To approve publishers one by one, set
                          No at integration level, then Yes for each
                          organisation or publisher you approve.
                      required: false
                      levels:
                        - integration
                        - organisation
                        - publisher
                      builtin: true
                      wnm_allowed: false
                      readonly: true
                success: true
          headers: {}
        '401':
          description: >-
            Unauthorized: No valid token was sent. It's missing, invalid,
            expired or revoked.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                message: Token not found.
          headers: {}
        '403':
          description: 'Forbidden: You don''t have permission to do this.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              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:
                $ref: '#/components/schemas/Error'
              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:
                $ref: '#/components/schemas/ServerError'
              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:
  schemas:
    Error:
      type: object
      required:
        - success
        - message
      properties:
        success:
          type: boolean
          description: Always false for an error.
          enum:
            - false
        message:
          type: string
          description: What went wrong, safe to show to the user.
    ServerError:
      type: object
      required:
        - status
        - message
      properties:
        status:
          type: integer
          enum:
            - 500
        message:
          type: string
          description: >-
            A generic message with an error reference in square brackets, for
            support.
  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.