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-11e17) via the API, please make a
GET request to
https://api.diecuttemplates.com/dieline-templates/in/becf-11e17
curl -i -X GET \
https://api.diecuttemplates.com/dieline-templates/in/becf-11e17 \
-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-11e17')
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-11e17",
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;
}
application/json
{
"dieline_template": {
"type": "dieline_template",
"id": "becf-11e17",
"group": {
"type": "dieline_template_group",
"id": "cartons_special_boxes",
"name": "Special Boxes",
"category": "Cartons"
},
"tags": [],
"variables": [
{
"type": "dieline_template_variable",
"name": "length",
"description": "length",
"data_type": "length",
"required": true,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_52200_a20250213-2-w10kfg.svg"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "width",
"description": "width",
"data_type": "length",
"required": true,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_52200_b20250213-2-r3a0cj.svg"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "height",
"description": "height",
"data_type": "length",
"required": true,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_52200_c20250213-2-uojvgy.svg"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "camber",
"description": "camber",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_52200_h20250213-2-rygww1.svg"
},
"default_value": {
"value": 1.1811,
"unit": "in"
},
"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": "cross",
"description": "cross",
"data_type": "boolean",
"required": false,
"default_value": {
"value": false
},
"allowed_values": [
true,
false,
0,
1
],
"childen": []
},
{
"type": "dieline_template_variable",
"name": "lock_width",
"description": "lock width",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_52200_e20250213-2-ksvtix.svg"
},
"default_value": {
"value": 0.7875,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "lock_length",
"description": "lock length",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_52200_d20250213-2-2u1pvh.svg"
},
"default_value": {
"value": 1.97,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "corner_radius",
"description": "corner radius",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_52200_r20250213-2-fomz3o.svg"
},
"default_value": {
"value": 0.395,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "x1",
"description": "x1",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_52200_x120250213-2-mdt7s5.svg"
},
"default_value": {
"value": 0.395,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "x2",
"description": "x2",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_52200_x220250213-2-w2egla.svg"
},
"default_value": {
"value": 0.2,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "y1",
"description": "y1",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_52200_y120250213-2-9yowc5.svg"
},
"default_value": {
"value": 0.395,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "y2",
"description": "y2",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_52200_y220250213-2-6dlz7z.svg"
},
"default_value": {
"value": 0.7875,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "glue_flap",
"description": "glue flap",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_52200__kulak20250213-2-zvo4gy.svg"
},
"default_value": {
"value": 0.6,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "bottom_tuck_flap",
"description": "bottom tuck flap",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_52200__dip20250213-2-elcc23.svg"
},
"default_value": {
"value": 0.6299,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "dimension_texts",
"description": "",
"data_type": "boolean",
"required": false,
"allowed_values": [
true,
false
],
"default_value": {
"value": true
}
}
],
"links": [
{
"rel": "self",
"href": "/dieline_templates/in/becf-11e17",
"method": "GET"
},
{
"rel": "web",
"href": "https://www.diecuttemplates.com/dielines/52200/special-boxes-becf-11e17",
"method": "GET"
}
],
"images": [
{
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_5220020250213-2-3zasnl.svg"
}
]
}
}