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-30109) via the API, please make a
GET request to
https://api.diecuttemplates.com/dieline-templates/in/becf-30109
curl -i -X GET \
https://api.diecuttemplates.com/dieline-templates/in/becf-30109 \
-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-30109')
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-30109",
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-30109",
"group": {
"type": "dieline_template_group",
"id": "hard_cardboards_covered_solid_board_boxes",
"name": "Covered Solid Board Boxes",
"category": "Hard Cardboards"
},
"tags": [],
"variables": [
{
"type": "dieline_template_variable",
"name": "lenght",
"description": "lenght",
"data_type": "length",
"required": true,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_52180_a20250213-2-a7ul2m.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_52180_b20250213-2-1fyvxn.svg"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "bottom_height",
"description": "bottom height",
"data_type": "length",
"required": true,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_52180_c20250213-2-cim8j.svg"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "inside_receptacle",
"description": "inside receptacle",
"data_type": "length",
"required": true,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_52180_d20250213-2-l798ac.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_52180_e20250213-2-bit0dx.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": "top_flap",
"description": "top flap",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_52180_f20250213-2-df2tfc.svg"
},
"default_value": {
"value": 0.788,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "top_side_flap",
"description": "top side flap",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_52180_y120250213-2-p8xpqs.svg"
},
"default_value": {
"value": 0.788,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "top_inside_margin",
"description": "top inside margin",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_52180_x120250213-2-sxvsx3.svg"
},
"default_value": {
"value": 0.1575,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "bottom_flap",
"description": "bottom flap",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_52180_g20250213-2-fdn7iv.svg"
},
"default_value": {
"value": 0.788,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "bottom_side_flap",
"description": "bottom side flap",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_52180_y220250213-2-gcnisw.svg"
},
"default_value": {
"value": 0.788,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "bottom_inside_margin",
"description": "bottom inside margin",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_52180_x220250213-2-vv3rgg.svg"
},
"default_value": {
"value": 0.1575,
"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_52180_h20250213-2-dduqgo.svg"
},
"default_value": {
"value": 0.788,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "inside_side_flap",
"description": "inside side flap",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_52180_y320250213-2-pj18pf.svg"
},
"default_value": {
"value": 0.788,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "inside_flap_margin",
"description": "inside flap margin",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_52180_x320250213-2-aggikt.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-30109",
"method": "GET"
},
{
"rel": "web",
"href": "https://www.diecuttemplates.com/dielines/52180/covered-solid-board-boxes-becf-30109",
"method": "GET"
}
],
"images": [
{
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_5218020250213-2-zd1lt9.svg"
}
]
}
}