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-2110c) via the API, please make a
GET request to
https://api.diecuttemplates.com/dieline-templates/in/becf-2110c
curl -i -X GET \
https://api.diecuttemplates.com/dieline-templates/in/becf-2110c \
-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-2110c')
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-2110c",
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-2110c",
"group": {
"type": "dieline_template_group",
"id": "corrugated_cardboards_tuck_top_auto_bottom_boxes",
"name": "Tuck Top Auto Bottom Boxes",
"category": "Corrugated Cardboards"
},
"flap": {
"type": "flap",
"id": "friction_fit_tuck_in_flap",
"image": "https://d2atdwxjx7uc4i.cloudfront.net/images/tags/flap_24.png"
},
"tuck": {
"type": "tuck",
"id": "sit_lock_tuck",
"image": "https://d2atdwxjx7uc4i.cloudfront.net/images/tags/tuck_4.png"
},
"dust_flap": {
"type": "dust_flap",
"id": "full_angled_dust_flap",
"image": "https://d2atdwxjx7uc4i.cloudfront.net/images/tags/dust_flap_14.png"
},
"tags": [
"postal_lock"
],
"variables": [
{
"type": "dieline_template_variable",
"name": "dimension_type",
"description": "",
"data_type": "string",
"required": false,
"allowed_values": [
"external",
"internal"
],
"default_value": {
"value": "external"
}
},
{
"type": "dieline_template_variable",
"name": "length",
"description": "length",
"data_type": "length",
"required": true,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_47900_a20250312-2-1q2dz9.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_47900_b20250312-2-dknvkg.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_47900_c20250312-2-z94t0d.svg"
},
"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": "postal_lock_length",
"description": "postal lock length",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_47900_d20250312-2-7n3c5j.svg"
},
"default_value": {
"value": 1.333,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "postal_lock_width",
"description": "postal lock width",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_47900_e20250312-2-v3wrjg.svg"
},
"default_value": {
"value": 0.788,
"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_47900__kulak20250312-2-bvmy89.svg"
},
"default_value": {
"value": 0.8,
"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://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_47900__dil20250312-2-66kbca.svg"
},
"default_value": {
"value": 0.684,
"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_47900__flap20250312-2-k2xlvm.svg"
},
"default_value": {
"value": 1.322,
"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_47900__dip20250312-2-xdhbw8.svg"
},
"default_value": {
"value": 0.6,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "printing_method",
"description": "Offset (material is squeezed) or Flexo (material is not squeezed)",
"data_type": "string",
"required": false,
"allowed_values": [
"offset",
"flexo"
],
"default_value": {
"value": "offset"
}
},
{
"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-2110c",
"method": "GET"
},
{
"rel": "web",
"href": "https://www.diecuttemplates.com/dielines/47900/tuck-top-auto-bottom-boxes-becf-2110c",
"method": "GET"
},
{
"rel": "remove_postal_lock",
"href": "/dieline_templates/in/becf-2110a",
"method": "GET"
},
{
"rel": "change_flap",
"name": "uni_tuck_flap",
"href": "/dieline_templates/in/becf-21106",
"method": "GET"
},
{
"rel": "change_dust_flap",
"name": "slit_lock_dust_flap",
"href": "/dieline_templates/in/becf-21109",
"method": "GET"
},
{
"rel": "change_tuct",
"name": "friction_fit_tuck",
"href": "/dieline_templates/in/becf-21124",
"method": "GET"
}
],
"images": [
{
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_4790020250312-2-vfyqqe.svg"
}
]
}
}