> ## 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.

# Get stream status

> Check whether an RTMP stream is currently active.

Returns the current streaming status.

## Path parameters

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

## Response

<ResponseField name="status" type="string">
  Stream status: `idle`, `streaming`, or `terminated`.
</ResponseField>

<ResponseField name="start_time" type="string">
  ISO 8601 timestamp when stream started (only if streaming).
</ResponseField>

<ResponseField name="pid" type="integer">
  Stream process ID (only if streaming).
</ResponseField>

## Example

<CodeGroup>
  ```bash cURL theme={null}
  curl https://www.orgo.ai/api/computers/a3bb189e-8bf9-3888-9912-ace4e6543002/stream/status \
    -H "Authorization: Bearer $ORGO_API_KEY"
  ```

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

  response = requests.get(
      f"https://www.orgo.ai/api/computers/{computer_id}/stream/status",
      headers={"Authorization": f"Bearer {api_key}"}
  )

  status = response.json()
  if status["status"] == "streaming":
      print(f"Stream active since: {status['start_time']}")
  else:
      print("No active stream")
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(`https://www.orgo.ai/api/computers/${computerId}/stream/status`, {
    headers: { 'Authorization': `Bearer ${apiKey}` }
  });

  const status = await response.json();
  if (status.status === 'streaming') {
    console.log(`Stream active since: ${status.start_time}`);
  } else {
    console.log('No active stream');
  }
  ```
</CodeGroup>

### When streaming

```json theme={null}
{
  "status": "streaming",
  "start_time": "2024-01-20T10:30:00Z",
  "pid": 12345
}
```

### When idle

```json theme={null}
{
  "status": "idle"
}
```


## OpenAPI

````yaml GET /computers/{id}/stream/status
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/status:
    get:
      tags:
        - Streaming
      summary: Get stream status
      description: Returns the current streaming status.
      operationId: getStreamStatus
      parameters:
        - name: id
          in: path
          required: true
          description: Computer ID
          schema:
            type: string
      responses:
        '200':
          description: Stream status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StreamStatusResponse'
              example:
                status: streaming
                start_time: '2024-01-15T10:30:00Z'
                pid: 12345
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    StreamStatusResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - idle
            - streaming
            - terminated
        start_time:
          type: string
          format: date-time
        pid:
          type: integer
    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

````