{
"request_id": "req_87c5fb8e3ac54d5998e0",
"api_version": "1.0",
"status": "completed",
"summary": {
"errors": 0,
"warnings": 0,
"info": 0
},
"issues": [],
"issues_truncated": false,
"data": {
"dxf_version": "AC1024",
"release": "R2010",
"units": {
"declared": 4,
"declared_name": "4",
"effective": "mm",
"source": "customer",
"to_mm": 1
},
"entities": {
"total_after_block_expansion": 9,
"by_type": {
"LINE": 5,
"LWPOLYLINE": 2,
"TEXT": 1,
"CIRCLE": 1
},
"analysable_curves": {
"LINE": 5,
"POLYLINE": 2,
"CIRCLE": 1
},
"ignored": {
"TEXT": 1
},
"unsupported": []
},
"layers": [
{
"name": "0",
"on": true,
"frozen": false,
"locked": false,
"color": 7,
"linetype": "Continuous",
"entities": 0
},
{
"name": "Defpoints",
"on": true,
"frozen": false,
"locked": false,
"color": 7,
"linetype": "Continuous",
"entities": 0
},
{
"name": "CUT",
"on": true,
"frozen": false,
"locked": false,
"color": null,
"linetype": null,
"declared_in_layer_table": false,
"entities": 8
},
{
"name": "TEXT",
"on": true,
"frozen": false,
"locked": false,
"color": null,
"linetype": null,
"declared_in_layer_table": false,
"entities": 1
}
],
"blocks_used": 0,
"paperspace_entities": 0,
"bounding_box": {
"min": [
0,
0
],
"max": [
120,
60
],
"width": 120,
"height": 60
},
"metadata": {
"acadver": "AC1024",
"tdcreate": 2461375.100648148,
"tdupdate": 2461375.100648148,
"measurement": 1,
"lunits": 2,
"extmin": [
1.0e+20,
1.0e+20,
1.0e+20
],
"extmax": [
-1.0e+20,
-1.0e+20,
-1.0e+20
],
"tolerances": {
"endpoint_match": 1.3416407864998736e-5,
"curve_chord_error": 0.00013416407864998736,
"note": "Drawing units. Override with options.tolerance / options.flatten_tolerance."
}
}
},
"processing": {
"duration_ms": 83,
"units_consumed": 1,
"unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
"rows_processed": 9
}
}
curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43220/inspect+a+dxf' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json'
--data-raw '{"dxf_text":"0\nSECTION\n2\nHEADER\n9\n$INSUNITS\n70\n4\n0\nENDSEC\n0\nSECTION\n2\nENTITIES\n0\nLINE\n8\nCUT\n10\n0\n20\n0\n11\n200\n21\n0\n0\nLINE\n8\nCUT\n10\n200\n20\n0\n11\n200\n21\n100\n0\nLINE\n8\nCUT\n10\n200\n20\n100\n11\n0\n21\n100\n0\nLINE\n8\nCUT\n10\n0\n20\n100\n11\n0\n21\n0\n0\nCIRCLE\n8\nCUT\n10\n100\n20\n50\n40\n20\n0\nLINE\n8\nETCH\n10\n10\n20\n10\n11\n60\n21\n10\n0\nENDSEC\n0\nEOF\n","options":[]}'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the CADGuard DXF API simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
Read a 2D DXF the way a laser or CNC cutter will: exact cut length, pierces, parts and holes, open contours, duplicates and gaps, plus revision compare and safe repair with a change list.
It reports the DXF version and units, layer states, entity counts after block expansion, supported curves, ignored annotations, unsupported entities, blocks used, paper-space entity count, and header metadata. Use these fields to check what geometry the API can analyze before interpreting later results.
It returns the bounding-box minimum and maximum coordinates, width, and height in drawing units. When units are known, it also provides dimensions in millimetres. The optional `expected_max_size` checks the drawing against a limit in either orientation.
Cut analysis reports cut length, duplicate and overlap adjustments, pierces, parts, holes, net area, and length breakdowns by layer and entity type. Contour results provide each path’s closed/open state, role, segment count, length, area, and start point; gaps are included when requested.
Preflight checks geometry for open contours, duplicates, collinear overlaps, zero-length entities, self-intersections, crossing contours, branching junctions, size limits, and missing geometry. It does not know the material, kerf, or tooling, so its verdict is not a complete manufacturing assessment.
Each layer entry includes its entity counts, curve length, bounding box, assigned role, visibility-related state, and whether it is included in the cut. The report can also flag role names that do not match layers in the drawing.
The endpoint returns SVG markup generated from geometry only, with no text, scripts, or external references. Open path ends can be marked in red. Set `width_px` from 64 to 4000 to control output width, or use `show_problems` to request problem markers.
The estimate returns per-part area, mass, and bounding box, plus total mass and optional material cost. Sheet fit uses bounding boxes arranged on a grid with the requested spacing; it is not true nesting. Kerf, scrap, machine time, and labour are excluded.
It reports added and removed contours, changes in cut length, pierces, parts, holes, area, and overall size, plus layers added or removed. Matching is based on geometry, so redrawn, reordered, or reversed entities are not reported as changes.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund