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-21709) via the API, please make a
GET request to
https://api.diecuttemplates.com/dieline-templates/in/becf-21709
curl -i -X GET \
https://api.diecuttemplates.com/dieline-templates/in/becf-21709 \
-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-21709')
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-21709",
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-21709",
"group": {
"type": "dieline_template_group",
"id": "corrugated_cardboards_tray_boxes",
"name": "Tray Boxes",
"category": "Corrugated Cardboards"
},
"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": "width_1",
"description": "width",
"data_type": "length",
"required": true,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_83937_a20250213-2-xttg6x.svg"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "width_2",
"description": "width ",
"data_type": "length",
"required": true,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_83937_b20250213-2-meuahz.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_83937_c20250213-2-139nlg.svg"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "u_bent",
"description": "u bent",
"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": "direction",
"description": "direction",
"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_83937_d20250213-2-iwsfh9.svg"
},
"default_value": {
"value": 2.0,
"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_83937_e20250213-2-vy7gc5.svg"
},
"default_value": {
"value": 0.788,
"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_83937__flap20250213-2-rym0zb.svg"
},
"default_value": {
"value": 2.0,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "handle_width",
"description": "handle width",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_83937_y220250213-2-919vuu.svg"
},
"default_value": {
"value": 1.0,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "handle_length",
"description": "handle length",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_83937_z220250213-2-fpmgvm.svg"
},
"default_value": {
"value": 4.53,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "slot_width",
"description": "slot width",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_83937_y320250213-2-yp3r17.svg"
},
"default_value": {
"value": 0.6,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "slot_spacing",
"description": "slot spacing",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_83937_z320250213-2-uh8ssl.svg"
},
"default_value": {
"value": 4.15,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "slot_length",
"description": "slot length",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_83937_z420250213-2-iwno11.svg"
},
"default_value": {
"value": 0.2,
"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-21709",
"method": "GET"
},
{
"rel": "web",
"href": "https://www.diecuttemplates.com/dielines/83937/tray-boxes-becf-21709",
"method": "GET"
},
{
"rel": "remove_postal_lock",
"href": "/dieline_templates/in/becf-21707",
"method": "GET"
}
],
"images": [
{
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_8393720250213-2-n6rk0m.svg"
}
]
}
}