> ## 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/schema/:platform

> Returns a platform's mapping field catalogue by platform name (not integration id), the caller's connected integrations on that platform, and a template record. Call it before writing records so you use exact field keys and valid values.

- `fields[]`: `key` is the exact name a record's `field` must use; `label` is the human title; `schema` is the JSON Schema each value is validated against. `readonly` fields are computed (`computed_from` names the source) and can never be written. `owner_only` fields can only be set by the integration's owning organisation (or its parents, or CORE). The built-in `approved` field (boolean; unset means approved) comes last; only the owner can set it, and only at integration, organisation or publisher level.
- `integrations[]`: connected integrations on this platform that POST /v1/mapping/apply accepts from the caller (its organisation chain plus CORE's; fallback creatives and hidden integrations left out). Put `integration_id` in each record. `is_owner` tells you whether owner-only fields and integration-level values are writable.
- `levels` and `record`: the allowed levels and a record template.

Gotchas: the catalogue is the owner's view, so pair `owner_only` with `is_owner`. Some fields can't be set per ad unit (`config` level); POST /v1/mapping/validate reports those. `required` can under-report: use GET /v1/mapping/gaps to find what is actually missing. For one connected integration's catalogue as the caller sees it, use GET /v1/integration/{id}/fields.

Next steps: build records → POST /v1/mapping/validate → POST /v1/mapping/apply. Requires the `integration.view` permission.



## OpenAPI

````yaml /openapi.json get /v1/mapping/schema/{platform}
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/schema/{platform}:
    get:
      tags:
        - Mapping
        - '[IN PROGRESS] Integration/Mapping'
        - public
      summary: /mapping/schema/:platform
      description: >-
        Returns a platform's mapping field catalogue by platform name (not
        integration id), the caller's connected integrations on that platform,
        and a template record. Call it before writing records so you use exact
        field keys and valid values.


        - `fields[]`: `key` is the exact name a record's `field` must use;
        `label` is the human title; `schema` is the JSON Schema each value is
        validated against. `readonly` fields are computed (`computed_from` names
        the source) and can never be written. `owner_only` fields can only be
        set by the integration's owning organisation (or its parents, or CORE).
        The built-in `approved` field (boolean; unset means approved) comes
        last; only the owner can set it, and only at integration, organisation
        or publisher level.

        - `integrations[]`: connected integrations on this platform that POST
        /v1/mapping/apply accepts from the caller (its organisation chain plus
        CORE's; fallback creatives and hidden integrations left out). Put
        `integration_id` in each record. `is_owner` tells you whether owner-only
        fields and integration-level values are writable.

        - `levels` and `record`: the allowed levels and a record template.


        Gotchas: the catalogue is the owner's view, so pair `owner_only` with
        `is_owner`. Some fields can't be set per ad unit (`config` level); POST
        /v1/mapping/validate reports those. `required` can under-report: use GET
        /v1/mapping/gaps to find what is actually missing. For one connected
        integration's catalogue as the caller sees it, use GET
        /v1/integration/{id}/fields.


        Next steps: build records → POST /v1/mapping/validate → POST
        /v1/mapping/apply. Requires the `integration.view` permission.
      parameters:
        - name: platform
          in: path
          description: >-
            Platform module id from GET /v1/mapping/schema (`platform`), matched
            case-insensitively, e.g. `Criteo`, `AMX`, `pubmatic`.
          required: true
          example: Criteo
          schema:
            type: string
        - name: account_type
          in: query
          description: >-
            Account type, for the few platforms whose fields depend on it (the
            `account_type` GET /v1/integration/{id} reports, e.g. a GAM network
            type). Omit for most platforms.
          required: false
          example: GAM360
          schema:
            type: string
      responses:
        '200':
          description: The platform's field catalogue and the caller's integrations on it.
          content:
            application/json:
              schema:
                type: object
                required:
                  - results
                  - success
                properties:
                  results:
                    type: object
                    required:
                      - platform
                      - name
                      - levels
                      - fields
                      - integrations
                      - record
                    properties:
                      platform:
                        type: string
                        description: >-
                          Canonical module id (as listed by GET
                          /v1/mapping/schema).
                      name:
                        type: string
                        description: Display name.
                      levels:
                        type: array
                        items:
                          type: string
                          enum:
                            - integration
                            - ad_stack
                            - organisation
                            - publisher
                            - config
                        description: >-
                          Mapping levels, most general first. `config` is the ad
                          unit level.
                      fields:
                        type: array
                        items:
                          type: object
                          required:
                            - key
                            - label
                            - description
                            - type
                            - required
                            - readonly
                            - computed_from
                            - example
                            - schema
                            - owner_only
                          properties:
                            key:
                              type: string
                              description: >-
                                Exact field key to put in a record's `field`.
                                Object sub-fields are flattened to dotted keys
                                (e.g. `video.mimes`).
                            label:
                              type: string
                              description: >-
                                Human label (the schema title; sub-fields read
                                `Parent › Child`).
                            description:
                              type: string
                              description: Help text from the platform module, or null.
                              nullable: true
                            type:
                              description: >-
                                The JSON Schema `type` of the value: a string
                                such as `string`, `integer`, `boolean`, `array`
                                or `object`, an array of types (e.g. `["string",
                                "integer"]`), or null when the schema uses a
                                `$ref`. Check `schema` for the full rules.
                            required:
                              type: boolean
                              description: >-
                                Whether the platform's stack schema requires the
                                field. May under-report fields usually filled
                                through mapping at another level; GET
                                /v1/mapping/gaps is the authority on what is
                                actually missing.
                            readonly:
                              type: boolean
                              description: >-
                                True for computed fields (see `computed_from`)
                                and schema-declared read-only fields: they can
                                never be written.
                            computed_from:
                              type: string
                              description: >-
                                For computed fields, the macro the value comes
                                from (e.g. `__ACCOUNT_ID__` = the integration's
                                account id, `__ELEMENT_ID__`,
                                `__AD_UNIT_CODE__`). Null otherwise.
                              nullable: true
                            example:
                              description: >-
                                First example value from the schema, or null.
                                Keeps its JSON type.
                            schema:
                              type: object
                              additionalProperties: true
                              description: >-
                                The field's JSON Schema (title, type,
                                enum/oneOf, items, examples…). Record values are
                                validated against it. Fields that reference
                                shared definitions carry their own
                                `definitions`.
                              properties: {}
                            owner_only:
                              type: boolean
                              description: >-
                                Only the integration's owning organisation (or
                                its parents, or CORE) can set this field. Check
                                the integration's `is_owner` before writing it.
                        description: >-
                          Every mappable field, in schema order, ending with
                          `approved`.
                      integrations:
                        type: array
                        description: >-
                          The caller's connected integrations on this platform
                          (empty when none are connected).
                        items:
                          type: object
                          required:
                            - integration_id
                            - name
                            - owner
                            - is_owner
                          properties:
                            integration_id:
                              type: string
                              description: Encoded integration id for records.
                            name:
                              type: string
                              description: >-
                                The integration's account name (tells several
                                accounts on one platform apart).
                            owner:
                              type: string
                              description: >-
                                Name of the owning organisation (`CORE` for
                                platform-wide integrations).
                            is_owner:
                              type: boolean
                              description: >-
                                Whether the caller can act as owner: write
                                owner-only fields, `approved` and
                                integration-level values.
                      record:
                        type: object
                        description: >-
                          Template of a record for POST /v1/mapping/validate and
                          /apply; the string values are placeholders describing
                          what to put there.
                        properties:
                          integration_id:
                            type: string
                          level:
                            type: string
                          entity_id:
                            type: string
                          field:
                            type: string
                          value:
                            type: string
                          wnm:
                            type: boolean
                  success:
                    type: boolean
                    enum:
                      - true
                    description: Always true on success.
              example:
                results:
                  platform: Criteo
                  name: Criteo
                  levels:
                    - integration
                    - ad_stack
                    - organisation
                    - publisher
                    - config
                  fields:
                    - key: networkId
                      label: Network ID
                      description: null
                      type: string
                      required: false
                      readonly: true
                      computed_from: __ACCOUNT_ID__
                      example: '456456'
                      schema:
                        type: string
                        title: Network ID
                        examples:
                          - '456456'
                      owner_only: false
                    - key: pubid
                      label: Publisher ID
                      description: >-
                        For S2S. Publisher id of your inventory group provided
                        by your Technical account manager
                      type: string
                      required: false
                      readonly: false
                      computed_from: null
                      example: ABC123
                      schema:
                        type: string
                        title: Publisher ID
                        description: >-
                          For S2S. Publisher id of your inventory group provided
                          by your Technical account manager
                        examples:
                          - ABC123
                      owner_only: false
                    - key: approved
                      label: Approved
                      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.
                      type: boolean
                      required: false
                      readonly: false
                      computed_from: null
                      example: null
                      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.
                      owner_only: false
                  integrations:
                    - integration_id: gjdi7j
                      name: Content Ignite
                      owner: CORE
                      is_owner: true
                  record:
                    integration_id: <integration_id from integrations>
                    level: <one of levels>
                    entity_id: >-
                      <id of the organisation / ad_stack / publisher uid /
                      config (ad unit); null for integration>
                    field: <field key>
                    value: <value matching the field schema>
                    wnm: false
                success: true
          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: No such platform, or it isn't visible to the caller's organisation.
          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: Platform Criteo 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.