glasswarp-com Sessions API

The Sessions API from glasswarp-com — 2 operation(s) for sessions.

Operations 4

POST /v1/sessions Create a session #
GET /v1/sessions List active sessions #
GET /v1/sessions/{sessionId} Get session details #
DELETE /v1/sessions/{sessionId} End a session #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/glasswarp-com:glasswarp-com-sessions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

glasswarp-com-sessions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Glasswarp Platform Sessions 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


    Most `/v1/*` endpoints require a bearer token:


    ```

    Authorization: Bearer gw_live_sk_...

    ```


    Exception: `GET /v1/agent/latest` is public (host auto-update).


    API keys are created in the Console.

    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: []
tags:
- name: Sessions
paths:
  /v1/sessions:
    post:
      operationId: createSession
      summary: Create a session
      description: 'Start a new desktop session on a rig. The rig must be online

        and have API access enabled by the owner.'
      tags:
      - Sessions
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - rig_id
              properties:
                rig_id:
                  type: string
                mode:
                  type: string
                  enum:
                  - desktop
                  - app
                  default: desktop
                idle_timeout_seconds:
                  type: integer
                  minimum: 60
                  maximum: 3600
                  default: 900
                  description: 'Seconds with no screenshot, observe, or input before the

                    session is ended automatically (`ended_reason=idle_timeout`).

                    Longer timeouts keep the concurrency slot and continue

                    wall-clock billing. Default 900 (15 minutes).

                    '
      responses:
        '201':
          description: Session created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Session'
        '400':
          description: Invalid request
        '402':
          description: 'Plan limit (minutes exhausted, concurrent_limit, payment_failed, etc.).

            Concurrent limit is per-account tier (Free 1 / Builder 3 / Growth 10).

            '
        '403':
          description: API access not enabled on this rig
        '409':
          description: 'Rig already has an active session (per-rig mutex — one session per

            machine regardless of plan tier), or rig offline / not enabled.

            '
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                    example: rig_busy
                  active_session_id:
                    type: string
    get:
      operationId: listSessions
      summary: List active sessions
      description: List all active sessions for the authenticated API key.
      tags:
      - Sessions
      responses:
        '200':
          description: Active sessions
          content:
            application/json:
              schema:
                type: object
                properties:
                  sessions:
                    type: array
                    items:
                      $ref: '#/components/schemas/Session'
  /v1/sessions/{sessionId}:
    get:
      operationId: getSession
      summary: Get session details
      description: Get the status, duration, and action count for a session.
      tags:
      - Sessions
      parameters:
      - name: sessionId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Session details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Session'
        '404':
          description: Session not found
    delete:
      operationId: endSession
      summary: End a session
      description: 'End a session. Triggers safety_restore on the host

        (restores desktop state, disarms input).'
      tags:
      - Sessions
      parameters:
      - name: sessionId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Session ended
        '404':
          description: Session not found
components:
  schemas:
    Session:
      type: object
      properties:
        session_id:
          type: string
          example: s_xyz789
        rig_id:
          type: string
        mode:
          type: string
          enum:
          - desktop
          - app
        status:
          type: string
          enum:
          - active
          - ended
          - failed
        started_at:
          type: string
          format: date-time
        action_count:
          type: integer
        idle_timeout_seconds:
          type: integer
          description: Inactivity seconds before automatic idle end (60–3600).
        capture_mode:
          type: string
          enum:
          - dxgi
          - gdi
          - gdi_fallback
          - unknown
          description: Host API capture path (updates mid-session on DXGI loss → GDI fallback)
          example: dxgi
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: API key in the format `gw_(live|test)_sk_<hex>`
    userJwt:
      type: http
      scheme: bearer
      description: Supabase user JWT (for console/dashboard endpoints)