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-12504) via the API, please make a
GET request to
https://api.diecuttemplates.com/dieline-templates/in/becf-12504
curl -i -X GET \
https://api.diecuttemplates.com/dieline-templates/in/becf-12504 \
-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-12504')
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-12504",
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-12504",
"group": {
"type": "dieline_template_group",
"id": "cartons_wrap_around_labels",
"name": "Wrap Around Labels",
"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_73977_a20250626-2-gx097p.svg"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "number_of_holes",
"description": "number of holes",
"data_type": "integer",
"required": true,
"allowed_values": [
1,
2,
3,
4
],
"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": "hole_diameter",
"description": "hole diameter",
"data_type": "length",
"required": true,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_73977_d20250626-2-2j9czc.svg"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "side_margin",
"description": "side margin",
"data_type": "length",
"required": true,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_73977_x120250626-2-iovrev.svg"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "interspace",
"description": "interspace",
"data_type": "length",
"required": true,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_73977_x220250626-2-raxakl.svg"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "corner_radius",
"description": "corner radius",
"data_type": "length",
"required": true,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_73977_r20250626-2-mrlgwe.svg"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "hand_holding_length",
"description": "hand holding length",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_73977_x20250626-2-xnuuqj.svg"
},
"default_value": {
"value": 3.5039,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "hand_holding_width",
"description": "hand holding width",
"data_type": "length",
"required": true,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_73977_y20250626-2-oqez5s.svg"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "hand_holding_margin",
"description": "hand holding margin",
"data_type": "length",
"required": true,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_73977_y120250626-2-6hjcyn.svg"
},
"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-12504",
"method": "GET"
},
{
"rel": "web",
"href": "https://www.diecuttemplates.com/dielines/73977/wrap-around-labels-becf-12504",
"method": "GET"
}
],
"images": [
{
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_7397720250626-2-a1hd6b.svg"
}
]
}
}