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

# Rotate Endpoint



## OpenAPI

````yaml reference/openapi.json PUT /v1/webhook-endpoints/{endpoint_id}/secret
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/webhook-endpoints/{endpoint_id}/secret:
    put:
      tags:
        - Content credentials
        - Content webhooks
      summary: Rotate Endpoint
      operationId: rotate_endpoint_v1_webhook_endpoints__endpoint_id__secret_put
      parameters:
        - name: endpoint_id
          in: path
          required: true
          schema:
            type: string
            pattern: ^[a-z]+_[A-Za-z0-9_-]{8,64}$
            title: Endpoint Id
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            pattern: ^[A-Za-z0-9._~-]{8,128}$
            title: Idempotency-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RotateSecret'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookEndpoint'
        '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:
    RotateSecret:
      properties:
        expected_revision:
          type: integer
          minimum: 1
          title: Expected Revision
        signing_secret:
          type: string
          format: password
          title: Signing Secret
          writeOnly: true
      additionalProperties: false
      type: object
      required:
        - expected_revision
        - signing_secret
      title: RotateSecret
    WebhookEndpoint:
      properties:
        webhook_endpoint_id:
          type: string
          pattern: ^[a-z]+_[A-Za-z0-9_-]{8,64}$
          title: Webhook Endpoint Id
        url:
          type: string
          maxLength: 2048
          minLength: 1
          title: Url
        name:
          type: string
          maxLength: 120
          minLength: 1
          title: Name
        events:
          items:
            type: string
            enum:
              - batch.completed
              - batch.completed_with_errors
              - batch.failed
              - batch.cancelled
              - connection.action_required
              - export.completed
              - export.failed
          type: array
          title: Events
        status:
          type: string
          enum:
            - active
            - disabled
          title: Status
        secret_revision:
          type: integer
          minimum: 1
          title: Secret Revision
        created_at:
          type: string
          pattern: ^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.\d{1,9})?Z$
          title: Created At
      additionalProperties: false
      type: object
      required:
        - webhook_endpoint_id
        - url
        - name
        - events
        - status
        - secret_revision
        - created_at
      title: WebhookEndpoint
    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
    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
  securitySchemes:
    ContentKey:
      type: http
      scheme: bearer

````

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