Hard Cardboards | Boxes With Hinged Lid | becf-30207
3D Mockup

This documentation page is intended for developers looking to integrate the Dielines API into their systems. If you have any questions, please get in touch.

Die Cut Templates provides a hosted API available via HTTPS.

Dielines API allows for generating custom dielines in PDF, DXF, and SVG formats, along with 3D mockups.

To create custom dieline using the dieline template (becf-30207) via the API, please make a
POST request to https://api.diecuttemplates.com/dieline-templates/becf-30207/dielines


Code Examples



curl -i -X POST \
https://api.diecuttemplates.com/dieline-templates/becf-30207/dielines\
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <YOUR_DIELINES_API_KEY_HERE>" \
  -d '{
  "format": "pdf",
  "variables": {
    "unit": "in",
    "material": 1.2954,
    "length": 12.0,
    "width": 8.0,
    "height": 3.0,
    "cover_height": 2.0
  }
}'

Example Response

application/json
{
  "dieline": {
    "type": "dieline",
    "id": "ueipnpyp0rlw",
    "dieline_template_id": "becf-10301",
    "variables": {
      "unit": "mm",
      "length": 251.13,
      "width": 102,
      "height": 253,
      "material": 2.22
    },
    "format": "pdf",
    "url": "https://d2atdwxjx7uc4i.cloudfront.net/campaigns/0e9d742f-bdcd-4b41-8122-88e0426d263f20241218-14172-y29ocn.pdf",
    "artwork_dimensions": {
      "unit": "mm",
      "width": "723.06",
      "height": "502.44"
    },
    "created_at": "2024-12-18T19:27:22Z"
  }
} 



List of variables that are available for the template

Variable name length required
Description length
Data type length

Variable name width required
Description width
Data type length

Variable name height required
Description height
Data type length

Variable name cover_height required
Description cover height
Data type length

Variable name direction optional
Description direction
Data type boolean
Default value false
Allowed values true, false, 0, 1

Variable name cross optional
Description cross
Data type boolean
Default value false
Allowed values true, false, 0, 1

Variable name magnet_diameter optional
Description magnet diameter
Data type length
Default value 0.395 in

Variable name cover_side_flap_1 optional
Description cover side flap
Data type length
Default value 0.788 in

Variable name cover_side_flap_2 optional
Description cover side flap
Data type length
Default value 0.788 in

Variable name cover_corner_angle optional
Description cover corner angle
Data type angle
Default value 20
Allowed values 20.0, 25.0, 30.0, 35.0, 40.0, 45.0

Variable name side_flap_1 optional
Description side flap
Data type length
Default value 0.63 in

Variable name side_flap_2 optional
Description side flap
Data type length
Default value 0.63 in

Variable name side_flap_3 optional
Description side flap
Data type length
Default value 0.788 in

Variable name glue_flap optional
Description glue flap
Data type length
Default value 0.788 in



Read Dielines API documentation