Get list of your custom dielines for a specific dieline template.
id string |
Unique identifier for the template. required For example: "becf-10319" Dieline template ids start with "becf". Available dieline templates are listed on https://www.diecuttemplates.com/dielines |
page integer |
The page number for paginated results. Default is 1 |
page_size integer |
Number of dielines to return per page. Default is 100 |
curl -i -X GET \
https://api.diecuttemplates.com/dieline-templates/becf-10301/dielines?page=2&page_size=50 \
-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/becf-10301/dielines?page=2&page_size=50')
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/becf-10301/dielines?page=2&page_size=50",
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_list": {
"type": "dieline_list",
"dieline_template_id": "becf-10301",
"total": 5,
"page": 2,
"page_size": 2,
"dielines": [
{
"type": "dieline",
"id": "wglf0haqdbil",
"dieline_template_id": "becf-10301",
"variables": {
"unit": "mm",
"width": 103,
"height": 253,
"length": 251.14,
"material": 2.22,
"overflow": true
},
"format": "pdf",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/dielines-api-examples/4c963798-e0db-4dcc-9111-a68f145510a220241219-19018-4f1gqv.pdf",
"artwork_dimensions": {
"unit": "mm",
"width": "723.06",
"height": "502.44"
},
"created_at": "2024-12-19T15:49:08Z"
},
{
"type": "dieline",
"id": "rxzngrhepdjd",
"dieline_template_id": "becf-10301",
"variables": {
"unit": "mm",
"width": 102,
"height": 253,
"length": 251.14,
"material": 2.22,
"overflow": true
},
"format": "pdf",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/dielines-api-examples/2ff5c981-b72e-4ad9-a4c9-c13df92ddd2720241219-19018-bogqon.pdf",
"artwork_dimensions": {
"unit": "mm",
"width": "723.06",
"height": "502.44"
},
"created_at": "2024-12-19T15:48:48Z"
}
]
},
"links": [
{
"rel": "self",
"href": "/dielines/becf-10301?page=2&page_size=2",
"method": "GET"
},
{
"rel": "previous_page",
"href": "/dielines/becf-10301?page=1&page_size=2",
"method": "GET"
}
]
}