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

# Subscribe to remote-execute stream

> Server-Sent Events endpoint that streams commands published to the remote-execute channel for a specific sessionId in real-time. Each event is a JSON-encoded RemoteCommandPayload.



## OpenAPI

````yaml /api-reference/openapi.json get /api/remote-execute/stream
openapi: 3.0.0
info:
  title: Open Attack Surface Management
  description: Open-source platform for cybersecurity Attack Surface Management (ASM)
  version: '1.0'
  contact: {}
servers:
  - url: https://{baseUrl}/api/v1
    variables:
      baseUrl:
        default: localhost:3000
        description: API server hostname with port (e.g. localhost:3000, api.example.com)
security: []
tags: []
externalDocs:
  description: Authentication Docs
  url: auth/docs
paths:
  /api/remote-execute/stream:
    get:
      tags:
        - Remote Execute
      summary: Subscribe to remote-execute stream
      description: >-
        Server-Sent Events endpoint that streams commands published to the
        remote-execute channel for a specific sessionId in real-time. Each event
        is a JSON-encoded RemoteCommandPayload.
      operationId: RemoteExecuteController_stream
      parameters:
        - name: sessionId
          required: true
          in: query
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/AppResponseSerialization'
components:
  schemas:
    AppResponseSerialization:
      type: object
      properties: {}

````