Send a box's variables and get back a real, production-ready dieline in PDF, DXF or SVG — plus 3D mockups and material-efficient sheet nesting. A hosted HTTPS API that drops straight into your webshop, quoting tool or design pipeline.
POST /dieline-templates/becf-10301/dielines { "format": "pdf", "variables": { "unit": "mm", "length": 251, "width": 102, "height": 253, "material": 2.2 } }
{ "dieline": { "type": "dieline", "id": "di_ueipnpyp0rlw", "format": "pdf", "url": "https://…/dieline.pdf", "artwork_dimensions": { "unit": "mm", "width": "723.06", "height": "502.44" } } }
Hit 'Send' and view the response from the Dielines API
GET /dieline-templates/becf-11101?unit=mm
# Press Send to call the live API and see the real JSON response.
This is the exact response the Dielines API returns for a template — no key or credits needed to try it.
From the flat dieline to a 3D mockup to a print-ready sheet layout — generate everything programmatically, for any box and any set of variables.
POST the box variables — length, width, height, material and your unit — and get back a real dieline file, ready for production. Choose PDF for proofing, DXF for die-making, or SVG for the web. Every file is drawn from a real, production-ready template, so it cuts, creases and folds correctly.
# one request, three formats "format": "pdf" # proofing "format": "dxf" # die-making "format": "svg" # the web # → production-ready file "url": "https://…/dieline.pdf"
Every dieline you generate can become a photorealistic 3D mockup with a single follow-up call. Wrap your artwork onto the real geometry and get back a shareable, hosted 3D preview — perfect for previews in your webshop, client approvals and product pages.
For print production, the API also handles nesting (imposition). List the nesting templates that actually fit a dieline — automatically filtered by its dimensions and material — and calculate the optimal num_x × num_y count and sheet efficiency for each, so you pick the most material-efficient layout before you commit.
Ask for the flat area of a dieline with area: true. For a multi-part box — say an inner tray and a sleeve — you get the whole-dieline area and a breakdown per part, each measured on its own, so you can cost every component exactly. The parts always add up to the total.
# ask for the area "area": true # → whole dieline, and each part "area": { "value": "180443.02", "unit": "mm2" }, "part_areas": { "inner-tray": { "value": "96574.47", "unit": "mm2" }, "sleeve-cover": { "value": "83868.55", "unit": "mm2" } }
No software to install and nothing to render on your side — a single authenticated request returns your file or JSON over HTTPS.
cURL, Ruby, PHP or anything that speaks HTTP. Clear JSON in, a file or JSON out — no SDK required.
A pinned API version and stable object shapes mean the response you build against today is the response you get tomorrow.
A full sandbox host mirrors production so you can integrate and test everything freely before you go live.
Browse over 37,000 production-ready packaging templates and the exact variables each one accepts, all through the API.
The demo template accepts custom dimensions and never consumes credits — on the sandbox or in production — so you can build at no cost.
Subscribe to a credit pack and grab your API key from your account.
Browse the catalog for a template and the variables it accepts.
Send the box's size, material and unit, and choose PDF, DXF or SVG.
Get back a production-ready dieline — then optionally add a 3D mockup or nesting.
Wire up the Dielines API in an afternoon and generate production-ready dielines, 3D mockups and nesting layouts straight from your own tools.