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

# Start stream

> Start an RTMP stream of the computer display.

Starts streaming the computer's display via RTMP.

<Info>
  Before using this endpoint, configure an RTMP connection in your [account settings](https://www.orgo.ai/settings).
</Info>

## Path parameters

<ParamField path="id" type="string" required>
  Computer ID.
</ParamField>

## Request

<ParamField body="connection_name" type="string" required>
  Name of the configured RTMP connection.
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  `true` if stream started.
</ResponseField>

<ResponseField name="status" type="string">
  Stream status: `streaming`.
</ResponseField>

<ResponseField name="pid" type="integer">
  Stream process ID.
</ResponseField>

## Example

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST https://www.orgo.ai/api/computers/a3bb189e-8bf9-3888-9912-ace4e6543002/stream/start \
    -H "Authorization: Bearer $ORGO_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"connection_name": "twitch"}'
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
      f"https://www.orgo.ai/api/computers/{computer_id}/stream/start",
      headers={"Authorization": f"Bearer {api_key}", "Content-Type": "application/json"},
      json={"connection_name": "twitch"}
  )

  result = response.json()
  print(f"Stream started: {result['status']}")
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(`https://www.orgo.ai/api/computers/${computerId}/stream/start`, {
    method: 'POST',
    headers: {
      'Authorization': `Bearer ${apiKey}`,
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({ connection_name: 'twitch' })
  });

  const result = await response.json();
  console.log(`Stream started: ${result.status}`);
  ```
</CodeGroup>

### Response

```json theme={null}
{
  "success": true,
  "status": "streaming",
  "pid": 12345
}
```

## Use cases

* Live demonstrations of AI agents
* Recording automation workflows
* Debugging and monitoring agent behavior
* Creating content for tutorials


## OpenAPI

````yaml POST /computers/{id}/stream/start
openapi: 3.1.0
info:
  title: Orgo API
  description: >-
    Launch cloud computers that AI agents can control and interact with. Create
    workspaces, provision computers, and control them programmatically.
  version: 2.0.0
  contact:
    name: Orgo Support
    email: spencer@orgo.ai
    url: https://orgo.ai
servers:
  - url: https://www.orgo.ai/api
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Workspaces
    description: Organize computers into named workspaces
  - name: Computers
    description: Provision and manage virtual computers
  - name: Computer Lifecycle
    description: Start, stop, and restart computers
  - name: Computer Actions
    description: Control mouse, keyboard, and execute commands
  - name: Streaming
    description: Stream computer display via RTMP
  - name: Files
    description: Upload and download files
  - name: Templates
    description: Author, build, and launch reproducible computers from templates
paths:
  /computers/{id}/stream/start:
    post:
      tags:
        - Streaming
      summary: Start stream
      description: >-
        Starts streaming the computer display via RTMP to a configured
        connection.
      operationId: startStream
      parameters:
        - name: id
          in: path
          required: true
          description: Computer ID
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StreamStartRequest'
            example:
              connection_name: twitch
      responses:
        '200':
          description: Stream started
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StreamStartResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    StreamStartRequest:
      type: object
      required:
        - connection_name
      properties:
        connection_name:
          type: string
          description: Name of the configured RTMP connection
    StreamStartResponse:
      type: object
      properties:
        success:
          type: boolean
        status:
          type: string
        pid:
          type: integer
          description: Stream process ID
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
  responses:
    Unauthorized:
      description: Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Invalid API key
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Resource not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key authentication. Get your key at orgo.ai/workspaces

````