> ## Documentation Index
> Fetch the complete documentation index at: https://docs.glasswarp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get live stream connection

> Get WebRTC signaling credentials for a live 60fps video stream
of the remote desktop. Returns a one-time connect URL — open a
WebSocket to it, send an SDP OFFER, and receive an ANSWER to
start receiving H.264 video over WebRTC.

The stream is the same GPU-captured feed used for game streaming:
native resolution, hardware-encoded, sub-30ms latency on LAN.




## OpenAPI

````yaml /openapi.yaml get /v1/sessions/{sessionId}/stream
openapi: 3.1.0
info:
  title: Glasswarp Platform API
  version: 1.0.0
  description: >
    Real-time visual access and native input control on Windows machines.

    See any screen. Control any PC. One API.


    ## Authentication


    All `/v1/*` endpoints require a bearer token:


    ```

    Authorization: Bearer gw_live_sk_...

    ```


    API keys are created in the [Console](/console/keys).

    Keys are scoped to your account and can access any rig with API access
    enabled.


    ## Base URL


    `https://signal.glasswarp.com`
  contact:
    name: Glasswarp
    url: https://glasswarp.com
  license:
    name: Proprietary
servers:
  - url: https://signal.glasswarp.com
    description: Production
security:
  - apiKey: []
paths:
  /v1/sessions/{sessionId}/stream:
    get:
      tags:
        - Streaming
      summary: Get live stream connection
      description: |
        Get WebRTC signaling credentials for a live 60fps video stream
        of the remote desktop. Returns a one-time connect URL — open a
        WebSocket to it, send an SDP OFFER, and receive an ANSWER to
        start receiving H.264 video over WebRTC.

        The stream is the same GPU-captured feed used for game streaming:
        native resolution, hardware-encoded, sub-30ms latency on LAN.
      operationId: getStreamConnection
      parameters:
        - name: sessionId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Stream connection details
          content:
            application/json:
              schema:
                type: object
                properties:
                  signaling_url:
                    type: string
                    description: WebSocket signaling server URL
                    example: wss://signal.glasswarp.com
                  viewer_token:
                    type: string
                    description: Short-lived JWT for WebRTC negotiation (1 hour)
                  rig_id:
                    type: string
                  session_id:
                    type: string
                  connect_url:
                    type: string
                    description: Ready-to-use WebSocket URL with auth params
                    example: >-
                      wss://signal.glasswarp.com/?type=client&host_id=rig_abc&token=eyJ...
                  instructions:
                    type: object
                    description: Step-by-step WebRTC connection flow
        '404':
          description: Session not found
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: API key in the format `gw_(live|test)_sk_<hex>`

````