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

# Matches



## OpenAPI

````yaml reference/openapi.json GET /v1/vod/matches
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/matches:
    get:
      tags:
        - VOD operations
      summary: Matches
      operationId: matches_v1_vod_matches_get
      parameters:
        - name: asset_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 80
              - type: 'null'
            title: Asset Id
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 50
            title: Limit
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
            title: Offset
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MatchOut'
                title: Response Matches V1 Vod Matches Get
        '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:
    MatchOut:
      properties:
        provider:
          type: string
          enum:
            - gam
            - springserve
            - iadserver
          title: Provider
          default: gam
        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
        match_id:
          type: string
          title: Match Id
        asset_id:
          type: string
          title: Asset Id
        analysis_id:
          type: string
          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
        planned_start_at:
          type: string
          format: date-time
          title: Planned Start At
        airing_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Airing Id
        due_at:
          type: string
          format: date-time
          title: Due At
        created_at:
          type: string
          format: date-time
          title: Created At
        status:
          type: string
          enum:
            - queued
            - running
            - done
            - failed
            - cancelled
          title: Status
        result:
          anyOf:
            - $ref: '#/components/schemas/MatchResult'
            - type: 'null'
      type: object
      required:
        - match_id
        - asset_id
        - analysis_id
        - version
        - channel_id
        - gam_profile_id
        - planned_start_at
        - airing_id
        - due_at
        - created_at
        - status
        - result
      title: MatchOut
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MatchResult:
      properties:
        moments:
          anyOf:
            - items:
                $ref: '#/components/schemas/Moment'
              type: array
            - type: 'null'
          title: Moments
        gam:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Gam
        springserve:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Springserve
        iadserver:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Iadserver
        channel:
          anyOf:
            - $ref: '#/components/schemas/ChannelOut'
            - type: 'null'
        profile:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Profile
        analysis_profile:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Analysis Profile
        campaigns:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Campaigns
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
      type: object
      title: MatchResult
    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
    Moment:
      properties:
        eligible:
          type: boolean
          title: Eligible
        reason:
          type: string
          title: Reason
        context:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Context
        start:
          type: number
          title: Start
        end:
          type: number
          title: End
        text:
          type: string
          title: Text
        evaluated_at:
          type: string
          format: date-time
          title: Evaluated At
      type: object
      required:
        - eligible
        - reason
        - start
        - end
        - text
        - evaluated_at
      title: Moment
    ChannelOut:
      properties:
        name:
          type: string
          maxLength: 100
          minLength: 1
          title: Name
        timezone:
          type: string
          maxLength: 100
          minLength: 1
          title: Timezone
          examples:
            - America/Argentina/Cordoba
        channel_id:
          type: string
          title: Channel Id
      additionalProperties: false
      type: object
      required:
        - name
        - timezone
        - channel_id
      title: ChannelOut
  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.