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

# Pedir el paso siguiente de un corte

> Pide el paso siguiente de adserver de un corte cuando el adserver del paso anterior no devolvió anuncio. Sólo para reproducciones con `routing` en `steps`. Mandá el paso que nombró la respuesta anterior. Sin pasos restantes responde `{"eligible": false, "reason": "steps_exhausted", "steps_left": 0}`. Si las listas se editaron después de `/request`, responde `steps_changed`; un corte bloqueado o un video o análisis cambiado responde el mismo motivo que `/request`. Cualquier `eligible: false` termina el corte: reanudá el contenido.



## OpenAPI

````yaml reference/openapi.json POST /v1/vod/playbacks/{playback_id}/opportunities/{opportunity_id}/next
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/{playback_id}/opportunities/{opportunity_id}/next:
    post:
      tags:
        - VOD operations
      summary: Next Step
      description: >-
        Ask the next ad-server step of a break after the ad server of the
        previous step returned no ad. Only for playbacks with routing steps.
        Send the step the previous answer named. With no askable step left the
        answer is {"eligible": false, "reason": "steps_exhausted", "steps_left":
        0}, with the last reason in context.last_reason. If the lists were
        edited after /request and after_step is no longer the step asked, the
        reason is steps_changed. A blocked break or a changed video or analysis
        answers the same reason /request gives. Any eligible false ends the
        break: resume the content.
      operationId: >-
        next_step_v1_vod_playbacks__playback_id__opportunities__opportunity_id__next_post
      parameters:
        - name: playback_id
          in: path
          required: true
          schema:
            type: string
            title: Playback Id
        - name: opportunity_id
          in: path
          required: true
          schema:
            type: string
            title: Opportunity Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NextIn'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RequestOut'
        '401':
          description: Missing, invalid or revoked API key
        '403':
          description: The API key lacks the required scope
        '404':
          description: Unknown playback or opportunity
        '409':
          description: >-
            The opportunity was not requested, after_step is not the last step
            answered, the playback does not walk steps, or the playback ended
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    NextIn:
      properties:
        after_step:
          type: integer
          maximum: 2
          minimum: 0
          title: After Step
          description: The step the previous answer named, whose ad server had no ad
      additionalProperties: false
      type: object
      required:
        - after_step
      title: NextIn
    RequestOut:
      properties:
        eligible:
          type: boolean
          title: Eligible
        reason:
          type: string
          title: Reason
          description: >-
            Why the break is or is not eligible. Playbacks with routing steps
            can also answer requested (iADServer step), steps_exhausted (no
            askable step left), steps_changed (on /next: the project's lists
            were edited and after_step is no longer the step asked),
            midroll_disabled (no mid-roll steps), preroll_disabled (no pre-roll
            steps) and gam_disconnected. context.skipped_steps lists each
            skipped step with its reason: covered_by_contextual,
            no_linked_campaigns, profile_unavailable, no_scene_at_preroll,
            iadserver_unavailable, iadserver_refused or a scene reason.
        context:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Context
        ad_tag_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Ad Tag Url
          description: >-
            Opaque VAST URL to fetch exactly as given. On a playback created
            with graphics, an iADServer step with a tag answers its permanent
            tag with sid set to the plan's commerce.session and a correlator
            kept for this break: do not add, change or remove sid or correlator;
            a repeated fetch returns the same delivery.
        router_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Router Id
        provider:
          anyOf:
            - type: string
            - type: 'null'
          title: Provider
        ticket:
          anyOf:
            - type: string
            - type: 'null'
          title: Ticket
        attempt_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Attempt Id
        expires_at:
          anyOf:
            - type: number
            - type: 'null'
          title: Expires At
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        step:
          anyOf:
            - type: integer
            - type: 'null'
          title: Step
          description: >-
            Index, from 0, of the step that answered. Only on playbacks with
            routing steps.
        steps_left:
          anyOf:
            - type: integer
            - type: 'null'
          title: Steps Left
          description: >-
            Steps after this one in the moment's list. 0 when no other step can
            be asked. Only on playbacks with routing steps.
        kind:
          anyOf:
            - type: string
              enum:
                - contextual
                - common
            - type: 'null'
          title: Kind
          description: >-
            Kind of the step that answered, contextual or common. Only on
            playbacks with routing steps.
        connection_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Connection Id
          description: >-
            Ad-server connection of the step that answered. Only on playbacks
            with routing steps.
        ad_profile_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Ad Profile Id
          description: >-
            Ad profile of the step that answered. Only on playbacks with routing
            steps.
      type: object
      required:
        - eligible
        - reason
      title: RequestOut
    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.