Amazon Interactive Video Service GetStreamSession API

The GetStreamSession API from Amazon Interactive Video Service — 1 operation(s) for getstreamsession.

GitHub OpenAPI
Business capability
OTT & Streaming Delivery BC-3740.20

Operations 1

POST /GetStreamSession Get Stream Session #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-interactive-video-service:amazon-interactive-video-service-getstreamsession-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-interactive-video-service-getstreamsession-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Interactive Video Service Getstreamsession API
  version: '2020-07-14'
  description: Generated from AWS's published Smithy model for Amazon Interactive Video Service. 1 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://ivs.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /GetStreamSession:
    post:
      operationId: GetStreamSession
      summary: Get Stream Session
      description: Gets metadata on a specified stream.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetStreamSessionResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                channelArn:
                  type: string
                  description: ARN of the channel resource
                streamId:
                  type: string
                  description: Unique identifier for a live or previously live stream in the specified channel. If no streamId
                    is provided, this returns the most recent stream session for the channel, if it exists.
              required:
              - channelArn
      tags:
      - Getstreamsession
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: ivs
  schemas:
    AccessDeniedException:
      type: object
      properties:
        accessControlAllowOrigin:
          type: string
        accessControlExposeHeaders:
          type: string
        cacheControl:
          type: string
        contentSecurityPolicy:
          type: string
        strictTransportSecurity:
          type: string
        xContentTypeOptions:
          type: string
        xFrameOptions:
          type: string
        xAmznErrorType:
          type: string
        exceptionMessage:
          type: string
          description: User does not have sufficient access to perform this action.
    AudioConfiguration:
      type: object
      properties:
        codec:
          type: string
          description: Codec used for the audio encoding.
        targetBitrate:
          type: integer
          description: The expected ingest bitrate (bits per second). This is configured in the encoder.
        sampleRate:
          type: integer
          description: Number of audio samples recorded per second.
        channels:
          type: integer
          description: Number of audio channels.
        track:
          type: string
          description: Name of the audio track (if the stream has an audio track). If multitrack is not enabled, this is Track0
            (the sole track).
    Channel:
      type: object
      properties:
        arn:
          type: string
          description: Channel ARN.
        name:
          type: string
          description: Channel name.
        latencyMode:
          type: string
          description: 'Channel latency mode. Use NORMAL to broadcast and deliver live video up to Full HD. Use LOW for near-real-time
            interaction with viewers. Default: LOW.'
        type:
          type: string
          enum:
          - BASIC
          - STANDARD
          - ADVANCED_SD
          - ADVANCED_HD
          description: 'Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable input
            resolution or bitrate, the stream probably will disconnect immediately. Default: STANDARD. For details, see Channel
            Types.'
        recordingConfigurationArn:
          type: string
          description: 'Recording-configuration ARN. A valid ARN value here both specifies the ARN and enables recording.
            Default: "" (empty string, recording is disabled).'
        ingestEndpoint:
          type: string
          description: Channel ingest endpoint, part of the definition of an ingest server, used when you set up streaming
            software.
        playbackUrl:
          type: string
          description: Channel playback URL.
        authorized:
          type: boolean
          description: 'Whether the channel is private (enabled for playback authorization). Default: false.'
        tags:
          type: object
          additionalProperties:
            type: string
          description: Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value). See
            Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions
            that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond
            what is documented there.
        insecureIngest:
          type: boolean
          description: 'Whether the channel allows insecure RTMP ingest. Default: false.'
        preset:
          type: string
          enum:
          - HIGHER_BANDWIDTH_DELIVERY
          - CONSTRAINED_BANDWIDTH_DELIVERY
          description: Optional transcode preset for the channel. This is selectable only for ADVANCED_HD and ADVANCED_SD
            channel types. For those channel types, the default preset is HIGHER_BANDWIDTH_DELIVERY. For other channel types
            (BASIC and STANDARD), preset is the empty string ("").
        srt:
          $ref: '#/components/schemas/Srt'
        playbackRestrictionPolicyArn:
          type: string
          description: 'Playback-restriction-policy ARN. A valid ARN value here both specifies the ARN and enables playback
            restriction. Default: "" (empty string, no playback restriction policy is applied).'
        multitrackInputConfiguration:
          $ref: '#/components/schemas/MultitrackInputConfiguration'
        containerFormat:
          type: string
          description: 'Indicates which content-packaging format is used (MPEG-TS or fMP4). If multitrackInputConfiguration
            is specified and enabled is true, then containerFormat is required and must be set to FRAGMENTED_MP4. Otherwise,
            containerFormat may be set to TS or FRAGMENTED_MP4. Default: TS.'
        adConfigurationArn:
          type: string
          description: ARN of the ad configuration associated with the channel.
        failoverSlateConfigurationArn:
          type: string
          description: 'Failover-slate-configuration ARN. A valid ARN value here both specifies the ARN and enables failover
            slate. Default: "" (empty string, no failover slate configuration is applied).'
    DestinationConfiguration:
      type: object
      properties:
        s3:
          $ref: '#/components/schemas/S3DestinationConfiguration'
    FailoverSlateConfiguration:
      type: object
      properties:
        arn:
          type: string
          description: Failover-slate-configuration ARN.
        name:
          type: string
          description: Failover-slate-configuration name.
        activationThresholdSeconds:
          type: integer
          description: 'Number of seconds of ingest interruption before the failover slate activates. Default: 3.'
        minSlateDisplaySeconds:
          type: integer
          description: 'Minimum number of seconds that the failover slate displays after activation. Default: 3.'
        maxSlateDisplaySeconds:
          type: integer
          description: 'Maximum number of seconds that the failover slate displays. Default: 60.'
        state:
          type: string
          description: Current state of the failover slate configuration.
        tags:
          type: object
          additionalProperties:
            type: string
          description: Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value). See
            Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions
            that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond
            what is documented there.
      required:
      - arn
      - state
    GetStreamSessionResponse:
      type: object
      properties:
        streamSession:
          $ref: '#/components/schemas/StreamSession'
    IngestConfiguration:
      type: object
      properties:
        video:
          $ref: '#/components/schemas/VideoConfiguration'
        audio:
          $ref: '#/components/schemas/AudioConfiguration'
    IngestConfigurations:
      type: object
      properties:
        videoConfigurations:
          type: array
          items:
            $ref: '#/components/schemas/VideoConfiguration'
          description: Encoder settings for video
        audioConfigurations:
          type: array
          items:
            $ref: '#/components/schemas/AudioConfiguration'
          description: Encoder settings for audio.
      required:
      - videoConfigurations
      - audioConfigurations
    MultitrackInputConfiguration:
      type: object
      properties:
        enabled:
          type: boolean
          description: 'Indicates whether multitrack input is enabled. Can be set to true only if channel type is STANDARD.
            Setting enabled to true with any other channel type will cause an exception. If true, then policy, maximumResolution,
            and containerFormat are required, and containerFormat must be set to FRAGMENTED_MP4. Default: false.'
        policy:
          type: string
          enum:
          - ALLOW
          - REQUIRE
          description: Indicates whether multitrack input is allowed or required. Required if enabled is true.
        maximumResolution:
          type: string
          enum:
          - SD
          - HD
          - FULL_HD
          description: Maximum resolution for multitrack input. Required if enabled is true.
    RecordingConfiguration:
      type: object
      properties:
        arn:
          type: string
          description: Recording-configuration ARN.
        name:
          type: string
          description: Recording-configuration name. The value does not need to be unique.
        destinationConfiguration:
          $ref: '#/components/schemas/DestinationConfiguration'
        state:
          type: string
          description: Indicates the current state of the recording configuration. When the state is ACTIVE, the configuration
            is ready for recording a channel stream.
        tags:
          type: object
          additionalProperties:
            type: string
          description: Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value). See
            Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions
            that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond
            what is documented there.
        thumbnailConfiguration:
          $ref: '#/components/schemas/ThumbnailConfiguration'
        recordingReconnectWindowSeconds:
          type: integer
          description: 'If a broadcast disconnects and then reconnects within the specified interval, the multiple streams
            will be considered a single broadcast and merged together. Default: 0.'
        renditionConfiguration:
          $ref: '#/components/schemas/RenditionConfiguration'
      required:
      - arn
      - destinationConfiguration
      - state
    RenditionConfiguration:
      type: object
      properties:
        renditionSelection:
          type: string
          description: 'Indicates which set of renditions are recorded for a stream. For BASIC channels, the CUSTOM value
            has no effect. If CUSTOM is specified, a set of renditions must be specified in the renditions field. Default:
            ALL.'
        renditions:
          type: array
          items:
            type: string
            enum:
            - SD
            - HD
            - FULL_HD
            - LOWEST_RESOLUTION
          description: Indicates which renditions are recorded for a stream, if renditionSelection is CUSTOM; otherwise, this
            field is irrelevant. The selected renditions are recorded if they are available during the stream. If a selected
            rendition is unavailable, the best available rendition is recorded. For details on the resolution dimensions of
            each rendition, see Auto-Record to Amazon S3.
    ResourceNotFoundException:
      type: object
      properties:
        accessControlAllowOrigin:
          type: string
        accessControlExposeHeaders:
          type: string
        cacheControl:
          type: string
        contentSecurityPolicy:
          type: string
        strictTransportSecurity:
          type: string
        xContentTypeOptions:
          type: string
        xFrameOptions:
          type: string
        xAmznErrorType:
          type: string
        exceptionMessage:
          type: string
          description: Request references a resource which does not exist.
    S3DestinationConfiguration:
      type: object
      properties:
        bucketName:
          type: string
          description: Location (S3 bucket name) where recorded videos will be stored.
      required:
      - bucketName
    Srt:
      type: object
      properties:
        endpoint:
          type: string
          description: The endpoint to be used when streaming with IVS using the SRT protocol.
        passphrase:
          type: string
          description: Auto-generated passphrase to enable encryption. This field is applicable only if the end user has not
            enabled the insecureIngest option for the channel.
    StreamEvent:
      type: object
      properties:
        name:
          type: string
          description: Name that identifies the stream event within a type.
        type:
          type: string
          description: Logical group for certain events.
        eventTime:
          type: string
          format: date-time
          description: Time when the event occurred. This is an ISO 8601 timestamp; note that this is returned as a string.
        code:
          type: string
          description: Provides additional details about the stream event. There are several values; the long descriptions
            are provided in the IVS console but not delivered through the IVS API or EventBridge. Multitrack-related codes
            are used only for certain Session Ended events. MultitrackInputNotAllowed — The broadcast client attempted to
            connect with multitrack input, but multitrack input was not enabled on the channel. Check your broadcast software
            settings or set MultitrackInputConfiguration.Policy to ALLOW or REQUIRE. MultitrackInputRequired — The broadcast
            client attempted to connect with single-track video,
    StreamSession:
      type: object
      properties:
        streamId:
          type: string
          description: Unique identifier for a live or previously live stream in the specified channel.
        startTime:
          type: string
          format: date-time
          description: Time when the channel went live. This is an ISO 8601 timestamp; note that this is returned as a string.
        endTime:
          type: string
          format: date-time
          description: Time when the channel went offline. This is an ISO 8601 timestamp; note that this is returned as a
            string. For live streams, this is NULL.
        channel:
          $ref: '#/components/schemas/Channel'
        ingestConfiguration:
          $ref: '#/components/schemas/IngestConfiguration'
        ingestConfigurations:
          $ref: '#/components/schemas/IngestConfigurations'
        recordingConfiguration:
          $ref: '#/components/schemas/RecordingConfiguration'
        truncatedEvents:
          type: array
          items:
            $ref: '#/components/schemas/StreamEvent'
          description: List of Amazon IVS events that the stream encountered. The list is sorted by most recent events and
            contains up to 500 events. For Amazon IVS events, see Using Amazon EventBridge with Amazon IVS.
        failoverSlateConfiguration:
          $ref: '#/components/schemas/FailoverSlateConfiguration'
    ThumbnailConfiguration:
      type: object
      properties:
        recordingMode:
          type: string
          description: 'Thumbnail recording mode. Default: INTERVAL.'
        targetIntervalSeconds:
          type: integer
          description: 'The targeted thumbnail-generation interval in seconds. This is configurable (and required) only if
            recordingMode is INTERVAL. Default: 60. Important: For the BASIC channel type, or the STANDARD channel type with
            multitrack input, setting a value for targetIntervalSeconds does not guarantee that thumbnails are generated at
            the specified interval. For thumbnails to be generated at the targetIntervalSeconds interval, the IDR/Keyframe
            value for the input video must be less than the targetIntervalSeconds value. See Amazon IVS Streaming Configuration
            for information on setting IDR/Keyframe to the re'
        resolution:
          type: string
          enum:
          - SD
          - HD
          - FULL_HD
          - LOWEST_RESOLUTION
          description: 'Indicates the desired resolution of recorded thumbnails. Thumbnails are recorded at the selected resolution
            if the corresponding rendition is available during the stream; otherwise, they are recorded at source resolution.
            For more information about resolution values and their corresponding height and width dimensions, see Auto-Record
            to Amazon S3. Default: Null (source resolution is returned).'
        storage:
          type: array
          items:
            type: string
          description: 'Indicates the format in which thumbnails are recorded. SEQUENTIAL records all generated thumbnails
            in a serial manner, to the media/thumbnails directory. LATEST saves the latest thumbnail in media/latest_thumbnail/thumb.jpg
            and overwrites it at the interval specified by targetIntervalSeconds. You can enable both SEQUENTIAL and LATEST.
            Default: SEQUENTIAL.'
    ValidationException:
      type: object
      properties:
        accessControlAllowOrigin:
          type: string
        accessControlExposeHeaders:
          type: string
        cacheControl:
          type: string
        contentSecurityPolicy:
          type: string
        strictTransportSecurity:
          type: string
        xContentTypeOptions:
          type: string
        xFrameOptions:
          type: string
        xAmznErrorType:
          type: string
        exceptionMessage:
          type: string
          description: The input fails to satisfy the constraints specified by an Amazon Web Services service.
    VideoConfiguration:
      type: object
      properties:
        avcProfile:
          type: string
          description: (Deprecated) Indicates to the decoder the requirements for decoding the stream. For definitions of
            the valid values, see the H.264 specification. This is populated only when VideoConfiguration is part of the deprecated
            IngestConfiguration; otherwise, this is an empty string.
        avcLevel:
          type: string
          description: (Deprecated) Indicates the degree of required decoder performance for a profile. Normally this is set
            automatically by the encoder. For details, see the H.264 specification. This is populated only when VideoConfiguration
            is part of the deprecated IngestConfiguration; otherwise, this is an empty string.
        codec:
          type: string
          description: Codec used for the video encoding.
        encoder:
          type: string
          description: Software or hardware used to encode the video.
        targetBitrate:
          type: integer
          description: The expected ingest bitrate (bits per second). This is configured in the encoder.
        targetFramerate:
          type: integer
          description: The expected ingest framerate. This is configured in the encoder.
        videoHeight:
          type: integer
          description: Video-resolution height in pixels.
        videoWidth:
          type: integer
          description: Video-resolution width in pixels.
        level:
          type: string
          description: Indicates the degree of required decoder performance for a profile. Normally this is set automatically
            by the encoder. When an AVC codec is used, this field has the same value as avcLevel.
        track:
          type: string
          description: Name of the video track. If multitrack is not enabled, this is Track0 (the sole track).
        profile:
          type: string
          description: Indicates to the decoder the requirements for decoding the stream. When an AVC codec is used, this
            field has the same value as avcProfile.
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/ivs/service/2020-07-14/ivs-2020-07-14.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)