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-30101) via the API, please make a
GET request to
https://api.diecuttemplates.com/dieline-templates/in/becf-30101
curl -i -X GET \
https://api.diecuttemplates.com/dieline-templates/in/becf-30101 \
-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-30101')
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-30101",
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-30101",
"group": {
"type": "dieline_template_group",
"id": "hard_cardboards_covered_solid_board_boxes",
"name": "Covered Solid Board Boxes",
"category": "Hard Cardboards"
},
"style": "half_cut_automatic",
"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_11144_a20250213-2-sr6wy0.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_11144_b20250213-2-2nnxxx.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_11144_c20250213-2-kt9p6j.svg"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "cover_height",
"description": "cover height",
"data_type": "length",
"required": true,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_11144_d20250213-2-pze2u8.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": "bottom_inside_flap",
"description": "bottom inside flap",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_11144_e20250213-2-tmupaf.svg"
},
"default_value": {
"value": 0.788,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "bottom_side_flap_1",
"description": "bottom side flap",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_11144_y120250213-2-hihoqf.svg"
},
"default_value": {
"value": 0.788,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "inside_side_margin_1",
"description": "inside side margin",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_11144_x120250213-2-d69hy2.svg"
},
"default_value": {
"value": 0.1575,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "cover_inside_flap",
"description": "cover inside flap",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_11144_f20250213-2-yqm53p.svg"
},
"default_value": {
"value": 0.788,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "bottom_side_flap_2",
"description": "bottom side flap",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_11144_y220250213-2-2llr5j.svg"
},
"default_value": {
"value": 0.788,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "inside_side_margin_2",
"description": "inside side margin",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_11144_x220250213-2-a0wkrc.svg"
},
"default_value": {
"value": 0.1575,
"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-30101",
"method": "GET"
},
{
"rel": "web",
"href": "https://www.diecuttemplates.com/dielines/11144/covered-solid-board-boxes-becf-30101",
"method": "GET"
},
{
"rel": "change_style",
"name": "v_cut",
"href": "/dieline_templates/in/becf-3010b",
"method": "GET"
},
{
"rel": "change_style",
"name": "half_cut_manual",
"href": "/dieline_templates/in/becf-3010c",
"method": "GET"
}
],
"images": [
{
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_1114420250213-2-xysnct.svg"
}
]
}
}