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

# Scan result

> Asset analyses include transcript, observations and the analysis profile. Legacy URL scans include opportunities, holds and breaks with signals. Offsets are content seconds.



## OpenAPI

````yaml reference/openapi.json GET /v1/vod/scans/{scan_id}/result
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/scans/{scan_id}/result:
    get:
      tags:
        - VOD
      summary: Scan result
      description: >-
        Asset analyses include transcript, observations and the analysis
        profile. Legacy URL scans include opportunities, holds and breaks with
        signals. Offsets are content seconds.
      operationId: result_v1_vod_scans__scan_id__result_get
      parameters:
        - name: scan_id
          in: path
          required: true
          schema:
            type: string
            title: Scan Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScanResult'
        '401':
          description: Missing, invalid or revoked API key
        '403':
          description: The API key lacks the required scope
        '404':
          description: Unknown scan
        '409':
          description: The scan is not done
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    ScanResult:
      properties:
        scan_id:
          type: string
          title: Scan Id
        duration:
          type: number
          title: Duration
        transcript:
          items:
            $ref: '#/components/schemas/TranscriptLine'
          type: array
          title: Transcript
        opportunities:
          items:
            $ref: '#/components/schemas/ScanOpportunity'
          type: array
          title: Opportunities
        holds:
          items:
            $ref: '#/components/schemas/ScanHold'
          type: array
          title: Holds
        breaks:
          items:
            $ref: '#/components/schemas/ScanBreak'
          type: array
          title: Breaks
        costs:
          additionalProperties: true
          type: object
          title: Costs
        latency:
          additionalProperties:
            type: number
          type: object
          title: Latency
        counts:
          additionalProperties:
            type: integer
          type: object
          title: Counts
        notes:
          items:
            type: string
          type: array
          title: Notes
        observations:
          anyOf:
            - items:
                $ref: '#/components/schemas/Observation'
              type: array
            - type: 'null'
          title: Observations
        profile:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Profile
      type: object
      required:
        - scan_id
        - duration
        - transcript
        - opportunities
        - holds
        - breaks
        - costs
        - latency
        - counts
        - notes
      title: ScanResult
      examples:
        - breaks: []
          costs:
            by_stage:
              asr: 0.001
            currency: USD
            total_usd: 0.001
          counts:
            breaks: 0
            phrases: 1
          duration: 14.48
          holds: []
          latency:
            media_seconds: 14.48
            speedup: 2
            wall_seconds: 7.24
          notes: []
          observations:
            - end: 3.5
              output:
                category_probs:
                  topic:deportes: 0.95
                risk_severity: 0
              start: 0
              text: The striker scored a goal.
          opportunities: []
          profile:
            revision: 1
            topics:
              - deportes
          scan_id: scan-0123456789abcdef
          transcript:
            - end: 3.5
              start: 0
              text: The striker scored a goal.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TranscriptLine:
      properties:
        start:
          type: number
          title: Start
        end:
          type: number
          title: End
        text:
          type: string
          title: Text
      type: object
      required:
        - start
        - end
        - text
      title: TranscriptLine
    ScanOpportunity:
      properties:
        time:
          type: number
          title: Time
        text:
          type: string
          title: Text
        category:
          type: string
          title: Category
        prob:
          anyOf:
            - type: number
            - type: 'null'
          title: Prob
        campaigns:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Campaigns
        scenario:
          anyOf:
            - type: string
            - type: integer
            - type: 'null'
          title: Scenario
        outcome:
          type: string
          title: Outcome
        run_id:
          type: string
          title: Run Id
        super:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Super
      type: object
      required:
        - time
        - text
        - category
        - prob
        - campaigns
        - scenario
        - outcome
        - run_id
      title: ScanOpportunity
    ScanHold:
      properties:
        start:
          type: number
          title: Start
        end:
          type: number
          title: End
        text:
          type: string
          title: Text
        risk:
          type: string
          title: Risk
        severity:
          type: number
          title: Severity
      type: object
      required:
        - start
        - end
        - text
        - risk
        - severity
      title: ScanHold
    ScanBreak:
      properties:
        break_id:
          type: string
          title: Break Id
        start:
          type: number
          title: Start
        duration:
          type: number
          title: Duration
        source:
          type: string
          title: Source
        signal:
          additionalProperties: true
          type: object
          title: Signal
      type: object
      required:
        - break_id
        - start
        - duration
        - source
        - signal
      title: ScanBreak
    Observation:
      properties:
        start:
          type: number
          title: Start
        end:
          type: number
          title: End
        text:
          type: string
          title: Text
        output:
          additionalProperties: true
          type: object
          title: Output
      type: object
      required:
        - start
        - end
        - text
        - output
      title: Observation
    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.