CADLens API
The CADLens API turns DWG, DXF, and DWF files into structured JSON your code can render, diff, and route.
This is a REST API. Authenticate with a bearer API key, upload a file, poll the job until it finishes (or wait for a webhook), then read a JSON document with vector entities, layers, drawing metadata, and a rendered PNG preview.
All endpoints live under the /v1 path prefix. Stable formats: DWG, DXF, DWF. Beta formats: PDF, DWFx, DGN (V7). File size limit is 10 MB on the free plan, and 25 MB–250 MB depending on your paid plan (1 GB on Enterprise). The file type is verified by magic bytes, not the extension.
How it works#
- Upload. POST a file to
/v1/parse. You get ajobback with statusPENDING. - Wait. Either poll
/v1/jobs/{jobId}or register a webhook. - Read. When status is
COMPLETED, GET/v1/jobs/{jobId}/resultfor the vector JSON and preview.
curl, Node 18+ fetch, Python, and Go; port them to whatever stack you run.