> ## 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/stack-schema

> Returns an integration's details and the JSON Schema of its ad stack settings form, plus which fields need a value from some mapping level. Use it to render the integration's form in an ad stack, or to know which keys and types `POST /v1/integration/{id}/validate` and ad stack saves accept.

- **Permission:** `ad_stack.view`. The integration (or fallback creative) must be available to the caller (or, with `uid`, to that publisher's organisation), otherwise 404. The Global Settings pseudo-integration is accepted.
- `schema` is a JSON Schema object (`type`, `properties`, `required`, often `definitions`), returned with its types intact. Computed fields are `readOnly` and not in `required`; for a caller who isn't the integration's owner, owner-only fields are `readOnly` and not in `required`. Shared lists are injected into `definitions`: IAB categories and sizes, and organisations, publishers and ad units limited to the caller's organisation tree.
- `required_fields` lists the field keys that need a value at some level (ad stack, organisation, publisher, ad unit or integration default) and that the caller can write; the form marks them without enforcing them, as values are often inherited. Keys of object sub-fields are dotted (`video.mimes`). Owner-only fields are left out for non-owners and computed fields always.
- `logo` / `logo_dark` are image URLs, or the platform name's first letter when the module has no logo; for an image fallback creative, its image.
- Payload keys sit at the top level beside `success` (no `results`). `id` echoes the path id (an all-digit id comes back as a number).



## OpenAPI

````yaml /openapi.json get /v1/integration/{id}/stack-schema
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: Integration
  - name: Integration/Mapping
  - name: User
  - name: User/Account
  - name: Mapping
  - name: public
  - name: '[IN PROGRESS] Integration/Mapping'
  - name: '[IN PROGRESS] Integration'
paths:
  /v1/integration/{id}/stack-schema:
    get:
      tags:
        - Integration
        - '[IN PROGRESS] Integration'
        - public
      summary: /integration/:id/stack-schema
      description: >-
        Returns an integration's details and the JSON Schema of its ad stack
        settings form, plus which fields need a value from some mapping level.
        Use it to render the integration's form in an ad stack, or to know which
        keys and types `POST /v1/integration/{id}/validate` and ad stack saves
        accept.


        - **Permission:** `ad_stack.view`. The integration (or fallback
        creative) must be available to the caller (or, with `uid`, to that
        publisher's organisation), otherwise 404. The Global Settings
        pseudo-integration is accepted.

        - `schema` is a JSON Schema object (`type`, `properties`, `required`,
        often `definitions`), returned with its types intact. Computed fields
        are `readOnly` and not in `required`; for a caller who isn't the
        integration's owner, owner-only fields are `readOnly` and not in
        `required`. Shared lists are injected into `definitions`: IAB categories
        and sizes, and organisations, publishers and ad units limited to the
        caller's organisation tree.

        - `required_fields` lists the field keys that need a value at some level
        (ad stack, organisation, publisher, ad unit or integration default) and
        that the caller can write; the form marks them without enforcing them,
        as values are often inherited. Keys of object sub-fields are dotted
        (`video.mimes`). Owner-only fields are left out for non-owners and
        computed fields always.

        - `logo` / `logo_dark` are image URLs, or the platform name's first
        letter when the module has no logo; for an image fallback creative, its
        image.

        - Payload keys sit at the top level beside `success` (no `results`).
        `id` echoes the path id (an all-digit id comes back as a number).
      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. Looks the integration up among those
            available to this publisher's organisation, and tailors fields that
            depend on whether the publisher is owned and operated by the
            integration's organisation. 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: Integration details and stack schema.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: The encoded id from the path.
                  account_name:
                    type: string
                    description: >-
                      The integration's account name (`Global Settings` for the
                      pseudo-integration; the creative title for a fallback).
                    nullable: true
                  platform_name:
                    type: string
                    description: Display name of the platform, e.g. `Pubmatic`.
                  sub_type:
                    type: string
                    description: The module's sub-type label, e.g. `Prebid`.
                  type:
                    type: string
                    enum:
                      - ad_demand
                      - ad_server
                      - ad_tech
                      - analytic
                      - comms
                      - fallback
                    description: Integration type.
                  description:
                    type: string
                    description: The module's description.
                    nullable: true
                  logo:
                    type: string
                    description: Logo URL (light theme).
                  logo_dark:
                    type: string
                    description: Logo URL (dark theme).
                  schema:
                    type: object
                    additionalProperties: true
                    description: JSON Schema of the integration's ad stack settings.
                    properties: {}
                  required_fields:
                    type: array
                    description: >-
                      Field keys the integration needs a value for from some
                      level, writable by the caller.
                    items:
                      type: string
                  success:
                    type: boolean
                    description: Always true on success.
                required:
                  - id
                  - account_name
                  - platform_name
                  - sub_type
                  - type
                  - description
                  - logo
                  - logo_dark
                  - schema
                  - required_fields
                  - success
              example:
                id: gjdhye
                account_name: Example Media
                platform_name: Pubmatic
                sub_type: Prebid.js (header bidding) ad demand
                type: ad_demand
                description: >-
                  PubMatic maximizes customer value by delivering the
                  programmatic digital marketing supply chain of the future.
                logo: https://cdn.tagdeliver.com/assets/logo/pubmatic.svg
                logo_dark: https://cdn.tagdeliver.com/assets/logo/pubmatic--dark.svg
                schema:
                  type: object
                  properties:
                    publisherId:
                      title: Publisher ID
                      type: string
                      readOnly: true
                    adSlot:
                      title: Ad Slot Name
                      type: string
                      examples:
                        - '38519891'
                    video:
                      title: Video parameters
                      type: object
                      properties:
                        mimes:
                          title: Video MIME types
                          type: array
                          uniqueItems: true
                          items:
                            enum:
                              - video/mp4
                              - video/webm
                  required:
                    - adSlot
                required_fields:
                  - adSlot
                success: true
          headers: {}
        '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: Integration not available to the caller, or `uid` not accessible.
          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.