Dielines API

Generate production-ready dielines with one API call

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.

Every dieline is generated from a real, production-ready template — what the API returns is exactly what gets die-cut.
PDF · DXF · SVG Hosted HTTPS API Real, production-ready templates
Try it live

Dielines API

Hit 'Send' and view the response from the Dielines API

GET request
GET /dieline-templates/becf-11101?unit=mm
JSON response
# 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.

What it does

A full packaging engine behind one API

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.

Generate dielines in PDF, DXF & SVG

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.

  • PDF · DXF · SVG
  • Production-ready geometry
  • Any set of variables

Turn your dielines into 3D Mockups

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.

  • Photorealistic 3D
  • Your artwork, wrapped
  • Shareable hosted link
A 3D mockup created from a dieline through the API

Nest and impose for efficient printing

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.

  • Auto-filtered templates
  • Sheet efficiency
  • Optimal imposition

Area — total and per part

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.

  • Per-part breakdown
  • Total = sum of parts
  • mm² or in²
Details that matter

Built to drop straight into your stack

Hosted over HTTPS

No software to install and nothing to render on your side — a single authenticated request returns your file or JSON over HTTPS.

Plain REST, any language

cURL, Ruby, PHP or anything that speaks HTTP. Clear JSON in, a file or JSON out — no SDK required.

Versioned & predictable

A pinned API version and stable object shapes mean the response you build against today is the response you get tomorrow.

Sandbox included

A full sandbox host mirrors production so you can integrate and test everything freely before you go live.

A real template catalog

Browse over 37,000 production-ready packaging templates and the exact variables each one accepts, all through the API.

Free demo template

The demo template accepts custom dimensions and never consumes credits — on the sandbox or in production — so you can build at no cost.

How it works

From key to dieline in four steps

1

Get your API key

Subscribe to a credit pack and grab your API key from your account.

2

Pick a template

Browse the catalog for a template and the variables it accepts.

3

POST the variables

Send the box's size, material and unit, and choose PDF, DXF or SVG.

4

Download & go

Get back a production-ready dieline — then optionally add a 3D mockup or nesting.

Frequently asked questions

What does the Dielines API generate?
Custom, production-ready packaging dielines in PDF, DXF or SVG, generated from real templates for any set of box variables. It can also turn a dieline into a 3D mockup and calculate sheet nesting layouts for efficient printing.
What formats can I get back?
PDF for proofing, DXF for die-making, and SVG for the web. You choose the format per request; the geometry is identical and production-ready in each.
How do I authenticate?
Every request is a single authenticated POST with a Bearer API key, which you get from your account after subscribing to a credit pack. Send it over HTTPS with your box variables and read the response back.
Can I test before subscribing?
Yes. The demo template accepts custom dimensions and does not consume credits on either the sandbox or the production API, so you can integrate and test the full flow at no cost.
Is the output really production-ready?
Yes. Every dieline is generated from a real, production-ready template, so what the API returns is exactly what gets die-cut — cut lines, creases and folds all correct.

Start generating dielines programmatically

Wire up the Dielines API in an afternoon and generate production-ready dielines, 3D mockups and nesting layouts straight from your own tools.