> This page is for APIs.

> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes.

# stream.started

GET /

Receive stream.started events

Reference: https://signalwire.com/docs/apis/relay/client/fabric/stream-started

## AsyncAPI Specification

```yaml
asyncapi: 2.6.0
info:
  title: stream.started
  version: subpackage_streamStarted.stream.started
  description: Receive stream.started events
channels:
  /:
    description: Receive stream.started events
    publish:
      operationId: subpackage_streamStarted.stream.started-publish
      summary: stream.started
      message:
        name: onStreamStartedStreamStartedEvent
        title: stream.started
        payload:
          $ref: '#/components/schemas/stream.started_streamStartedEvent'
servers:
  production:
    url: wss://relay.signalwire.com/
    protocol: wss
    x-default: true
components:
  schemas:
    ChannelsStreamStartedMessagesStreamStartedEventJsonrpc:
      type: string
      enum:
        - '2.0'
      description: JSON-RPC version. Always `2.0`.
      title: ChannelsStreamStartedMessagesStreamStartedEventJsonrpc
    ChannelsStreamStartedMessagesStreamStartedEventMethod:
      type: string
      enum:
        - signalwire.event
      description: Always `signalwire.event`.
      title: ChannelsStreamStartedMessagesStreamStartedEventMethod
    ChannelsStreamStartedMessagesStreamStartedEventParamsEventType:
      type: string
      enum:
        - stream.started
      description: The event type — identifies which event this is.
      title: ChannelsStreamStartedMessagesStreamStartedEventParamsEventType
    Fabric.StreamInfo:
      type: object
      properties:
        id:
          type: string
          description: The stream ID.
        state:
          type: string
          description: The stream state, such as `streaming` or `completed`.
        url:
          type: string
          description: >-
            The RTMP destination URL the room is being streamed to. Omitted when
            it is not reported on the event.
        duration:
          type: number
          format: double
          description: Stream duration in seconds. Present once the stream has ended.
        started_at:
          type: number
          format: double
          description: When the stream started, as a Unix timestamp in seconds.
        ended_at:
          type: number
          format: double
          description: >-
            When the stream ended, as a Unix timestamp in seconds. Present once
            the stream has ended.
      required:
        - id
        - state
        - started_at
      description: >-
        A Call Fabric RTMP stream, as carried on the `stream.*` events and in a
        room session's `streams` collection.
      title: Fabric.StreamInfo
    Fabric.StreamEventParams:
      type: object
      properties:
        room_id:
          type: string
          description: The room ID.
        room_session_id:
          type: string
          description: The room session ID.
        stream:
          $ref: '#/components/schemas/Fabric.StreamInfo'
          description: The stream, with its current state.
      required:
        - room_id
        - room_session_id
        - stream
      description: >-
        Payload of the `stream.*` events: the room and the stream that changed
        state.
      title: Fabric.StreamEventParams
    ChannelsStreamStartedMessagesStreamStartedEventParams:
      type: object
      properties:
        event_type:
          $ref: >-
            #/components/schemas/ChannelsStreamStartedMessagesStreamStartedEventParamsEventType
          description: The event type — identifies which event this is.
        event_channel:
          type: string
          description: >-
            The channel the event was delivered on — for Calling events, the
            `protocol`

            string your connection received from `signalwire.connect`.
        timestamp:
          type: number
          format: double
          description: >-
            When the event was emitted, as a Unix timestamp in seconds. Always
            present.
        project_id:
          type: string
          description: >-
            Your project ID. Present on Calling events and most Call Fabric
            events; absent on `call.joined`, `call.left`, `member.joined`, and
            `member.left`.
        space_id:
          type: string
          description: >-
            Your space ID. Present on Calling events and most Call Fabric
            events; absent on `call.joined`, `call.left`, `member.joined`, and
            `member.left`.
        params:
          $ref: '#/components/schemas/Fabric.StreamEventParams'
          description: The event-specific payload.
      required:
        - event_type
        - event_channel
        - timestamp
        - params
      description: The event envelope.
      title: ChannelsStreamStartedMessagesStreamStartedEventParams
    stream.started_streamStartedEvent:
      type: object
      properties:
        jsonrpc:
          $ref: >-
            #/components/schemas/ChannelsStreamStartedMessagesStreamStartedEventJsonrpc
          description: JSON-RPC version. Always `2.0`.
        id:
          type: string
          description: >-
            Event id — a unique UUID generated for each event. Events are
            notifications: you do not reply to them.
        method:
          $ref: >-
            #/components/schemas/ChannelsStreamStartedMessagesStreamStartedEventMethod
          description: Always `signalwire.event`.
        params:
          $ref: >-
            #/components/schemas/ChannelsStreamStartedMessagesStreamStartedEventParams
          description: The event envelope.
      required:
        - jsonrpc
        - id
        - method
        - params
      description: Fires when an RTMP stream starts in a Call Fabric room.
      title: stream.started_streamStartedEvent

```