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

# Launch an application on the rig

> Spawn a process on the host by absolute path or PATH name
(e.g. `notepad.exe`). Does not enter Game Mode shell/display
policy — desktop API session stays active. Returns the new PID.
Tracked apps are killed on session end or via `/app/kill`.




## OpenAPI

````yaml /openapi.yaml post /v1/sessions/{sessionId}/app/launch
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}/app/launch:
    post:
      tags:
        - Apps
      summary: Launch an application on the rig
      description: |
        Spawn a process on the host by absolute path or PATH name
        (e.g. `notepad.exe`). Does not enter Game Mode shell/display
        policy — desktop API session stays active. Returns the new PID.
        Tracked apps are killed on session end or via `/app/kill`.
      operationId: launchApp
      parameters:
        - name: sessionId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - path
              properties:
                path:
                  type: string
                  example: notepad.exe
                args:
                  type: array
                  items:
                    type: string
            example:
              path: notepad.exe
              args: []
      responses:
        '200':
          description: Process spawned
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                  pid:
                    type: integer
        '502':
          description: Host refused or spawn failed
        '504':
          description: Host timed out
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: API key in the format `gw_(live|test)_sk_<hex>`

````