> ## 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/:id/fields/template.csv

> Downloads a ready-to-fill CSV template for bulk-mapping one integration, with one example row per field the caller can write. Use it as the starting point for a bulk upload; the filled rows are then sent as `records` to `POST /v1/integration/{id}/mapping/validate` and `/apply` (there is no CSV upload endpoint: the client parses the file).

- **Permission:** `ad_stack.view`; the integration must be available to the caller (as for `GET /v1/integration/{id}/fields`), otherwise 404 (JSON error body).
- Columns: `entity_type,entity_id,field,value`. There is no `integration_id` column; the path decides the integration.
- Rows come from the same catalogue as `GET /v1/integration/{id}/fields`, in the same order, skipping read-only fields (computed defaults, owner-only fields for a non-owner, and `approved` for a non-owner).
- Every example row uses `entity_type` `publisher` with an empty `entity_id` to fill in. Change `entity_type` to any level listed in the field's `levels`.
- `value` is the first entry of the field's schema `examples` (empty when there is none). Array values are a JSON array in one cell; booleans are `true` / `false`.
- Response headers: `Content-Type: text/csv; charset=utf-8` and `Content-Disposition: attachment; filename="<Platform>-mapping-template.csv"`.



## OpenAPI

````yaml /openapi.json get /v1/integration/{id}/fields/template.csv
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/integration/{id}/fields/template.csv:
    get:
      tags:
        - '[IN PROGRESS] Integration/Mapping'
        - public
      summary: /integration/:id/fields/template.csv
      description: >-
        Downloads a ready-to-fill CSV template for bulk-mapping one integration,
        with one example row per field the caller can write. Use it as the
        starting point for a bulk upload; the filled rows are then sent as
        `records` to `POST /v1/integration/{id}/mapping/validate` and `/apply`
        (there is no CSV upload endpoint: the client parses the file).


        - **Permission:** `ad_stack.view`; the integration must be available to
        the caller (as for `GET /v1/integration/{id}/fields`), otherwise 404
        (JSON error body).

        - Columns: `entity_type,entity_id,field,value`. There is no
        `integration_id` column; the path decides the integration.

        - Rows come from the same catalogue as `GET
        /v1/integration/{id}/fields`, in the same order, skipping read-only
        fields (computed defaults, owner-only fields for a non-owner, and
        `approved` for a non-owner).

        - Every example row uses `entity_type` `publisher` with an empty
        `entity_id` to fill in. Change `entity_type` to any level listed in the
        field's `levels`.

        - `value` is the first entry of the field's schema `examples` (empty
        when there is none). Array values are a JSON array in one cell; booleans
        are `true` / `false`.

        - Response headers: `Content-Type: text/csv; charset=utf-8` and
        `Content-Disposition: attachment;
        filename="<Platform>-mapping-template.csv"`.
      parameters:
        - name: id
          in: path
          description: >-
            Encoded integration id (an opaque base-36 string such as `gjdhye`,
            as returned by `GET /v1/integration`). Never the raw numeric id.
          required: true
          example: gjdhye
          schema:
            type: string
        - name: uid
          in: query
          description: >-
            Optional publisher uid. When given, the integration is looked up
            among those available to this publisher's organisation (and its
            parents) instead of the caller's own. 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: The CSV template.
          content:
            text/csv:
              schema:
                type: string
                description: >-
                  CSV text with a header row and one example row per writable
                  field.
              example: |
                entity_type,entity_id,field,value
                publisher,,adSlot,38519891
                publisher,,pmzoneid,"zone1,zone2"
                publisher,,video.mimes,"[""video/mp4""]"
                publisher,,approved,
          headers:
            Content-Disposition:
              example: attachment; filename="Pubmatic-mapping-template.csv"
              required: false
              description: >-
                `attachment; filename="<Platform name>-mapping-template.csv"`
                (non-alphanumerics in the name become `-`).
              schema:
                type: string
        '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: >-
            The integration (or another referenced entity) doesn't exist or
            isn't available to the caller.
          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: Integration gjdhye 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.