Corrugated Cardboards | Special Boxes | becf-21e25
3D Mockup

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-21e25) via the API, please make a
GET request to https://api.diecuttemplates.com/dieline-templates/in/becf-21e25


Code Examples



curl -i -X GET \
https://api.diecuttemplates.com/dieline-templates/in/becf-21e25 \
  -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-21e25')

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-21e25",
  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;
}

Response

application/json
{
  "dieline_template": {
    "type": "dieline_template",
    "id": "becf-21e25",
    "group": {
      "type": "dieline_template_group",
      "id": "corrugated_cardboards_special_boxes",
      "name": "Special Boxes",
      "category": "Corrugated Cardboards"
    },
    "tags": [],
    "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_54414_a20250213-2-8vez6v.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_54414_b20250213-2-putzm4.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_54414_c20250213-2-82sbd5.svg"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "cover_height",
        "description": "cover height",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_54414_e20250213-2-4yw4t5.svg"
        },
        "default_value": {
          "value": 1.5748,
          "unit": "in"
        },
        "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": "lock_flap",
        "description": "lock flap",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_54414_d20250213-2-qhebk3.svg"
        },
        "default_value": {
          "value": 1.2598,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "lock_length",
        "description": "lock length",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_54414_x220250213-2-9lkyu2.svg"
        },
        "default_value": {
          "value": 1.1206,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "peephole",
        "description": "peephole",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_54414_d120250213-2-bmkj8y.svg"
        },
        "default_value": {
          "value": 0.7874,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "hole_margin_1",
        "description": "hole margin",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_54414_x120250213-2-pwu2ar.svg"
        },
        "default_value": {
          "value": 0.5906,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "hole_margin_2",
        "description": "hole margin",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_54414_y120250213-2-c29ek8.svg"
        },
        "default_value": {
          "value": 0.5906,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "arc_width",
        "description": "arc width",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_54414_z120250213-2-b44wpc.svg"
        },
        "default_value": {
          "value": 0.315,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "lock_angle",
        "description": "lock angle",
        "data_type": "angle",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_54414_z20250213-2-arhvmt.svg"
        },
        "default_value": {
          "value": 20
        },
        "allowed_values": [
          15.0,
          20.0,
          25.0,
          30.0,
          35.0,
          40.0,
          45.0
        ],
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "folding_margin",
        "description": "folding margin",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_54414_y220250213-2-9z5g6g.svg"
        },
        "default_value": {
          "value": 0.6299,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "lock_margin_1",
        "description": "lock margin",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_54414_d220250213-2-r0t6kb.svg"
        },
        "default_value": {
          "value": 0.1969,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "lock_margin_2",
        "description": "lock margin",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_54414_d320250213-2-kj6ute.svg"
        },
        "default_value": {
          "value": 0.7874,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "glue_flap_1",
        "description": "glue flap",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_54414__kulak20250213-2-oe2hs3.svg"
        },
        "default_value": {
          "value": 1.1811,
          "unit": "in"
        },
        "childen": []
      },
      {
        "type": "dieline_template_variable",
        "name": "glue_flap_2",
        "description": "glue flap",
        "data_type": "length",
        "required": false,
        "image": {
          "type": "svg",
          "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_54414__dil20250213-2-ib0o4d.svg"
        },
        "default_value": {
          "value": 1.1811,
          "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_54414__flap20250213-2-rpawzs.svg"
        },
        "default_value": {
          "value": 1.9685,
          "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-21e25",
        "method": "GET"
      },
      {
        "rel": "web",
        "href": "https://www.diecuttemplates.com/dielines/54414/special-boxes-becf-21e25",
        "method": "GET"
      }
    ],
    "images": [
      {
        "type": "svg",
        "url": "https://d2atdwxjx7uc4i.cloudfront.net/svg_api/s_5441420250213-2-cgthwm.svg"
      }
    ]
  }
} 


Read Dielines API documentation