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-1200f) via the API, please make a
GET request to
https://api.diecuttemplates.com/dieline-templates/in/becf-1200f
curl -i -X GET \
https://api.diecuttemplates.com/dieline-templates/in/becf-1200f \
-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-1200f')
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-1200f",
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-1200f",
"group": {
"type": "dieline_template_group",
"id": "cartons_food_boxes",
"name": "Food 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_51614_a20250213-2-7553zs.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_51614_b20250213-2-oi0ze8.svg"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "heigh",
"description": "heigh",
"data_type": "length",
"required": true,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_51614_c20250213-2-a2imrq.svg"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "length_wall_width",
"description": "length wall width",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_51614_d20250213-2-jm83lh.svg"
},
"default_value": {
"value": 0.5906,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "width_wall_width",
"description": "width wall width",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_51614_e20250213-2-mhj3t2.svg"
},
"default_value": {
"value": 0.5906,
"unit": "in"
},
"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": "glue_flap",
"description": "glue flap",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_51614__kulak20250213-2-t2hi9z.svg"
},
"default_value": {
"value": 0.481,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "inside_flap",
"description": "inside flap",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_51614__dil20250213-2-otxxny.svg"
},
"default_value": {
"value": 0.481,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "dust_flap",
"description": "dust flap",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_51614__flap20250213-2-81afxz.svg"
},
"default_value": {
"value": 1.519,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "slide_glue_flap",
"description": "slide glue flap",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_51614__dip20250213-2-s2i1ls.svg"
},
"default_value": {
"value": 0.5,
"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-1200f",
"method": "GET"
},
{
"rel": "web",
"href": "https://www.diecuttemplates.com/dielines/51614/food-boxes-becf-1200f",
"method": "GET"
}
],
"images": [
{
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_5161420250213-2-1yuepy.svg"
}
]
}
}