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

# Get accumulated dirty rectangles

> Returns DXGI `GetFrameDirtyRects` accumulated since the last poll, in
capture-buffer coordinates `[x, y, w, h]`. When `available` is false
(GDI capture fallback), dirty metadata is absent — treat as assume
changed, never as "no change". Empty `rects` with `available: true`
means no visual change. Pair with ROI screenshot (`x,y,w,h`) when
dirty is available.




## OpenAPI

````yaml /openapi.yaml get /v1/sessions/{sessionId}/dirty
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


    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](/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}/dirty:
    get:
      tags:
        - Screenshots
      summary: Get accumulated dirty rectangles
      description: |
        Returns DXGI `GetFrameDirtyRects` accumulated since the last poll, in
        capture-buffer coordinates `[x, y, w, h]`. When `available` is false
        (GDI capture fallback), dirty metadata is absent — treat as assume
        changed, never as "no change". Empty `rects` with `available: true`
        means no visual change. Pair with ROI screenshot (`x,y,w,h`) when
        dirty is available.
      operationId: getDirtyRects
      parameters:
        - name: sessionId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Dirty rects since last take
          content:
            application/json:
              schema:
                type: object
                properties:
                  width:
                    type: integer
                  height:
                    type: integer
                  available:
                    type: boolean
                    description: False when dirty metadata is unavailable (GDI fallback)
                  capture_mode:
                    type: string
                    enum:
                      - dxgi
                      - gdi
                      - gdi_fallback
                      - unknown
                  rects:
                    type: array
                    items:
                      type: array
                      items:
                        type: integer
                      minItems: 4
                      maxItems: 4
        '504':
          description: Dirty request timed out
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: API key in the format `gw_(live|test)_sk_<hex>`

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.