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

# Send input events

> Send mouse and keyboard events to the remote desktop.
Events are executed in order on the host.




## OpenAPI

````yaml /openapi.yaml post /v1/sessions/{sessionId}/input
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}/input:
    post:
      tags:
        - Input
      summary: Send input events
      description: |
        Send mouse and keyboard events to the remote desktop.
        Events are executed in order on the host.
      operationId: sendInput
      parameters:
        - name: sessionId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - events
              properties:
                events:
                  type: array
                  items:
                    $ref: '#/components/schemas/InputEvent'
            example:
              events:
                - type: mouse_click
                  x: 400
                  'y': 300
                  button: left
                - type: type_text
                  text: Hello from the API
                - type: key_press
                  key: Enter
      responses:
        '200':
          description: Input accepted
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
components:
  schemas:
    InputEvent:
      type: object
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - mouse_move
            - mouse_click
            - mouse_scroll
            - key_press
            - key_down
            - key_up
            - type_text
        x:
          type: integer
          description: Absolute X coordinate (for mouse events)
        'y':
          type: integer
          description: Absolute Y coordinate (for mouse events)
        button:
          type: string
          enum:
            - left
            - right
            - middle
          description: Mouse button (for mouse_click)
        dx:
          type: integer
          description: Horizontal scroll delta (for mouse_scroll)
        dy:
          type: integer
          description: Vertical scroll delta (for mouse_scroll, negative = down)
        key:
          type: string
          description: Key name (for key_press, key_down, key_up)
        text:
          type: string
          description: Text to type (for type_text)
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: API key in the format `gw_(live|test)_sk_<hex>`

````