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

# List Batches



## OpenAPI

````yaml reference/openapi.json GET /v1/processing-batches
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/processing-batches:
    get:
      tags:
        - Content credentials
        - Content processing
      summary: List Batches
      operationId: list_batches_v1_processing_batches_get
      parameters:
        - name: connection_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                pattern: ^[a-z]+_[A-Za-z0-9_-]{8,64}$
              - type: 'null'
            title: Connection Id
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - enum:
                  - validating
                  - queued
                  - running
                  - cancelling
                  - succeeded
                  - completed_with_errors
                  - failed
                  - cancelled
                type: string
              - type: 'null'
            title: Status
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            default: 50
            title: Limit
        - name: cursor
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 4096
              - type: 'null'
            title: Cursor
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Page_Batch_'
        '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:
    Page_Batch_:
      properties:
        data:
          items:
            $ref: '#/components/schemas/Batch'
          type: array
          title: Data
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
        has_more:
          type: boolean
          title: Has More
      additionalProperties: false
      type: object
      required:
        - data
        - next_cursor
        - has_more
      title: Page[Batch]
    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
    Batch:
      properties:
        batch_id:
          type: string
          pattern: ^[a-z]+_[A-Za-z0-9_-]{8,64}$
          title: Batch Id
        connection_id:
          type: string
          pattern: ^[a-z]+_[A-Za-z0-9_-]{8,64}$
          title: Connection Id
        parent_batch_id:
          anyOf:
            - type: string
              pattern: ^[a-z]+_[A-Za-z0-9_-]{8,64}$
            - type: 'null'
          title: Parent Batch Id
        status:
          type: string
          enum:
            - validating
            - queued
            - running
            - cancelling
            - succeeded
            - completed_with_errors
            - failed
            - cancelled
          title: Status
        selection_snapshot_id:
          type: string
          pattern: ^[a-z]+_[A-Za-z0-9_-]{8,64}$
          title: Selection Snapshot Id
        selection_truncated:
          type: boolean
          title: Selection Truncated
        total_items:
          type: integer
          title: Total Items
        counters:
          $ref: '#/components/schemas/Counters'
        usage:
          $ref: '#/components/schemas/Usage'
        analysis_profile:
          type: string
          enum:
            - context_av_v1
            - context_audio_v1
          title: Analysis Profile
        profile_revision:
          type: string
          title: Profile Revision
        safety_policy_id:
          type: string
          pattern: ^[a-z]+_[A-Za-z0-9_-]{8,64}$
          title: Safety Policy Id
        policy_revision:
          type: string
          title: Policy Revision
        outputs:
          items:
            type: string
            enum:
              - transcript
              - context
              - suitability
              - opportunities
          type: array
          title: Outputs
        max_input_seconds:
          type: integer
          title: Max Input Seconds
        blocked_reason:
          anyOf:
            - type: string
              const: connection_action_required
            - type: 'null'
          title: Blocked Reason
        error:
          anyOf:
            - $ref: '#/components/schemas/WorkError'
            - type: 'null'
        created_at:
          type: string
          pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.\d{1,9})?Z$
          title: Created At
        started_at:
          anyOf:
            - type: string
              pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.\d{1,9})?Z$
            - type: 'null'
          title: Started At
        finished_at:
          anyOf:
            - type: string
              pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.\d{1,9})?Z$
            - type: 'null'
          title: Finished At
        deadline_at:
          type: string
          pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.\d{1,9})?Z$
          title: Deadline At
        status_url:
          type: string
          title: Status Url
      additionalProperties: false
      type: object
      required:
        - batch_id
        - connection_id
        - parent_batch_id
        - status
        - selection_snapshot_id
        - selection_truncated
        - total_items
        - counters
        - usage
        - analysis_profile
        - profile_revision
        - safety_policy_id
        - policy_revision
        - outputs
        - max_input_seconds
        - blocked_reason
        - error
        - created_at
        - started_at
        - finished_at
        - deadline_at
        - status_url
      title: Batch
    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
    Counters:
      properties:
        pending:
          type: integer
          title: Pending
          default: 0
        active:
          type: integer
          title: Active
          default: 0
        succeeded:
          type: integer
          title: Succeeded
          default: 0
        failed:
          type: integer
          title: Failed
          default: 0
        cancelled:
          type: integer
          title: Cancelled
          default: 0
        reused:
          type: integer
          title: Reused
          default: 0
      additionalProperties: false
      type: object
      title: Counters
    Usage:
      properties:
        input_duration_ms:
          type: integer
          title: Input Duration Ms
          default: 0
        analyzed_duration_ms:
          type: integer
          title: Analyzed Duration Ms
          default: 0
        reused_duration_ms:
          type: integer
          title: Reused Duration Ms
          default: 0
        downloaded_bytes:
          type: string
          pattern: ^(0|[1-9][0-9]*)$
          title: Downloaded Bytes
          default: '0'
        provider_requests:
          type: integer
          title: Provider Requests
          default: 0
        engine_requests:
          type: integer
          title: Engine Requests
          default: 0
      additionalProperties: false
      type: object
      title: Usage
    WorkError:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
        retryable:
          type: boolean
          title: Retryable
        provider_status:
          anyOf:
            - type: integer
            - type: 'null'
          title: Provider Status
        stage:
          type: string
          title: Stage
        occurred_at:
          type: string
          title: Occurred At
      additionalProperties: false
      type: object
      required:
        - code
        - message
        - retryable
        - provider_status
        - stage
        - occurred_at
      title: WorkError
  securitySchemes:
    ContentKey:
      type: http
      scheme: bearer

````

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