> ## Documentation Index
> Fetch the complete documentation index at: https://docs.interactivelayers.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Integration



## OpenAPI

````yaml reference/openapi.json POST /v1/integrations
openapi: 3.1.0
info:
  title: Interactive Layers Context API
  description: >

    Interactive Layers reads what is said on your channel and turns it into ad
    signals.


    * **Signal mode** (`mode=signal`): your program is untouched; every break of
    the output manifest carries an
      `EXT-X-DATERANGE CLASS="com.interactivelayers.signal"` with the matching campaign ids, keywords, your external ids
      (e.g. SpringServe) and a brand-safety status, so your ad server can target the break.
    * **Live SSAI** (`mode=ssai`): supported live pipelines can stitch ads and
    in-band supers.

    * **Legacy URL scan**: enriched VOD manifest with signals; `ssai` adds
    supers. No ad segment replacement.

    * **Asset analysis and operations**: saved moments, campaign previews and
    airing/playback notifications.
      GAM profiles use client-side VAST/IMA. SpringServe profiles produce revision-bound SSAI signals;
      the OTTera transport remains pending external validation. Campaign synchronization is read-only.

    Authenticate with the `X-API-Key` header (keys are issued by Interactive
    Layers). Errors are `{"detail": "..."}`.

    Events can be polled (`GET /v1/events`) or pushed to a signed webhook (`PUT
    /v1/keys/me/webhook`).

    Content catalog and batch operations use their own scoped server key in
    `Authorization: Bearer …`.
  version: '1.2'
servers:
  - url: https://console.interactivelayers.com
security: []
tags:
  - name: AdRouter
    description: Advertising routing, simulation, delivery and reports per project.
  - name: Advertising providers
    description: >-
      GAM and SpringServe connections, profiles and read-only campaign
      synchronization.
  - name: Keys
    description: The calling API key and its signed webhook.
  - name: Campaigns
    description: >-
      Signal campaigns: categories, keywords and the external ids written into
      break markers when the context matches.
  - name: Sources
    description: >-
      Realtime sources (HLS or YouTube) in `signal` or `ssai` mode and their
      enriched output manifest.
  - name: Events
    description: 'Events of your sources: opportunities, break signals, brand-safety holds.'
  - name: Assets
    description: >-
      Create, list, retrieve, rename and delete private video assets. Use
      asset_id as the input to a VOD analysis.
  - name: VOD operations
    description: >-
      Evaluate campaigns from saved asset analyses, schedule airings and send
      playback notifications.
  - name: VOD
    description: >-
      Ahead-of-time VOD scans, faster than real time: transcript, opportunities,
      brand-safety holds, a targeting signal per break and the enriched VOD
      manifest.
paths:
  /v1/integrations:
    post:
      tags:
        - Content credentials
        - GAM content export
      summary: Create Integration
      operationId: create_integration_v1_integrations_post
      parameters:
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            pattern: ^[A-Za-z0-9._~-]{8,128}$
            title: Idempotency-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
                - $ref: '#/components/schemas/GamLocal'
                - $ref: '#/components/schemas/GamServiceAccount'
                - $ref: '#/components/schemas/GamOAuth'
              discriminator:
                propertyName: auth_mode
                mapping:
                  local: '#/components/schemas/GamLocal'
                  runtime_service_account: '#/components/schemas/GamServiceAccount'
                  oauth_user: '#/components/schemas/GamOAuth'
              title: Body
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/GamLocalIntegration'
                  - $ref: '#/components/schemas/GamServiceAccountIntegration'
                  - $ref: '#/components/schemas/GamOAuthIntegration'
                discriminator:
                  propertyName: auth_mode
                  mapping:
                    local: '#/components/schemas/GamLocalIntegration'
                    runtime_service_account: '#/components/schemas/GamServiceAccountIntegration'
                    oauth_user: '#/components/schemas/GamOAuthIntegration'
                title: Response Create Integration V1 Integrations Post
        '400':
          description: Bad Request
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '401':
          description: Unauthorized
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Forbidden
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Not Found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '409':
          description: Conflict
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '410':
          description: Gone
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '413':
          description: Request Entity Too Large
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '422':
          description: Unprocessable Entity
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          description: Too Many Requests
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '503':
          description: Service Unavailable
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      security:
        - ContentKey: []
components:
  schemas:
    GamLocal:
      properties:
        type:
          type: string
          const: gam
          title: Type
        name:
          type: string
          maxLength: 120
          minLength: 1
          title: Name
        network_code:
          type: string
          pattern: ^[0-9]{1,32}$
          title: Network Code
        cms_id:
          anyOf:
            - type: string
              pattern: ^[0-9]{1,32}$
            - type: 'null'
          title: Cms Id
        metadata_owner:
          type: string
          enum:
            - publisher_snapshot
            - il_owned_source
          title: Metadata Owner
        owned_keys:
          items:
            type: string
            enum:
              - il_topic
              - il_suitability
          type: array
          maxItems: 2
          minItems: 1
          title: Owned Keys
        auth_mode:
          type: string
          const: local
          title: Auth Mode
        export_mode:
          type: string
          enum:
            - ad_request_signals
            - mrss
          title: Export Mode
      additionalProperties: false
      type: object
      required:
        - type
        - name
        - network_code
        - metadata_owner
        - owned_keys
        - auth_mode
        - export_mode
      title: GamLocal
    GamServiceAccount:
      properties:
        type:
          type: string
          const: gam
          title: Type
        name:
          type: string
          maxLength: 120
          minLength: 1
          title: Name
        network_code:
          type: string
          pattern: ^[0-9]{1,32}$
          title: Network Code
        cms_id:
          type: string
          pattern: ^[0-9]{1,32}$
          title: Cms Id
        metadata_owner:
          type: string
          enum:
            - publisher_snapshot
            - il_owned_source
          title: Metadata Owner
        owned_keys:
          items:
            type: string
            enum:
              - il_topic
              - il_suitability
          type: array
          maxItems: 2
          minItems: 1
          title: Owned Keys
        auth_mode:
          type: string
          const: runtime_service_account
          title: Auth Mode
        export_mode:
          type: string
          const: video_api
          title: Export Mode
        identity_ref:
          type: string
          pattern: ^[a-z]+_[A-Za-z0-9_-]{8,64}$
          title: Identity Ref
        writer_binding_ref:
          type: string
          pattern: ^[a-z]+_[A-Za-z0-9_-]{8,64}$
          title: Writer Binding Ref
      additionalProperties: false
      type: object
      required:
        - type
        - name
        - network_code
        - cms_id
        - metadata_owner
        - owned_keys
        - auth_mode
        - export_mode
        - identity_ref
        - writer_binding_ref
      title: GamServiceAccount
    GamOAuth:
      properties:
        type:
          type: string
          const: gam
          title: Type
        name:
          type: string
          maxLength: 120
          minLength: 1
          title: Name
        network_code:
          type: string
          pattern: ^[0-9]{1,32}$
          title: Network Code
        cms_id:
          type: string
          pattern: ^[0-9]{1,32}$
          title: Cms Id
        metadata_owner:
          type: string
          enum:
            - publisher_snapshot
            - il_owned_source
          title: Metadata Owner
        owned_keys:
          items:
            type: string
            enum:
              - il_topic
              - il_suitability
          type: array
          maxItems: 2
          minItems: 1
          title: Owned Keys
        auth_mode:
          type: string
          const: oauth_user
          title: Auth Mode
        export_mode:
          type: string
          enum:
            - ad_request_signals
            - mrss
          title: Export Mode
        credential_ref:
          type: string
          pattern: ^[a-z]+_[A-Za-z0-9_-]{8,64}$
          title: Credential Ref
      additionalProperties: false
      type: object
      required:
        - type
        - name
        - network_code
        - cms_id
        - metadata_owner
        - owned_keys
        - auth_mode
        - export_mode
        - credential_ref
      title: GamOAuth
    GamLocalIntegration:
      properties:
        type:
          type: string
          const: gam
          title: Type
        name:
          type: string
          maxLength: 120
          minLength: 1
          title: Name
        network_code:
          type: string
          pattern: ^[0-9]{1,32}$
          title: Network Code
        cms_id:
          anyOf:
            - type: string
              pattern: ^[0-9]{1,32}$
            - type: 'null'
          title: Cms Id
        metadata_owner:
          type: string
          enum:
            - publisher_snapshot
            - il_owned_source
          title: Metadata Owner
        owned_keys:
          items:
            type: string
            enum:
              - il_topic
              - il_suitability
          type: array
          maxItems: 2
          minItems: 1
          title: Owned Keys
        auth_mode:
          type: string
          const: local
          title: Auth Mode
        export_mode:
          type: string
          enum:
            - ad_request_signals
            - mrss
          title: Export Mode
        integration_id:
          type: string
          pattern: ^[a-z]+_[A-Za-z0-9_-]{8,64}$
          title: Integration Id
        revision:
          type: integer
          minimum: 1
          title: Revision
        status:
          type: string
          enum:
            - needs_validation
            - ready
            - action_required
            - disabled
          title: Status
        capabilities:
          $ref: '#/components/schemas/GamCapabilities'
      additionalProperties: false
      type: object
      required:
        - type
        - name
        - network_code
        - metadata_owner
        - owned_keys
        - auth_mode
        - export_mode
        - integration_id
        - revision
        - status
        - capabilities
      title: GamLocalIntegration
    GamServiceAccountIntegration:
      properties:
        type:
          type: string
          const: gam
          title: Type
        name:
          type: string
          maxLength: 120
          minLength: 1
          title: Name
        network_code:
          type: string
          pattern: ^[0-9]{1,32}$
          title: Network Code
        cms_id:
          type: string
          pattern: ^[0-9]{1,32}$
          title: Cms Id
        metadata_owner:
          type: string
          enum:
            - publisher_snapshot
            - il_owned_source
          title: Metadata Owner
        owned_keys:
          items:
            type: string
            enum:
              - il_topic
              - il_suitability
          type: array
          maxItems: 2
          minItems: 1
          title: Owned Keys
        auth_mode:
          type: string
          const: runtime_service_account
          title: Auth Mode
        export_mode:
          type: string
          const: video_api
          title: Export Mode
        identity_ref:
          type: string
          pattern: ^[a-z]+_[A-Za-z0-9_-]{8,64}$
          title: Identity Ref
        writer_binding_ref:
          type: string
          pattern: ^[a-z]+_[A-Za-z0-9_-]{8,64}$
          title: Writer Binding Ref
        integration_id:
          type: string
          pattern: ^[a-z]+_[A-Za-z0-9_-]{8,64}$
          title: Integration Id
        revision:
          type: integer
          minimum: 1
          title: Revision
        status:
          type: string
          enum:
            - needs_validation
            - ready
            - action_required
            - disabled
          title: Status
        capabilities:
          $ref: '#/components/schemas/GamCapabilities'
      additionalProperties: false
      type: object
      required:
        - type
        - name
        - network_code
        - cms_id
        - metadata_owner
        - owned_keys
        - auth_mode
        - export_mode
        - identity_ref
        - writer_binding_ref
        - integration_id
        - revision
        - status
        - capabilities
      title: GamServiceAccountIntegration
    GamOAuthIntegration:
      properties:
        type:
          type: string
          const: gam
          title: Type
        name:
          type: string
          maxLength: 120
          minLength: 1
          title: Name
        network_code:
          type: string
          pattern: ^[0-9]{1,32}$
          title: Network Code
        cms_id:
          type: string
          pattern: ^[0-9]{1,32}$
          title: Cms Id
        metadata_owner:
          type: string
          enum:
            - publisher_snapshot
            - il_owned_source
          title: Metadata Owner
        owned_keys:
          items:
            type: string
            enum:
              - il_topic
              - il_suitability
          type: array
          maxItems: 2
          minItems: 1
          title: Owned Keys
        auth_mode:
          type: string
          const: oauth_user
          title: Auth Mode
        export_mode:
          type: string
          enum:
            - ad_request_signals
            - mrss
          title: Export Mode
        credential_ref:
          type: string
          pattern: ^[a-z]+_[A-Za-z0-9_-]{8,64}$
          title: Credential Ref
        integration_id:
          type: string
          pattern: ^[a-z]+_[A-Za-z0-9_-]{8,64}$
          title: Integration Id
        revision:
          type: integer
          minimum: 1
          title: Revision
        status:
          type: string
          enum:
            - needs_validation
            - ready
            - action_required
            - disabled
          title: Status
        capabilities:
          $ref: '#/components/schemas/GamCapabilities'
      additionalProperties: false
      type: object
      required:
        - type
        - name
        - network_code
        - cms_id
        - metadata_owner
        - owned_keys
        - auth_mode
        - export_mode
        - credential_ref
        - integration_id
        - revision
        - status
        - capabilities
      title: GamOAuthIntegration
    Problem:
      additionalProperties: false
      properties:
        type:
          title: Type
          type: string
        title:
          type: string
          title: Title
        status:
          title: Status
          type: integer
        detail:
          title: Detail
          type: string
        instance:
          title: Instance
          type: string
        code:
          type: string
          title: Code
        request_id:
          pattern: ^[a-z]+_[A-Za-z0-9_-]{8,64}$
          title: Request Id
          type: string
        retryable:
          type: boolean
          title: Retryable
        errors:
          anyOf:
            - items:
                $ref: '#/components/schemas/FieldError'
              type: array
            - type: 'null'
          default: null
          title: Errors
      required:
        - type
        - title
        - status
        - detail
        - instance
        - code
        - request_id
        - retryable
      title: Problem
      type: object
    GamCapabilities:
      properties:
        video_api_write:
          type: boolean
          title: Video Api Write
        metadata_readback:
          type: boolean
          const: false
          title: Metadata Readback
        mrss:
          type: boolean
          title: Mrss
      additionalProperties: false
      type: object
      required:
        - video_api_write
        - metadata_readback
        - mrss
      title: GamCapabilities
    FieldError:
      additionalProperties: false
      properties:
        pointer:
          title: Pointer
          type: string
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
      required:
        - pointer
        - code
        - message
      title: FieldError
      type: object
  securitySchemes:
    ContentKey:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.