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 fetch the dieline template (becf-10614) via the API, please make a
GET request to https://api.diecuttemplates.com/dieline-templates/in/becf-10614


Code Examples



curl -i -X GET \
https://api.diecuttemplates.com/dieline-templates/in/becf-10614 \
  -H 'Authorization: Bearer <YOUR_DIELINES_API_KEY_HERE>' \
  -H 'Dielines-Api-Version: 1.0'


require 'uri'
require 'net/http'
require 'openssl'

url = URI('https://api.diecuttemplates.com/dieline-templates/in/becf-10614')

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request['Dielines-Api-Version'] = '1.0'
request['Authorization'] = 'Bearer <YOUR_DIELINES_API_KEY_HERE>'

response = http.request(request)
puts response.read_body


$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer  <YOUR_DIELINES_API_KEY_HERE>",
    "Dielines-Api-Version: 1.0"
  ],
  CURLOPT_URL => "https://api.diecuttemplates.com/dieline-templates/in/becf-10614",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$error = curl_error($curl);

curl_close($curl);

if ($error) {
  echo "cURL Error #:" . $error;
} else {
  echo $response;
}

Response

application/json
{
  "dieline_template": {
    "type": "dieline_template",
    "id": "becf-10614",
    "group": {
      "type": "dieline_template_group",
      "id": "cartons_tuck_end_boxes",
      "name": "Tuck End Boxes",
      "category": "Cartons"
    },
    "flap": {
      "type": "flap",
      "id": "uni_tuck_flap",
      "image": "https://d2atdwxjx7uc4i.cloudfront.net/images/tags/flap_4.png"
    },
    "tuck": {
      "type": "tuck",
      "id": "sit_lock_tuck",
      "image": "https://d2atdwxjx7uc4i.cloudfront.net/images/tags/tuck_4.png"
    },
    "dust_flap": {
      "type": "dust_flap",
      "id": "slit_lock_dust_flap",
      "image": "https://d2atdwxjx7uc4i.cloudfront.net/images/tags/dust_flap_4.png"
    },
    "tags": [
      "bottom_separator_square",
      "top_separator_square"
    ],
    "variables": [
      {
        "type": "dieline_template_variable",
        "name": "length",
        "description": "length",
        "data_type": "length",
        "required": true,
        "image": {
          "type": "svg",
          "url": "https://www.diecuttemplates.com/i2/NJYkwl6Y70/NJYkR3ejK7.svg"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "width",
        "description": "width",
        "data_type": "length",
        "required": true,
        "image": {
          "type": "svg",
          "url": "https://www.diecuttemplates.com/i2/NJYkwl6Y70/2lY22wGOYP.svg"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "height",
        "description": "height",
        "data_type": "length",
        "required": true,
        "image": {
          "type": "svg",
          "url": "https://www.diecuttemplates.com/i2/NJYkwl6Y70/Zv46Jw0n4m.svg"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "top_separator_height",
        "description": "top separator height",
        "data_type": "length",
        "required": true,
        "image": {
          "type": "svg",
          "url": "https://www.diecuttemplates.com/i2/NJYkwl6Y70/p3ybNwRgyv.svg"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "top_slot_length",
        "description": "top slot length",
        "data_type": "length",
        "required": true,
        "image": {
          "type": "svg",
          "url": "https://www.diecuttemplates.com/i2/NJYkwl6Y70/PJ4ox5b8yA.svg"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "top_slot_width",
        "description": "top slot width",
        "data_type": "length",
        "required": true,
        "image": {
          "type": "svg",
          "url": "https://www.diecuttemplates.com/i2/NJYkwl6Y70/bJKpBvbO4p.svg"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "bottom_separator_height",
        "description": "bottom separator height",
        "data_type": "length",
        "required": true,
        "image": {
          "type": "svg",
          "url": "https://www.diecuttemplates.com/i2/NJYkwl6Y70/GPKzRPv1Kv.svg"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "bottom_slot_length",
        "description": "bottom slot length",
        "data_type": "length",
        "required": true,
        "image": {
          "type": "svg",
          "url": "https://www.diecuttemplates.com/i2/NJYkwl6Y70/L5yjDNb2Yl.svg"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "bottom_slot_width",
        "description": "bottom slot width",
        "data_type": "length",
        "required": true,
        "image": {
          "type": "svg",
          "url": "https://www.diecuttemplates.com/i2/NJYkwl6Y70/dqymXAbk4e.svg"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "cross",
        "description": "cross",
        "data_type": "boolean",
        "required": false,
        "default_value": {
          "value": false
        },
        "allowed_values": [
          true,
          false,
          0,
          1
        ],
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "direction",
        "description": "direction",
        "data_type": "boolean",
        "required": false,
        "default_value": {
          "value": false
        },
        "allowed_values": [
          true,
          false,
          0,
          1
        ],
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "separator_thumb_cut_1",
        "description": "separator thumb cut",
        "data_type": "boolean",
        "required": false,
        "default_value": {
          "value": false
        },
        "allowed_values": [
          true,
          false,
          0,
          1
        ],
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "separator_thumb_cut_2",
        "description": "separator thumb cut",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://www.diecuttemplates.com/i2/NJYkwl6Y70/XJyEjPM6Kv.svg"
        },
        "default_value": {
          "value": 0.0,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "top_1st_radius",
        "description": "top 1st radius",
        "data_type": "length",
        "required": true,
        "image": {
          "type": "svg",
          "url": "https://www.diecuttemplates.com/i2/NJYkwl6Y70/EMyVEpR04b.svg"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "top_2nd_radius",
        "description": "top 2nd radius",
        "data_type": "length",
        "required": true,
        "image": {
          "type": "svg",
          "url": "https://www.diecuttemplates.com/i2/NJYkwl6Y70/AN4XZPRzKq.svg"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "top_3rd_radius",
        "description": "top 3rd radius",
        "data_type": "length",
        "required": true,
        "image": {
          "type": "svg",
          "url": "https://www.diecuttemplates.com/i2/NJYkwl6Y70/OPy8RPNPYQ.svg"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "top_4th_radius",
        "description": "top 4th radius",
        "data_type": "length",
        "required": true,
        "image": {
          "type": "svg",
          "url": "https://www.diecuttemplates.com/i2/NJYkwl6Y70/Bd4RjQXd4r.svg"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "bottom_1st_radius",
        "description": "bottom 1st radius",
        "data_type": "length",
        "required": true,
        "image": {
          "type": "svg",
          "url": "https://www.diecuttemplates.com/i2/NJYkwl6Y70/mOYBPMZNyR.svg"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "bottom_2nd_radius",
        "description": "bottom 2nd radius",
        "data_type": "length",
        "required": true,
        "image": {
          "type": "svg",
          "url": "https://www.diecuttemplates.com/i2/NJYkwl6Y70/ekKLbJEE4O.svg"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "bottom_3rd_radius",
        "description": "bottom 3rd radius",
        "data_type": "length",
        "required": true,
        "image": {
          "type": "svg",
          "url": "https://www.diecuttemplates.com/i2/NJYkwl6Y70/QA4eAZbd4n.svg"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "bottom_4th_radius",
        "description": "bottom 4th radius",
        "data_type": "length",
        "required": true,
        "image": {
          "type": "svg",
          "url": "https://www.diecuttemplates.com/i2/NJYkwl6Y70/9AKNLJEX4w.svg"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "top_dust_flap",
        "description": "top dust flap",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://www.diecuttemplates.com/i2/NJYkwl6Y70/Nj43G2Zb4A.svg"
        },
        "default_value": {
          "value": 1.2715,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "top_tuck_flap",
        "description": "top tuck flap",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://www.diecuttemplates.com/i2/NJYkwl6Y70/z6K0Mw9EYN.svg"
        },
        "default_value": {
          "value": 0.6,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "bottom_dust_flap_1",
        "description": "bottom dust flap",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://www.diecuttemplates.com/i2/NJYkwl6Y70/VB4A1MgX4k.svg"
        },
        "default_value": {
          "value": 1.2715,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "bottom_dust_flap_2",
        "description": "bottom dust flap",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://www.diecuttemplates.com/i2/NJYkwl6Y70/QVyqk9R2Yk.svg"
        },
        "default_value": {
          "value": 0.6,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "glue_flap",
        "description": "glue flap",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://www.diecuttemplates.com/i2/NJYkwl6Y70/lVK5LrOlyz.svg"
        },
        "default_value": {
          "value": 0.5,
          "unit": "in"
        },
        "childen": []
      }
    ],
    "links": [
      {
        "rel": "self",
        "href": "/dieline_templates/in/becf-10614",
        "method": "GET"
      },
      {
        "rel": "web",
        "href": "https://www.diecuttemplates.com/dielines/72925/tuck-end-boxes-becf-10614",
        "method": "GET"
      },
      {
        "rel": "remove_top_separator_square",
        "href": "/dieline_templates/in/becf-10618",
        "method": "GET"
      },
      {
        "rel": "remove_bottom_separator_square",
        "href": "/dieline_templates/in/becf-10619",
        "method": "GET"
      },
      {
        "rel": "change_flap",
        "name": "friction_fit_tuck_in_flap",
        "href": "/dieline_templates/in/becf-1061d",
        "method": "GET"
      },
      {
        "rel": "change_dust_flap",
        "name": "full_angled_dust_flap",
        "href": "/dieline_templates/in/becf-10602",
        "method": "GET"
      }
    ],
    "images": [
      {
        "type": "svg",
        "url": "https://d2atdwxjx7uc4i.cloudfront.net/d_svg_api/s_7292520251002-2-mtb4ae.svg"
      }
    ]
  }
} 


Read Dielines API documentation