> ## 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 configuração de uma conexão



## OpenAPI

````yaml reference/openapi.json GET /v1/connections/{connection_id}/setup
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/connections/{connection_id}/setup:
    get:
      tags:
        - Content credentials
        - Content catalog
      summary: Connection Setup
      operationId: connection_setup_v1_connections__connection_id__setup_get
      parameters:
        - name: connection_id
          in: path
          required: true
          schema:
            type: string
            pattern: ^[a-z]+_[A-Za-z0-9_-]{8,64}$
            title: Connection Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectionSetup'
        '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:
    ConnectionSetup:
      properties:
        connection_id:
          type: string
          pattern: ^[a-z]+_[A-Za-z0-9_-]{8,64}$
          title: Connection Id
        provider:
          type: string
          enum:
            - jwplayer
            - aws_s3
            - gcs
            - generic
            - akamai
            - fastly
            - fastly_s3
          title: Provider
        external_id:
          anyOf:
            - type: string
            - type: 'null'
          title: External Id
        runtime_principal:
          anyOf:
            - type: string
            - type: 'null'
          title: Runtime Principal
        required_steps:
          items:
            type: string
          type: array
          title: Required Steps
        policy_documents:
          items:
            $ref: '#/components/schemas/PolicyDocument'
          type: array
          title: Policy Documents
      additionalProperties: false
      type: object
      required:
        - connection_id
        - provider
        - external_id
        - runtime_principal
        - required_steps
        - policy_documents
      title: ConnectionSetup
    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
    PolicyDocument:
      properties:
        name:
          type: string
          title: Name
        document:
          $ref: '#/components/schemas/JsonValue'
      additionalProperties: false
      type: object
      required:
        - name
        - document
      title: PolicyDocument
    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
    JsonValue: {}
  securitySchemes:
    ContentKey:
      type: http
      scheme: bearer

````

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