REST API · v1

API documentation

POST

Authentication

X-API-Key: dwgv_xxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Get an API key

Analyze a file

Large files

Several files of one floor

Response

{
  "file": "plan.dwg",
  "analysis": {
    "summary": { "walls": 8, "rooms": 4, "doors": 4, "windows": 8,
                 "total_room_area_m2": 172.1, "units": "inches" },
    "walls":   [{ "id": "W1", "start": [769.1, 212.5], "end": [769.1, 812.5],
                  "length": { "value": 594, "m": 15.09, "display": "49'-6\"" },
                  "thickness": { "m": 0.152, "display": "0'-6\"" }, "exterior": true }],
    "rooms":   [{ "id": "R1", "name": "Living", "area": { "m2": 83.47, "sqft": 898.5 },
                  "doors": ["D1", "D2"], "windows": ["WIN1"] }],
    "doors":   [{ "id": "D2", "width": { "m": 0.762, "display": "2'-6\"" }, "host_wall": "W5",
                  "door_type": "single_swing", "connects": ["R1", "R4"], "opens_into": "R1" }],
    "windows": [ ... ], "dimensions": [ ... ], "texts": [ ... ], "layers": [ ... ]
  },
  "warnings": [],
  "timing": { "conversion_s": 0.11, "total_s": 0.3 }
}

Limits

Errors

{ "error": "Monthly API quota exceeded", "code": "quota_exceeded" }

OpenAPI specification

openapi.json