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



## OpenAPI

````yaml reference/openapi.json POST /v1/vod/playbacks
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/vod/playbacks:
    post:
      tags:
        - VOD operations
      summary: Create Playback
      operationId: create_playback_v1_vod_playbacks_post
      parameters:
        - name: Idempotency-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
                minLength: 1
                maxLength: 160
              - type: 'null'
            title: Idempotency-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PlaybackIn'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlaybackOut'
        '401':
          description: Missing, invalid or revoked API key
        '403':
          description: The API key lacks the required scope
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    PlaybackIn:
      properties:
        provider:
          anyOf:
            - type: string
              enum:
                - gam
                - springserve
                - iadserver
            - type: 'null'
          title: Provider
        ad_profile_id:
          anyOf:
            - type: string
              maxLength: 80
              minLength: 1
            - type: 'null'
          title: Ad Profile Id
        connection_id:
          anyOf:
            - type: string
              maxLength: 80
              minLength: 1
            - type: 'null'
          title: Connection Id
        gam_profile_id:
          anyOf:
            - type: string
              maxLength: 80
              minLength: 1
            - type: 'null'
          title: Gam Profile Id
          description: Legacy GAM-only alias for ad_profile_id
        asset_id:
          type: string
          maxLength: 80
          minLength: 1
          title: Asset Id
        channel_id:
          type: string
          maxLength: 80
          minLength: 1
          title: Channel Id
        airing_id:
          anyOf:
            - type: string
              maxLength: 80
              minLength: 1
            - type: 'null'
          title: Airing Id
        diagnostic_test_id:
          anyOf:
            - type: string
              maxLength: 80
              minLength: 1
            - type: 'null'
          title: Diagnostic Test Id
        adrouter_placement_id:
          anyOf:
            - type: string
              maxLength: 80
              minLength: 1
            - type: 'null'
          title: Adrouter Placement Id
        project_routing:
          type: boolean
          title: Project Routing
          description: >-
            Resolve the current project route for this playback, including
            diagnostics
          default: false
        graphics:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Graphics
          description: >-
            Set to true when the app has the IL adapter and draws IL graphics
            next to the breaks it plays. Read them with GET
            /v1/vod/playbacks/{playback_id}/plan and pass that plan to the app.
            On playbacks that walk routing steps, an iADServer step with a tag
            (whose iADServer connection still exists) then answers its permanent
            tag, whose ads can carry a Buy button; the app must report its
            breaks and ads to the adapter and attach with the plan's
            commerce.session.
      additionalProperties: false
      type: object
      required:
        - asset_id
        - channel_id
      title: PlaybackIn
    PlaybackOut:
      properties:
        provider:
          anyOf:
            - type: string
              enum:
                - gam
                - springserve
                - iadserver
            - type: 'null'
          title: Provider
          default: gam
        adrouter_placement_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Adrouter Placement Id
        ad_profile_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Ad Profile Id
          default: default
        connection_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Connection Id
          default: default
        playback_id:
          type: string
          title: Playback Id
        asset_id:
          type: string
          title: Asset Id
        analysis_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Analysis Id
        version:
          type: string
          title: Version
        channel_id:
          type: string
          title: Channel Id
        gam_profile_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Gam Profile Id
        airing_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Airing Id
        created_at:
          type: string
          format: date-time
          title: Created At
        ended_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Ended At
        position_seconds:
          type: number
          title: Position Seconds
        diagnostic_test_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Diagnostic Test Id
        routing:
          anyOf:
            - type: string
              const: steps
            - type: 'null'
          title: Routing
          description: >-
            Present with the value steps when the playback walks the project's
            ordered ad-server steps per moment. Absent otherwise.
        graphics:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Graphics
          description: >-
            Present with the value true when the playback was created with
            graphics (false when created with graphics: false). Absent
            otherwise.
      type: object
      required:
        - playback_id
        - asset_id
        - analysis_id
        - version
        - channel_id
        - gam_profile_id
        - airing_id
        - created_at
        - ended_at
        - position_seconds
        - diagnostic_test_id
      title: PlaybackOut
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      description: >-
        Partner API key (`ck_…`). Created by Interactive Layers; shown only
        once.
      in: header
      name: X-API-Key

````

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