CADGuard DXF API

API ID 15787

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.

407 ms avg response

API Documentation

Endpoints

Request
DXF version, declared units, layers (on/frozen/locked/colour), entity counts by type after block expansion, analysable curves, ignored annotation (text, dimensions, hatches), unsupported 3D or infinite entities, blocks used, paper-space entity count and header metadata. Options (`options` object): - `units` (mm, cm, m, in, ft): Declare units when the DXF does not ($INSUNITS unitless). Never assumed. - `layers` (object): Layer roles, e.g. {"cut": ["CUT"], "engrave": ["ETCH"], "construction": ["DIM"]}. With no roles every supported curve on visible layers counts as cut geometry. - `include_hidden_layers` (boolean, default false): Off and frozen layers are ignored unless true. - `tolerance` (number): Endpoint match tolerance in drawing units (default: drawing diagonal x 1e-7). - `gap_tolerance` (number): Report open ends closer than this as gaps.
Endpoint ID: 43220
POST https://zylalabs.com/api/15787/cadguard+dxf+api/43220/inspect+a+dxf
INPUT PARAMETERS

Inspect a DXF — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "request_id": "req_0d6b255df3254fdc9b8f",
    "api_version": "1.0",
    "status": "completed",
    "summary": {
        "errors": 0,
        "warnings": 0,
        "info": 0
    },
    "issues": [],
    "issues_truncated": false,
    "data": {
        "dxf_version": "AC1009",
        "release": "R12",
        "units": {
            "declared": 4,
            "declared_name": "mm",
            "effective": "mm",
            "source": "header",
            "to_mm": 1
        },
        "entities": {
            "total_after_block_expansion": 6,
            "by_type": {
                "LINE": 5,
                "CIRCLE": 1
            },
            "analysable_curves": {
                "LINE": 5,
                "CIRCLE": 1
            },
            "ignored": [],
            "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": 5
            },
            {
                "name": "ETCH",
                "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": [
                200,
                100
            ],
            "width": 200,
            "height": 100
        },
        "metadata": {
            "acadver": "AC1009",
            "tdcreate": 2461375.713587963,
            "tolerances": {
                "endpoint_match": 2.2360679774997894e-5,
                "curve_chord_error": 0.00022360679774997895,
                "note": "Drawing units. Override with options.tolerance / options.flatten_tolerance."
            }
        }
    },
    "processing": {
        "duration_ms": 18,
        "units_consumed": 1,
        "unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
        "rows_processed": 6
    }
}
Inspect a DXF — CODE SNIPPETS

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":{}}'

    
Request
Bounding box, width and height in drawing units and, when units are known, millimetres. Optional expected_max_size raises EXCEEDS_EXPECTED_SIZE (either orientation). Options (`options` object): - `expected_max_size` ([width, height]): Your machine or sheet limit in drawing units. - `units` (mm, cm, m, in, ft): Declare units when the DXF does not ($INSUNITS unitless). Never assumed. - `layers` (object): Layer roles, e.g. {"cut": ["CUT"], "engrave": ["ETCH"], "construction": ["DIM"]}. With no roles every supported curve on visible layers counts as cut geometry. - `include_hidden_layers` (boolean, default false): Off and frozen layers are ignored unless true. - `tolerance` (number): Endpoint match tolerance in drawing units (default: drawing diagonal x 1e-7). - `gap_tolerance` (number): Report open ends closer than this as gaps.
Endpoint ID: 43221
POST https://zylalabs.com/api/15787/cadguard+dxf+api/43221/size+and+bounding+box
INPUT PARAMETERS

Size and bounding box — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "request_id": "req_ce4405b1c3a84383932e",
    "api_version": "1.0",
    "status": "completed",
    "summary": {
        "errors": 0,
        "warnings": 0,
        "info": 0
    },
    "issues": [],
    "issues_truncated": false,
    "data": {
        "units": "mm",
        "units_source": "customer",
        "bounding_box": {
            "min": [
                0,
                0
            ],
            "max": [
                120,
                60
            ],
            "width": 120,
            "height": 60
        },
        "accuracy": "curve extremes within 0.000134 units",
        "bounding_box_mm": {
            "width": 120,
            "height": 60
        }
    },
    "processing": {
        "duration_ms": 10,
        "units_consumed": 1,
        "unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
        "rows_processed": 9
    }
}
Size and bounding box — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43221/size+and+bounding+box' --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":[]}'

    
Request
Total cut length with duplicates and collinear overlaps counted once (breakdown included), per-layer and per-entity-type lengths, pierce count (one per contour), parts, holes and net area. Exact for lines, arcs, circles and bulge polylines; ellipses and splines are numeric with an error bound. Options (`options` object): - `units` (mm, cm, m, in, ft): Declare units when the DXF does not ($INSUNITS unitless). Never assumed. - `layers` (object): Layer roles, e.g. {"cut": ["CUT"], "engrave": ["ETCH"], "construction": ["DIM"]}. With no roles every supported curve on visible layers counts as cut geometry. - `include_hidden_layers` (boolean, default false): Off and frozen layers are ignored unless true. - `tolerance` (number): Endpoint match tolerance in drawing units (default: drawing diagonal x 1e-7). - `gap_tolerance` (number): Report open ends closer than this as gaps.
Endpoint ID: 43222
POST https://zylalabs.com/api/15787/cadguard+dxf+api/43222/cut+length+pierces+parts+and+holes
INPUT PARAMETERS

Cut length pierces parts and holes — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "request_id": "req_5ff868e5c20f4882a442",
    "api_version": "1.0",
    "status": "completed",
    "summary": {
        "errors": 1,
        "warnings": 0,
        "info": 0
    },
    "issues": [
        {
            "code": "DUPLICATE_ENTITY",
            "severity": "error",
            "message": "LINE is drawn twice; a laser would cut it twice.",
            "location": {
                "row": null,
                "column": null,
                "sheet": null,
                "handle": "32",
                "layer": "CUT",
                "point": [
                    5,
                    55
                ]
            },
            "value": null,
            "suggestion": null,
            "basis": "structural",
            "fixable": true
        }
    ],
    "issues_truncated": false,
    "data": {
        "units": "mm",
        "units_source": "customer",
        "cut_length": 600.463706144,
        "cut_length_breakdown": {
            "all_entities": 635.463706144,
            "duplicates_removed": 35,
            "collinear_overlap_removed": 0
        },
        "exact": true,
        "numeric_error_bound": 0,
        "contours": {
            "closed": 3,
            "open": 2,
            "parts": 1,
            "holes": 2
        },
        "pierces": 5,
        "net_area": 6071.68146928,
        "area_note": "Exact for lines and circular arcs; ellipses and splines use sampled vertices. Holes subtracted.",
        "cut_length_mm": 600.463706144,
        "net_area_mm2": 6071.68146928,
        "per_layer": {
            "CUT": 635.463706144
        },
        "by_entity_type": {
            "CIRCLE": 62.8318530718,
            "LINE": 99.8,
            "POLYLINE": 472.831853072
        }
    },
    "processing": {
        "duration_ms": 11,
        "units_consumed": 1,
        "unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
        "rows_processed": 9
    }
}
Cut length pierces parts and holes — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43222/cut+length+pierces+parts+and+holes' --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":{"layers":{"cut":["CUT"],"engrave":["ETCH"]}}}'

    
Request
Every contour with closed/open state, role (part, hole, open), segment count, length, area and start point; gap list when gap_tolerance is set. Options (`options` object): - `units` (mm, cm, m, in, ft): Declare units when the DXF does not ($INSUNITS unitless). Never assumed. - `layers` (object): Layer roles, e.g. {"cut": ["CUT"], "engrave": ["ETCH"], "construction": ["DIM"]}. With no roles every supported curve on visible layers counts as cut geometry. - `include_hidden_layers` (boolean, default false): Off and frozen layers are ignored unless true. - `tolerance` (number): Endpoint match tolerance in drawing units (default: drawing diagonal x 1e-7). - `gap_tolerance` (number): Report open ends closer than this as gaps.
Endpoint ID: 43223
POST https://zylalabs.com/api/15787/cadguard+dxf+api/43223/contours+open+paths+and+gaps
INPUT PARAMETERS

Contours open paths and gaps — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "request_id": "req_c6dcc8ca19844e0ab775",
    "api_version": "1.0",
    "status": "completed",
    "summary": {
        "errors": 3,
        "warnings": 0,
        "info": 0
    },
    "issues": [
        {
            "code": "DUPLICATE_ENTITY",
            "severity": "error",
            "message": "LINE is drawn twice; a laser would cut it twice.",
            "location": {
                "row": null,
                "column": null,
                "sheet": null,
                "handle": "32",
                "layer": "CUT",
                "point": [
                    5,
                    55
                ]
            },
            "value": null,
            "suggestion": null,
            "basis": "structural",
            "fixable": true
        },
        {
            "code": "OPEN_CONTOUR",
            "severity": "error",
            "message": "Open path of 3 segment(s), length 29.8; its ends do not meet (end-to-end gap 10.002).",
            "location": {
                "row": null,
                "column": null,
                "sheet": null,
                "handle": null,
                "layer": "CUT",
                "point": [
                    50,
                    5
                ]
            },
            "value": null,
            "suggestion": null,
            "basis": "structural",
            "fixable": false
        },
        {
            "code": "OPEN_CONTOUR",
            "severity": "error",
            "message": "Open path of 1 segment(s), length 35; its ends do not meet (end-to-end gap 35).",
            "location": {
                "row": null,
                "column": null,
                "sheet": null,
                "handle": null,
                "layer": "CUT",
                "point": [
                    5,
                    55
                ]
            },
            "value": null,
            "suggestion": null,
            "basis": "structural",
            "fixable": false
        }
    ],
    "issues_truncated": false,
    "data": {
        "units": "mm",
        "units_source": "customer",
        "cut_length": 600.463706144,
        "cut_length_breakdown": {
            "all_entities": 635.463706144,
            "duplicates_removed": 35,
            "collinear_overlap_removed": 0
        },
        "exact": true,
        "numeric_error_bound": 0,
        "contours": {
            "closed": 3,
            "open": 2,
            "parts": 1,
            "holes": 2
        },
        "pierces": 5,
        "net_area": 6071.68146928,
        "area_note": "Exact for lines and circular arcs; ellipses and splines use sampled vertices. Holes subtracted.",
        "cut_length_mm": 600.463706144,
        "net_area_mm2": 6071.68146928,
        "contour_list": [
            {
                "closed": true,
                "role": "hole",
                "segments": 1,
                "length": 112.831853072,
                "area": 814.159265359,
                "layer": "CUT",
                "start": [
                    70,
                    20
                ]
            },
            {
                "closed": true,
                "role": "hole",
                "segments": 1,
                "length": 62.8318530718,
                "area": 314.159265359,
                "layer": "CUT",
                "start": [
                    40,
                    30
                ]
            },
            {
                "closed": true,
                "role": "part",
                "segments": 1,
                "length": 360,
                "area": 7200,
                "layer": "CUT",
                "start": [
                    0,
                    0
                ]
            },
            {
                "closed": false,
                "role": "open",
                "segments": 3,
                "length": 29.8,
                "area": 0,
                "layer": "CUT",
                "start": [
                    50,
                    5
                ]
            }
        ],
        "contour_list_truncated": false
    },
    "processing": {
        "duration_ms": 14,
        "units_consumed": 1,
        "unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
        "rows_processed": 9
    }
}
Contours open paths and gaps — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43223/contours+open+paths+and+gaps' --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\n0\n10\n0\n20\n0\n11\n100\n21\n0\n0\nLINE\n8\n0\n10\n100\n20\n0\n11\n100\n21\n50\n0\nLINE\n8\n0\n10\n100\n20\n50\n11\n0\n21\n50\n0\nLINE\n8\n0\n10\n0\n20\n50\n11\n0\n21\n0.1\n0\nENDSEC\n0\nEOF\n","options":{"gap_tolerance":0.5}}'

    
Request
Open contours, duplicate entities, collinear overlaps, zero-length entities, self-intersections, crossing contours, branching junctions, size limit and missing geometry, with a verdict. Geometry only: material, kerf and tooling are not known to the API. Options (`options` object): - `units` (mm, cm, m, in, ft): Declare units when the DXF does not ($INSUNITS unitless). Never assumed. - `layers` (object): Layer roles, e.g. {"cut": ["CUT"], "engrave": ["ETCH"], "construction": ["DIM"]}. With no roles every supported curve on visible layers counts as cut geometry. - `include_hidden_layers` (boolean, default false): Off and frozen layers are ignored unless true. - `tolerance` (number): Endpoint match tolerance in drawing units (default: drawing diagonal x 1e-7). - `gap_tolerance` (number): Report open ends closer than this as gaps.
Endpoint ID: 43224
POST https://zylalabs.com/api/15787/cadguard+dxf+api/43224/preflight+check
INPUT PARAMETERS

Preflight check — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "request_id": "req_2b28555a094b44219aa6",
    "api_version": "1.0",
    "status": "completed",
    "summary": {
        "errors": 3,
        "warnings": 0,
        "info": 0
    },
    "issues": [
        {
            "code": "DUPLICATE_ENTITY",
            "severity": "error",
            "message": "LINE is drawn twice; a laser would cut it twice.",
            "location": {
                "row": null,
                "column": null,
                "sheet": null,
                "handle": "32",
                "layer": "CUT",
                "point": [
                    5,
                    55
                ]
            },
            "value": null,
            "suggestion": null,
            "basis": "structural",
            "fixable": true
        },
        {
            "code": "OPEN_CONTOUR",
            "severity": "error",
            "message": "Open path of 3 segment(s), length 29.8; its ends do not meet (end-to-end gap 10.002).",
            "location": {
                "row": null,
                "column": null,
                "sheet": null,
                "handle": null,
                "layer": "CUT",
                "point": [
                    50,
                    5
                ]
            },
            "value": null,
            "suggestion": null,
            "basis": "structural",
            "fixable": false
        },
        {
            "code": "OPEN_CONTOUR",
            "severity": "error",
            "message": "Open path of 1 segment(s), length 35; its ends do not meet (end-to-end gap 35).",
            "location": {
                "row": null,
                "column": null,
                "sheet": null,
                "handle": null,
                "layer": "CUT",
                "point": [
                    5,
                    55
                ]
            },
            "value": null,
            "suggestion": null,
            "basis": "structural",
            "fixable": false
        }
    ],
    "issues_truncated": false,
    "data": {
        "units": "mm",
        "units_source": "customer",
        "cut_length": 600.463706144,
        "cut_length_breakdown": {
            "all_entities": 635.463706144,
            "duplicates_removed": 35,
            "collinear_overlap_removed": 0
        },
        "exact": true,
        "numeric_error_bound": 0,
        "contours": {
            "closed": 3,
            "open": 2,
            "parts": 1,
            "holes": 2
        },
        "pierces": 5,
        "net_area": 6071.68146928,
        "area_note": "Exact for lines and circular arcs; ellipses and splines use sampled vertices. Holes subtracted.",
        "cut_length_mm": 600.463706144,
        "net_area_mm2": 6071.68146928,
        "verdict": "defects_found",
        "verdict_note": "Checks cover the drawing geometry only. Whether a part can be made also depends on material, machine, kerf, minimum feature size and tooling, which this API does not know."
    },
    "processing": {
        "duration_ms": 13,
        "units_consumed": 1,
        "unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
        "rows_processed": 9
    }
}
Preflight check — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43224/preflight+check' --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\n0\n10\n0\n20\n0\n11\n100\n21\n0\n0\nLINE\n8\n0\n10\n100\n20\n0\n11\n100\n21\n50\n0\nLINE\n8\n0\n10\n100\n20\n50\n11\n0\n21\n50\n0\nLINE\n8\n0\n10\n0\n20\n50\n11\n0\n21\n0.1\n0\nENDSEC\n0\nEOF\n","options":{"gap_tolerance":0.5}}'

    
Request
Per-layer entity counts, curve length, bounding box, assigned role and whether the layer is included in the cut. Flags role names that do not exist in the drawing. Options (`options` object): - `units` (mm, cm, m, in, ft): Declare units when the DXF does not ($INSUNITS unitless). Never assumed. - `layers` (object): Layer roles, e.g. {"cut": ["CUT"], "engrave": ["ETCH"], "construction": ["DIM"]}. With no roles every supported curve on visible layers counts as cut geometry. - `include_hidden_layers` (boolean, default false): Off and frozen layers are ignored unless true. - `tolerance` (number): Endpoint match tolerance in drawing units (default: drawing diagonal x 1e-7). - `gap_tolerance` (number): Report open ends closer than this as gaps.
Endpoint ID: 43225
POST https://zylalabs.com/api/15787/cadguard+dxf+api/43225/layer+report
INPUT PARAMETERS

Layer report — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "request_id": "req_749bbcfe923a49fd9b67",
    "api_version": "1.0",
    "status": "completed",
    "summary": {
        "errors": 0,
        "warnings": 0,
        "info": 1
    },
    "issues": [
        {
            "code": "LAYER_ROLES_NOT_SET",
            "severity": "info",
            "message": "No layer roles given, so every supported curve on visible layers counts as cut geometry. Send options.layers = {\"cut\": [...], \"engrave\": [...], \"construction\": [...]}.",
            "location": {
                "row": null,
                "column": null,
                "sheet": null,
                "handle": null
            },
            "value": null,
            "suggestion": null,
            "basis": "customer_rule",
            "fixable": false
        }
    ],
    "issues_truncated": false,
    "data": {
        "layers": [
            {
                "name": "0",
                "on": true,
                "frozen": false,
                "locked": false,
                "color": 7,
                "linetype": "Continuous",
                "role": "unassigned",
                "entities": [],
                "curve_length": 0,
                "bounding_box": null,
                "included_in_cut": false
            },
            {
                "name": "Defpoints",
                "on": true,
                "frozen": false,
                "locked": false,
                "color": 7,
                "linetype": "Continuous",
                "role": "unassigned",
                "entities": [],
                "curve_length": 0,
                "bounding_box": null,
                "included_in_cut": false
            },
            {
                "name": "CUT",
                "on": true,
                "frozen": false,
                "locked": false,
                "color": null,
                "linetype": null,
                "declared_in_layer_table": false,
                "role": "unassigned",
                "entities": {
                    "LINE": 5,
                    "LWPOLYLINE": 2,
                    "CIRCLE": 1
                },
                "curve_length": 635.463706144,
                "bounding_box": {
                    "min": [
                        0,
                        0
                    ],
                    "max": [
                        120,
                        60
                    ],
                    "width": 120,
                    "height": 60
                },
                "included_in_cut": true
            },
            {
                "name": "TEXT",
                "on": true,
                "frozen": false,
                "locked": false,
                "color": null,
                "linetype": null,
                "declared_in_layer_table": false,
                "role": "unassigned",
                "entities": {
                    "TEXT": 1
                },
                "curve_length": 0,
                "bounding_box": null,
                "included_in_cut": false
            }
        ],
        "roles_applied": []
    },
    "processing": {
        "duration_ms": 10,
        "units_consumed": 1,
        "unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
        "rows_processed": 9
    }
}
Layer report — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43225/layer+report' --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":{"layers":{"cut":["CUT"],"engrave":["ETCH"]}}}'

    
Request
A plain SVG drawn from the geometry (no text, scripts or external references), with open path ends marked in red. Options (`options` object): - `width_px` (64-4000): Output width. - `show_problems` (boolean): Mark open ends. - `units` (mm, cm, m, in, ft): Declare units when the DXF does not ($INSUNITS unitless). Never assumed. - `layers` (object): Layer roles, e.g. {"cut": ["CUT"], "engrave": ["ETCH"], "construction": ["DIM"]}. With no roles every supported curve on visible layers counts as cut geometry. - `include_hidden_layers` (boolean, default false): Off and frozen layers are ignored unless true. - `tolerance` (number): Endpoint match tolerance in drawing units (default: drawing diagonal x 1e-7). - `gap_tolerance` (number): Report open ends closer than this as gaps.
Endpoint ID: 43226
POST https://zylalabs.com/api/15787/cadguard+dxf+api/43226/svg+preview
INPUT PARAMETERS

SVG preview — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "request_id": "req_12d5449549ac4e539827",
    "api_version": "1.0",
    "status": "completed",
    "summary": {
        "errors": 0,
        "warnings": 0,
        "info": 0
    },
    "issues": [],
    "issues_truncated": false,
    "data": {
        "format": "svg",
        "content_type": "image/svg+xml",
        "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"800\" height=\"423\" viewBox=\"-3.6 -63.6 127.2 67.2\"><rect x=\"-3.6\" y=\"-63.6\" width=\"127.2\" height=\"67.2\" fill=\"#FFFFFF\"/><g fill=\"none\" stroke-width=\"0.212\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M60 -15 L50.2 -15\" stroke=\"#14213D\"/><path...",
        "note": "Generated by CADGuard from the geometry only: no text, scripts or external references."
    },
    "processing": {
        "duration_ms": 13,
        "units_consumed": 1,
        "unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
        "rows_processed": 9
    }
}
SVG preview — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43226/svg+preview' --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":{"width_px":400}}'

    
Request
Per-part net area and mass, total mass, sheet fit on a bounding-box grid, and material cost by mass or by sheet. Uses only the parameters you send; no kerf, nesting, machine time or labour. Options (`options` object): - `thickness` (mm (required)): Sheet thickness. - `density` (number (required)): Density. - `density_unit` (g/cm3 or kg/m3): Default g/cm3. - `price_per_kg` (number): Optional. - `sheet` ([w, h] mm): Optional sheet size. - `sheet_price` (number): Optional. - `part_spacing_mm` (number, default 5): Gap between parts on the grid. - `quantity` (integer): Number of parts. - `units` (mm, cm, m, in, ft): Declare units when the DXF does not ($INSUNITS unitless). Never assumed. - `layers` (object): Layer roles, e.g. {"cut": ["CUT"], "engrave": ["ETCH"], "construction": ["DIM"]}. With no roles every supported curve on visible layers counts as cut geometry. - `include_hidden_layers` (boolean, default false): Off and frozen layers are ignored unless true. - `tolerance` (number): Endpoint match tolerance in drawing units (default: drawing diagonal x 1e-7). - `gap_tolerance` (number): Report open ends closer than this as gaps.
Endpoint ID: 43227
POST https://zylalabs.com/api/15787/cadguard+dxf+api/43227/material+estimate+from+your+parameters
INPUT PARAMETERS

Material estimate from your parameters — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "request_id": "req_a63afe732009416085a7",
    "api_version": "1.0",
    "status": "completed",
    "summary": {
        "errors": 0,
        "warnings": 1,
        "info": 0
    },
    "issues": [
        {
            "code": "AREA_EXCLUDES_OPEN_PATHS",
            "severity": "warning",
            "message": "Open contours enclose no area and are excluded from mass and area.",
            "location": {
                "row": null,
                "column": null,
                "sheet": null,
                "handle": null
            },
            "value": null,
            "suggestion": null,
            "basis": "structural",
            "fixable": false
        }
    ],
    "issues_truncated": false,
    "data": {
        "per_part": {
            "net_area_mm2": 6071.68146928,
            "mass_kg": 0.0953253990677,
            "bounding_box_mm": [
                120,
                60
            ]
        },
        "quantity": 100,
        "total_mass_kg": 9.53253990677,
        "cut_length_mm": 600.463706144,
        "pierces": 5,
        "assumptions": [
            "Mass from closed-contour net area x thickness x density.",
            "Sheet fit uses bounding boxes on a grid, not true nesting.",
            "No kerf, scrap, setup, machine time or labour included."
        ],
        "material_cost_by_mass": 10.4858,
        "sheet": {
            "size_mm": [
                3000,
                1500
            ],
            "parts_per_sheet_grid": 552,
            "sheets_needed": 1,
            "utilisation_by_area": 0.744792926898
        }
    },
    "processing": {
        "duration_ms": 12,
        "units_consumed": 1,
        "unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
        "rows_processed": 9
    }
}
Material estimate from your parameters — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43227/material+estimate+from+your+parameters' --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\n0\n10\n0\n20\n0\n11\n100\n21\n0\n0\nLINE\n8\n0\n10\n100\n20\n0\n11\n100\n21\n50\n0\nLINE\n8\n0\n10\n100\n20\n50\n11\n0\n21\n50\n0\nLINE\n8\n0\n10\n0\n20\n50\n11\n0\n21\n0\n0\nENDSEC\n0\nEOF\n","options":{"thickness":2,"density":7.85,"price_per_kg":1.2,"sheet":[1000,500],"quantity":10}}'

    
Request
Dry run by default. Removes exact duplicates and zero-length entities (on by default), and only when asked: joins open LINE/LWPOLYLINE ends within join_gaps, removes listed layers, converts units by scaling. Every change is listed; with dry_run false you get the repaired DXF (base64) and a before/after summary with unresolved problems. Block contents are never edited. Options (`options` object): - `dry_run` (boolean, default true): Preview only. - `join_gaps` (number): Max distance to snap open ends, drawing units. - `remove_layers` (list): Layers to delete (e.g. construction). - `convert_units_to` (mm, cm, m, in): Scale geometry and set $INSUNITS; needs known source units. - `units` (mm, cm, m, in, ft): Declare units when the DXF does not ($INSUNITS unitless). Never assumed. - `layers` (object): Layer roles, e.g. {"cut": ["CUT"], "engrave": ["ETCH"], "construction": ["DIM"]}. With no roles every supported curve on visible layers counts as cut geometry. - `include_hidden_layers` (boolean, default false): Off and frozen layers are ignored unless true. - `tolerance` (number): Endpoint match tolerance in drawing units (default: drawing diagonal x 1e-7). - `gap_tolerance` (number): Report open ends closer than this as gaps.
Endpoint ID: 43228
POST https://zylalabs.com/api/15787/cadguard+dxf+api/43228/safe+repair+with+a+change+list
INPUT PARAMETERS

Safe repair with a change list — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "request_id": "req_00acb5a038ff45df989f",
    "api_version": "1.0",
    "status": "completed",
    "summary": {
        "errors": 0,
        "warnings": 0,
        "info": 0
    },
    "issues": [],
    "issues_truncated": false,
    "data": {
        "dry_run": true,
        "changes": [
            {
                "action": "remove_duplicate",
                "handle": "32",
                "entity": "LINE",
                "layer": "CUT",
                "detail": "Exact duplicate of entity 33."
            }
        ],
        "changes_count": 1,
        "manifest_truncated": false,
        "before": {
            "units": "mm",
            "units_source": "header",
            "cut_length": 600.463706144,
            "cut_length_breakdown": {
                "all_entities": 635.463706144,
                "duplicates_removed": 35,
                "collinear_overlap_removed": 0
            },
            "exact": true,
            "numeric_error_bound": 0,
            "contours": {
                "closed": 3,
                "open": 2,
                "parts": 1,
                "holes": 2
            },
            "pierces": 5,
            "net_area": 6071.68146928,
            "area_note": "Exact for lines and circular arcs; ellipses and splines use sampled vertices. Holes subtracted.",
            "cut_length_mm": 600.463706144,
            "net_area_mm2": 6071.68146928
        }
    },
    "processing": {
        "duration_ms": 13,
        "units_consumed": 1,
        "unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
        "rows_processed": 9
    }
}
Safe repair with a change list — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43228/safe+repair+with+a+change+list' --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\n0\n10\n0\n20\n0\n11\n100\n21\n0\n0\nLINE\n8\n0\n10\n100\n20\n0\n11\n100\n21\n50\n0\nLINE\n8\n0\n10\n100\n20\n50\n11\n0\n21\n50\n0\nLINE\n8\n0\n10\n0\n20\n50\n11\n0\n21\n0.1\n0\nENDSEC\n0\nEOF\n","options":{"dry_run":false,"join_gaps":0.2}}'

    
Request
Contours added and removed, change in cut length, pierces, parts, holes, area and overall size, and layers added or removed. Matched by geometry, so redrawn, reordered or reversed entities are not reported as changes. Send the original as file and the revision as modified. Options (`options` object): - `units` (mm, cm, m, in, ft): Declare units when the DXF does not ($INSUNITS unitless). Never assumed. - `layers` (object): Layer roles, e.g. {"cut": ["CUT"], "engrave": ["ETCH"], "construction": ["DIM"]}. With no roles every supported curve on visible layers counts as cut geometry. - `include_hidden_layers` (boolean, default false): Off and frozen layers are ignored unless true. - `tolerance` (number): Endpoint match tolerance in drawing units (default: drawing diagonal x 1e-7). - `gap_tolerance` (number): Report open ends closer than this as gaps.
Endpoint ID: 43229
POST https://zylalabs.com/api/15787/cadguard+dxf+api/43229/compare+two+revisions
INPUT PARAMETERS

Compare two revisions — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "request_id": "req_df6bb8f7b2eb44d8a829",
    "api_version": "1.0",
    "status": "completed",
    "summary": {
        "errors": 0,
        "warnings": 3,
        "info": 0
    },
    "issues": [
        {
            "code": "CONTOUR_REMOVED",
            "severity": "warning",
            "message": "A closed contour (length 62.8319) is in the original but not in the revision.",
            "location": {
                "row": null,
                "column": null,
                "sheet": null,
                "handle": null,
                "layer": "CUT",
                "point": [
                    40,
                    30
                ]
            },
            "value": null,
            "suggestion": null,
            "basis": "structural",
            "fixable": false
        },
        {
            "code": "CONTOUR_REMOVED",
            "severity": "warning",
            "message": "A open contour (length 29.8) is in the original but not in the revision.",
            "location": {
                "row": null,
                "column": null,
                "sheet": null,
                "handle": null,
                "layer": "CUT",
                "point": [
                    50,
                    5
                ]
            },
            "value": null,
            "suggestion": null,
            "basis": "structural",
            "fixable": false
        },
        {
            "code": "CONTOUR_ADDED",
            "severity": "warning",
            "message": "A closed contour (length 75.3982) is new in the revision.",
            "location": {
                "row": null,
                "column": null,
                "sheet": null,
                "handle": null,
                "layer": "CUT",
                "point": [
                    42,
                    30
                ]
            },
            "value": null,
            "suggestion": null,
            "basis": "structural",
            "fixable": false
        }
    ],
    "issues_truncated": false,
    "data": {
        "identical_geometry": false,
        "contours_added": [
            {
                "closed": true,
                "role": "hole",
                "length": 75.3982236862,
                "area": 452.389342117,
                "start": [
                    42,
                    30
                ],
                "layer": "CUT"
            }
        ],
        "contours_removed": [
            {
                "closed": true,
                "role": "hole",
                "length": 62.8318530718,
                "area": 314.159265359,
                "start": [
                    40,
                    30
                ],
                "layer": "CUT"
            },
            {
                "closed": false,
                "role": "open",
                "length": 29.8,
                "area": 0,
                "start": [
                    50,
                    5
                ],
                "layer": "CUT"
            }
        ],
        "cut_length": [
            600.463706144,
            583.230076758
        ],
        "cut_length_change": -17.233629386,
        "pierces": [
            5,
            4
        ],
        "parts": [
            1,
            1
        ],
        "holes": [
            2,
            2
        ],
        "net_area": [
            6071.68146928,
            5933.45139252
        ],
        "dimensions": {
            "width": [
                120,
                120
            ],
            "height": [
                60,
                60
            ]
        },
        "layers_added": [],
        "layers_removed": [],
        "entity_counts": [
            {
                "TEXT": 1,
                "LINE": 5,
                "LWPOLYLINE": 2,
                "CIRCLE": 1
            },
            {
                "TEXT": 1,
                "LINE": 2,
                "LWPOLYLINE": 2,
                "CIRCLE": 1
            }
        ],
        "match_tolerance": 0.013416407864998736,
        "note": "Contours are matched by position, length and area, so redrawing, reordering or reversing entities is not reported as a change."
    },
    "processing": {
        "duration_ms": 24,
        "units_consumed": 1,
        "unit_definition": "1 unit = up to 5,000 drawing entities after block expansion (minimum 1)",
        "rows_processed": 15
    }
}
Compare two revisions — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/15787/cadguard+dxf+api/43229/compare+two+revisions' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' 

--data-raw '{"file_base64":"MApTRUNUSU9OCjIKSEVBREVSCjkKJElOU1VOSVRTCjcwCjQKMApFTkRTRUMKMApTRUNUSU9OCjIKRU5USVRJRVMKMApMSU5FCjgKQ1VUCjEwCjAKMjAKMAoxMQoyMDAKMjEKMAowCkxJTkUKOApDVVQKMTAKMjAwCjIwCjAKMTEKMjAwCjIxCjEwMAowCkxJTkUKOApDVVQKMTAKMjAwCjIwCjEwMAoxMQowCjIxCjEwMAowCkxJTkUKOApDVVQKMTAKMAoyMAoxMDAKMTEKMAoyMQowCjAKQ0lSQ0xFCjgKQ1VUCjEwCjEwMAoyMAo1MAo0MAoyMAowCkxJTkUKOApFVENICjEwCjEwCjIwCjEwCjExCjYwCjIxCjEwCjAKRU5EU0VDCjAKRU9GCg==","modified_base64":"MApTRUNUSU9OCjIKSEVBREVSCjkKJElOU1VOSVRTCjcwCjQKMApFTkRTRUMKMApTRUNUSU9OCjIKRU5USVRJRVMKMApMSU5FCjgKQ1VUCjEwCjAKMjAKMAoxMQoyMDAKMjEKMAowCkxJTkUKOApDVVQKMTAKMjAwCjIwCjAKMTEKMjAwCjIxCjEwMAowCkxJTkUKOApDVVQKMTAKMjAwCjIwCjEwMAoxMQowCjIxCjEwMAowCkxJTkUKOApDVVQKMTAKMAoyMAoxMDAKMTEKMAoyMQowCjAKQ0lSQ0xFCjgKQ1VUCjEwCjEwMAoyMAo1MAo0MAoyNQowCkNJUkNMRQo4CkNVVAoxMAo0MAoyMAo1MAo0MAoxMAowCkxJTkUKOApFVENICjEwCjEwCjIwCjEwCjExCjYwCjIxCjEwCjAKRU5EU0VDCjAKRU9GCg==","options":{"layers":{"cut":["CUT"],"engrave":["ETCH"]}}}'

    

API Access Key & Authentication

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.

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

Starts at
$10,000/Year


  • Custom Volume
  • Custom Rate Limit
  • Specialized Customer Support
  • Real-Time API Monitoring

Overview

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.

CADGuard DXF API FAQs

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.

General FAQs

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.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world's most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

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.

The 'X-Zyla-RateLimit-Reset' header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.

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.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

Please have a look at our Refund Policy: https://zylalabs.com/terms#refund


Related APIs