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

# Consultar a política de entrega VOD

> Consulta a política de inserção VOD do projeto que faz a chamada. Destina-se ao backend do publisher.



## OpenAPI

````yaml reference/openapi.json GET /v1/vod/delivery-policy
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/delivery-policy:
    get:
      tags:
        - VOD operations
      summary: Delivery Policy
      description: >-
        Read the VOD insertion policy of the calling project. Intended for a
        publisher backend.
      operationId: delivery_policy_v1_vod_delivery_policy_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicVodPolicy'
        '401':
          description: Missing, invalid or revoked API key
        '403':
          description: The API key lacks the required scope
      security:
        - APIKeyHeader: []
components:
  schemas:
    PublicVodPolicy:
      properties:
        project_id:
          type: string
          title: Project Id
        revision:
          type: integer
          title: Revision
        vod:
          $ref: '#/components/schemas/PublishedVodSettings'
        live_commerce:
          anyOf:
            - $ref: '#/components/schemas/CommercePolicy'
            - type: 'null'
      type: object
      required:
        - project_id
        - revision
        - vod
      title: PublicVodPolicy
    PublishedVodSettings:
      properties:
        enabled:
          type: boolean
          title: Enabled
          default: true
        format:
          type: string
          enum:
            - overlay_300x250
            - super
            - l_shape
          title: Format
          default: overlay_300x250
        formats:
          anyOf:
            - items:
                type: string
                enum:
                  - overlay_300x250
                  - super
                  - l_shape
              type: array
              maxItems: 3
              minItems: 1
            - type: 'null'
          title: Formats
        commerce:
          anyOf:
            - $ref: '#/components/schemas/CommercePolicy'
            - type: 'null'
        min_seconds:
          type: number
          maximum: 120
          minimum: 1.5
          title: Min Seconds
          default: 1.5
        max_seconds:
          anyOf:
            - type: number
              maximum: 120
              minimum: 1.5
            - type: 'null'
          title: Max Seconds
        gap_after_seconds:
          type: number
          maximum: 3600
          minimum: 0
          title: Gap After Seconds
          default: 0
        max_per_video:
          anyOf:
            - type: integer
              maximum: 200
              minimum: 1
            - type: 'null'
          title: Max Per Video
        cut_clearance_seconds:
          type: number
          maximum: 120
          minimum: 0
          title: Cut Clearance Seconds
          default: 0
        graphic_campaign:
          anyOf:
            - $ref: '#/components/schemas/GraphicCampaign'
            - type: 'null'
        graphic_campaigns:
          items:
            $ref: '#/components/schemas/GraphicCampaign'
          type: array
          title: Graphic Campaigns
      additionalProperties: false
      type: object
      title: PublishedVodSettings
    CommercePolicy:
      properties:
        contextual_tag:
          anyOf:
            - type: string
              pattern: ^[A-Za-z0-9_-]{1,128}$
            - type: 'null'
          title: Contextual Tag
        preroll_tag:
          anyOf:
            - type: string
              pattern: ^[A-Za-z0-9_-]{1,128}$
            - type: 'null'
          title: Preroll Tag
        midroll_tag:
          anyOf:
            - type: string
              pattern: ^[A-Za-z0-9_-]{1,128}$
            - type: 'null'
          title: Midroll Tag
      additionalProperties: false
      type: object
      title: CommercePolicy
    GraphicCampaign:
      properties:
        provider:
          type: string
          const: gam
          title: Provider
        format:
          type: string
          enum:
            - super
            - l_shape
          title: Format
        tag_url:
          type: string
          title: Tag Url
      type: object
      required:
        - provider
        - format
        - tag_url
      title: GraphicCampaign
  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.