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-11f07) via the API, please make a
GET request to
https://api.diecuttemplates.com/dieline-templates/in/becf-11f07
curl -i -X GET \
https://api.diecuttemplates.com/dieline-templates/in/becf-11f07 \
-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-11f07')
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-11f07",
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-11f07",
"group": {
"type": "dieline_template_group",
"id": "cartons_separators",
"name": "Separators",
"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_54423_a20250213-2-xmfpxs.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_54423_b20250213-2-gin0pm.svg"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "finger_area",
"description": "finger area",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_54423_c20250213-2-cho1dq.svg"
},
"default_value": {
"value": 0.9843,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "number_of_pages",
"description": "number of pages",
"data_type": "integer",
"required": true,
"allowed_values": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10
],
"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": "edge_margin",
"description": "edge margin",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_54423_e20250213-2-hfo15v.svg"
},
"default_value": {
"value": 0.6,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "corner_radius_1",
"description": "corner radius",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_54423_r20250213-2-gzcw1x.svg"
},
"default_value": {
"value": 0.2,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "corner_radius_2",
"description": "corner radius",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_54423_r120250213-2-hzh9l7.svg"
},
"default_value": {
"value": 0.2,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "page_width_1",
"description": "1st page width",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_54423_f20250213-2-gtbx6w.svg"
},
"default_value": {
"value": 2.325,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "page_width_2",
"description": "2nd page width",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_54423_g20250213-2-ndbbuh.svg"
},
"default_value": {
"value": 2.325,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "page_width_3",
"description": "3rd page width",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_54423_h20250213-2-knxlkl.svg"
},
"default_value": {
"value": 2.325,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "page_width_4",
"description": "4th page width",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_54423_i20250213-2-mw78o.svg"
},
"default_value": {
"value": 2.325,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "page_width_5",
"description": "5th page width",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_54423_j20250213-2-u6ow8q.svg"
},
"default_value": {
"value": 0.0,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "page_width_6",
"description": "6th page width",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_54423_k20250213-2-imbgy6.svg"
},
"default_value": {
"value": 0.0,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "page_width_7",
"description": "7th page width",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_54423_l20250213-2-9ybxz3.svg"
},
"default_value": {
"value": 0.0,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "page_width_8",
"description": "8th page width",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_54423_m20250213-2-j6chk9.svg"
},
"default_value": {
"value": 0.0,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "page_width_9",
"description": "9th page width",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_54423_n20250213-2-bquyk4.svg"
},
"default_value": {
"value": 0.0,
"unit": "in"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "page_width_10",
"description": "10th page width",
"data_type": "length",
"required": false,
"image": {
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_54423_p20250213-2-53haoz.svg"
},
"default_value": {
"value": 0.0,
"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-11f07",
"method": "GET"
},
{
"rel": "web",
"href": "https://www.diecuttemplates.com/dielines/54423/separators-becf-11f07",
"method": "GET"
}
],
"images": [
{
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_5442320250213-2-a72wus.svg"
}
]
}
}